8000 Moved reference to sample_weight in BaseLibSVM.fit() · scikit-learn/scikit-learn@1188b15 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1188b15

Browse files
committed
Moved reference to sample_weight in BaseLibSVM.fit()
1 parent 5da3019 commit 1188b15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sklearn/svm/_base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ def fit(self, X, y, sample_weight=None):
171171
Per-sample weights. Rescale C per sample. Higher weights
172172
force the classifier to put more emphasis on these points.
173173
174+
For an example of handling weighed samples with :class:`SVC`s, please see:
175+
:ref:`sphx_glr_auto_examples_svm_plot_weighted_samples.py`
176+
174177
Returns
175178
-------
176179
self : object

sklearn/svm/_classes.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -843,9 +843,6 @@ class SVC(BaseSVC):
843843
>>> print(clf.predict([[-0.8, -1]]))
844844
[1]
845845
846-
For an example of handling weighed samples with :class:`SVC`s, please see:
847-
:ref:`sphx_glr_auto_examples_svm_plot_weighted_samples.py`
848-
849846
For a comparison of the SVC with other classifiers see:
850847
:ref:`sphx_glr_auto_examples_classification_plot_classification_probability.py`.
851848
"""

0 commit comments

Comments
 (0)
0