|
|
@@ -2135,112 +2135,6 @@
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- {
|
|
|
- "name": "sklearn.svm.SVC",
|
|
|
- "description": "C-Support Vector Classification.\n\nThe implementation is based on libsvm. The fit time scales at least\nquadratically with the number of samples and may be impractical\nbeyond tens of thousands of samples. For large datasets\nconsider using :class:`~sklearn.svm.LinearSVC` or\n:class:`~sklearn.linear_model.SGDClassifier` instead, possibly after a\n:class:`~sklearn.kernel_approximation.Nystroem` transformer or\nother :ref:`kernel_approximation`.\n\nThe multiclass support is handled according to a one-vs-one scheme.\n\nFor details on the precise mathematical formulation of the provided\nkernel functions and how `gamma`, `coef0` and `degree` affect each\nother, see the corresponding section in the narrative documentation:\n:ref:`svm_kernels`.\n\nTo learn how to tune SVC's hyperparameters, see the following example:\n:ref:`sphx_glr_auto_examples_model_selection_plot_nested_cross_validation_iris.py`\n\nRead more in the :ref:`User Guide <svm_classification>`.\n",
|
|
|
- "attributes": [
|
|
|
- {
|
|
|
- "default": 1.0,
|
|
|
- "description": "Regularization parameter. The strength of the regularization is\ninversely proportional to C. Must be strictly positive. The penalty\nis a squared l2 penalty. For an intuitive visualization of the effects\nof scaling the regularization parameter C, see\n:ref:`sphx_glr_auto_examples_svm_plot_svm_scale_c.py`.\n",
|
|
|
- "name": "C",
|
|
|
- "optional": true,
|
|
|
- "type": "float32"
|
|
|
- },
|
|
|
- {
|
|
|
- "default": "rbf",
|
|
|
- "description": "Specifies the kernel type to be used in the algorithm. If\nnone is given, 'rbf' will be used. If a callable is given it is used to\npre-compute the kernel matrix from data matrices; that matrix should be\nan array of shape ``(n_samples, n_samples)``. For an intuitive\nvisualization of different kernel types see\n:ref:`sphx_glr_auto_examples_svm_plot_svm_kernels.py`.\n",
|
|
|
- "name": "kernel",
|
|
|
- "optional": true,
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- {
|
|
|
- "default": 3,
|
|
|
- "description": "Degree of the polynomial kernel function ('poly').\nMust be non-negative. Ignored by all other kernels.\n",
|
|
|
- "name": "degree",
|
|
|
- "optional": true,
|
|
|
- "type": "int32"
|
|
|
- },
|
|
|
- {
|
|
|
- "default": "scale",
|
|
|
- "description": "Kernel coefficient for 'rbf', 'poly' and 'sigmoid'.\n\n- if ``gamma='scale'`` (default) is passed then it uses\n1 / (n_features * X.var()) as value of gamma,\n- if 'auto', uses 1 / n_features\n- if float, must be non-negative.\n\n.. versionchanged:: 0.22\nThe default value of ``gamma`` changed from 'auto' to 'scale'.\n",
|
|
|
- "name": "gamma",
|
|
|
- "optional": true,
|
|
|
- "type": "float32"
|
|
|
- },
|
|
|
- {
|
|
|
- "default": 0.0,
|
|
|
- "description": "Independent term in kernel function.\nIt is only significant in 'poly' and 'sigmoid'.\n",
|
|
|
- "name": "coef0",
|
|
|
- "optional": true,
|
|
|
- "type": "float32"
|
|
|
- },
|
|
|
- {
|
|
|
- "default": true,
|
|
|
- "description": "Whether to use the shrinking heuristic.\nSee the :ref:`User Guide <shrinking_svm>`.\n",
|
|
|
- "name": "shrinking",
|
|
|
- "optional": true,
|
|
|
- "type": "boolean"
|
|
|
- },
|
|
|
- {
|
|
|
- "default": false,
|
|
|
- "description": "Whether to enable probability estimates. This must be enabled prior\nto calling `fit`, will slow down that method as it internally uses\n5-fold cross-validation, and `predict_proba` may be inconsistent with\n`predict`. Read more in the :ref:`User Guide <scores_probabilities>`.\n",
|
|
|
- "name": "probability",
|
|
|
- "optional": true,
|
|
|
- "type": "boolean"
|
|
|
- },
|
|
|
- {
|
|
|
- "default": 0.001,
|
|
|
- "description": "Tolerance for stopping criterion.\n",
|
|
|
- "name": "tol",
|
|
|
- "optional": true,
|
|
|
- "type": "float32"
|
|
|
- },
|
|
|
- {
|
|
|
- "default": 200.0,
|
|
|
- "description": "Specify the size of the kernel cache (in MB).\n",
|
|
|
- "name": "cache_size",
|
|
|
- "optional": true,
|
|
|
- "type": "float32"
|
|
|
- },
|
|
|
- {
|
|
|
- "default": null,
|
|
|
- "description": "Set the parameter C of class i to class_weight[i]*C for\nSVC. If not given, all classes are supposed to have\nweight one.\nThe \"balanced\" mode uses the values of y to automatically adjust\nweights inversely proportional to class frequencies in the input data\nas ``n_samples / (n_classes * np.bincount(y))``.\n",
|
|
|
- "name": "class_weight",
|
|
|
- "optional": true
|
|
|
- },
|
|
|
- {
|
|
|
- "default": false,
|
|
|
- "description": "Enable verbose output. Note that this setting takes advantage of a\nper-process runtime setting in libsvm that, if enabled, may not work\nproperly in a multithreaded context.\n",
|
|
|
- "name": "verbose",
|
|
|
- "type": "boolean"
|
|
|
- },
|
|
|
- {
|
|
|
- "default": -1,
|
|
|
- "description": "Hard limit on iterations within solver, or -1 for no limit.\n",
|
|
|
- "name": "max_iter",
|
|
|
- "optional": true,
|
|
|
- "type": "int32"
|
|
|
- },
|
|
|
- {
|
|
|
- "default": "ovr",
|
|
|
- "description": "Whether to return a one-vs-rest ('ovr') decision function of shape\n(n_samples, n_classes) as all other classifiers, or the original\none-vs-one ('ovo') decision function of libsvm which has shape\n(n_samples, n_classes * (n_classes - 1) / 2). However, note that\ninternally, one-vs-one ('ovo') is always used as a multi-class strategy\nto train models; an ovr matrix is only constructed from the ovo matrix.\nThe parameter is ignored for binary classification.\n\n.. versionchanged:: 0.19\ndecision_function_shape is 'ovr' by default.\n\n.. versionadded:: 0.17\n*decision_function_shape='ovr'* is recommended.\n\n.. versionchanged:: 0.17\nDeprecated *decision_function_shape='ovo' and None*.\n",
|
|
|
- "name": "decision_function_shape"
|
|
|
- },
|
|
|
- {
|
|
|
- "default": null,
|
|
|
- "description": "Controls the pseudo random number generation for shuffling the data for\nprobability estimates. Ignored when `probability` is False.\nPass an int for reproducible output across multiple function calls.\nSee :term:`Glossary <random_state>`.\n",
|
|
|
- "name": "random_state",
|
|
|
- "optional": true
|
|
|
- },
|
|
|
- {
|
|
|
- "default": false,
|
|
|
- "description": "If true, ``decision_function_shape='ovr'``, and number of classes > 2,\n:term:`predict` will break ties according to the confidence values of\n:term:`decision_function`; otherwise the first class among the tied\nclasses is returned. Please note that breaking ties comes at a\nrelatively high computational cost compared to a simple predict.\n\n.. versionadded:: 0.22\n",
|
|
|
- "name": "break_ties",
|
|
|
- "optional": true,
|
|
|
- "type": "boolean"
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
{
|
|
|
"name": "sklearn.tree.tree.DecisionTreeClassifier",
|
|
|
"description": "A decision tree classifier.\n\nRead more in the :ref:`User Guide <tree>`.\n",
|