Problem.compute_cost Problem.compute_cost(X)[source] Evaluate the scalar cost at one position vector. Parameters: X (np.ndarray) – Candidate parameter vector. Returns: Cost value. Return type: float