optimize_svm(kernel_matrix, y, scaling=None, maxiter=500, show_progress=False, max_iters=None, lambda2=0.001)¶
Solving quadratic programming problem for SVM; thus, some constraints are fixed.
ndarray) – NxN array
ndarray) – Nx1 array
float]) – the scaling factor to renormalize the y, if it is None, use L2-norm of y for normalization
int) – number of iterations for QP solver
bool) – showing the progress of QP solver
int]) – Deprecated, use maxiter.
float) – L2 Norm regularization factor
Sx1 array, where S is the number of supports np.ndarray: Sx1 array, where S is the number of supports np.ndarray: Sx1 array, where S is the number of supports
- 반환 형식
MissingOptionalLibraryError – If cvxpy is not installed