Flow
sklearn.svm._classes.NuSVC

sklearn.svm._classes.NuSVC

Visibility: public Uploaded 11-05-2022 by Laurens Krudde sklearn==1.0.2 numpy>=1.14.6 scipy>=1.1.0 joblib>=0.11 threadpoolctl>=2.0.0 1 runs
0 likes downloaded by 0 people 0 issues 0 downvotes , 0 total downloads
  • openml-python python scikit-learn sklearn sklearn_1.0.2
Issue #Downvotes for this reason By


Loading wiki
Help us complete this description Edit
Nu-Support Vector Classification. Similar to SVC but uses a parameter to control the number of support vectors. The implementation is based on libsvm.

Parameters

break_tiesIf true, ``decision_function_shape='ovr'``, and number of classes > 2, :term:`predict` will break ties according to the confidence values of :term:`decision_function`; otherwise the first class among the tied classes is returned. Please note that breaking ties comes at a relatively high computational cost compared to a simple predict .. versionadded:: 0.22default: false
cache_sizeSpecify the size of the kernel cache (in MB) class_weight : {dict, 'balanced'}, default=None Set the parameter C of class i to class_weight[i]*C for SVC. If not given, all classes are supposed to have weight one. The "balanced" mode uses the values of y to automatically adjust weights inversely proportional to class frequencies as ``n_samples / (n_classes * np.bincount(y))``default: 200
class_weightdefault: null
coef0Independent term in kernel function It is only significant in 'poly' and 'sigmoid'default: 0.0
decision_function_shapedefault: "ovr"
degreeDegree of the polynomial kernel function ('poly') Ignored by all other kernels gamma : {'scale', 'auto'} or float, default='scale' Kernel coefficient for 'rbf', 'poly' and 'sigmoid' - if ``gamma='scale'`` (default) is passed then it uses 1 / (n_features * X.var()) as value of gamma, - if 'auto', uses 1 / n_features .. versionchanged:: 0.22 The default value of ``gamma`` changed from 'auto' to 'scale'default: 3
gammadefault: "auto"
kerneldefault: "linear"
max_iterHard limit on iterations within solver, or -1 for no limit decision_function_shape : {'ovo', 'ovr'}, default='ovr' Whether to return a one-vs-rest ('ovr') decision function of shape (n_samples, n_classes) as all other classifiers, or the original one-vs-one ('ovo') decision function of libsvm which has shape (n_samples, n_classes * (n_classes - 1) / 2). However, one-vs-one ('ovo') is always used as multi-class strategy. The parameter is ignored for binary classification .. versionchanged:: 0.19 decision_function_shape is 'ovr' by default .. versionadded:: 0.17 *decision_function_shape='ovr'* is recommended .. versionchanged:: 0.17 Deprecated *decision_function_shape='ovo' and None*default: -1
nuAn upper bound on the fraction of margin errors (see :ref:`User Guide `) and a lower bound of the fraction of support vectors Should be in the interval (0, 1] kernel : {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'} or callable, default='rbf' Specifies the kernel type to be used in the algorithm If none is given, 'rbf' will be used. If a callable is given it is used to precompute the kernel matrixdefault: 0.3
probabilityWhether to enable probability estimates. This must be enabled prior to calling `fit`, will slow down that method as it internally uses 5-fold cross-validation, and `predict_proba` may be inconsistent with `predict`. Read more in the :ref:`User Guide `default: true
random_stateControls the pseudo random number generation for shuffling the data for probability estimates. Ignored when `probability` is False Pass an int for reproducible output across multiple function calls See :term:`Glossary `.default: 3
shrinkingWhether to use the shrinking heuristic See the :ref:`User Guide `default: true
tolTolerance for stopping criteriondefault: 3.241909264428642e-05
verboseEnable verbose output. Note that this setting takes advantage of a per-process runtime setting in libsvm that, if enabled, may not work properly in a multithreaded contextdefault: false

0
Runs

List all runs
Parameter:
Rendering chart
Rendering table