8000 [MRG+1] DOC clarify OneClassSVM decision_function docstring (#9048) · scikit-learn/scikit-learn@9525461 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9525461

Browse files
albertcthomasagramfort
authored andcommitted
[MRG+1] DOC clarify OneClassSVM decision_function docstring (#9048)
* clarify ocsvm decision_function docstring * take into account agramfort comment
1 parent 046141b commit 9525461

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sklearn/svm/classes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,9 @@ def fit(self, X, y=None, sample_weight=None, **params):
10511051
return self
10521052

10531053
def decision_function(self, X):
1054-
"""Distance of the samples X to the separating hyperplane.
1054+
"""Signed distance to the separating hyperplane.
1055+
1056+
Signed distance is positive for an inlier and negative for an outlier.
10551057
10561058
Parameters
10571059
----------

0 commit comments

Comments
 (0)
0