8000 Include LinearSV{C, R} in models that support sample_weights · sambhav/scikit-learn@f3ecaf5 · GitHub
[go: up one dir, main page]

Skip to content

Commit f3ecaf5

Browse files
committed
Include LinearSV{C, R} in models that support sample_weights
With the latest release of sklearn, we have merged scikit-learn#15038 which officially adds support for sample weights to these models. Let's update the docs to reflect this.
1 parent 6c58288 commit f3ecaf5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/modules/svm.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,11 @@ that sets the parameter ``C`` of class ``class_label`` to ``C * value``.
267267
:scale: 75
268268

269269

270-
:class:`SVC`, :class:`NuSVC`, :class:`SVR`, :class:`NuSVR` and
271-
:class:`OneClassSVM` implement also weights for individual samples in method
272-
``fit`` through keyword ``sample_weight``. Similar to ``class_weight``, these
273-
set the parameter ``C`` for the i-th example to ``C * sample_weight[i]``.
270+
:class:`SVC`, :class:`NuSVC`, :class:`SVR`, :class:`NuSVR`, :class:`LinearSVC`,
271+
:class:`LinearSVR` and :class:`OneClassSVM` implement also weights for
272+
individual samples in method ``fit`` through keyword ``sample_weight``. Similar
273+
to ``class_weight``, these set the parameter ``C`` for the i-th example to
274+
``C * sample_weight[i]``.
274275

275276

276277
.. figure:: ../auto_examples/svm/images/sphx_glr_plot_weighted_samples_001.png

0 commit comments

Comments
 (0)
0