8000 DOC Update LOF.fit_predict() (#8059) · scikit-learn/scikit-learn@b543e12 · GitHub
[go: up one dir, main page]

Skip to content

Commit b543e12

Browse files
Don86jnothman
authored andcommitted
DOC Update LOF.fit_predict() (#8059)
Changed documentation to remove a self contradiction.
1 parent 9ec1a4c commit b543e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/neighbors/lof.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def fit_predict(self, X, y=None):
148148
Returns
149149
-------
150150
is_inlier : array, shape (n_samples,)
151-
Returns 1 for anomalies/outliers and -1 for inliers.
151+
Returns -1 for anomalies/outliers and 1 for inliers.
152152
"""
153153

154154
return self.fit(X)._predict()

0 commit comments

Comments
 (0)
0