10000 the contradiction in docstring in LocalOutlierFactor class · Issue #8048 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

the contradiction in docstring in LocalOutlierFactor class #8048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AlanJun opened this issue Dec 13, 2016 · 11 comments
Closed

the contradiction in docstring in LocalOutlierFactor class #8048

AlanJun opened this issue Dec 13, 2016 · 11 comments
Labels
Bug Documentation Easy Well-defined and straightforward way to resolve

Comments

@AlanJun
Copy link
AlanJun commented Dec 13, 2016

Description

the docstring of function "fit_predict" in LocalOutlierFactor class says "returns the labels
(1 inlier, -1 outlier)"
however in the latter Returns part, it says "Returns 1 for anomalies/outliers and -1 for inliers"
kind of misleading, fortunately it's easy to fix
Thx

Steps/Code to Reproduce

Expected Results

Actual Results

Versions

@jnothman
Copy link
Member
jnothman commented Dec 13, 2016 via email

@amueller amueller added Bug Documentation Easy Well-defined and straightforward way to resolve labels Dec 13, 2016
@Don86
Copy link
Contributor
Don86 commented Dec 15, 2016

Hi, I'd like to take this on? It seems like just a documentation fix.

@Don86
Copy link
Contributor
Don86 commented Dec 15, 2016

Sorry if this is a beginner question, but I'd like to know if there may some differences in versions? I tried to replicate this example:

import numpy as np
from sklearn.neighbors import LocalOutlierFactor

Error: cannot import name 'LocalOutlierFactor'

import sklearn
import sys
import platform
print("sklearn version:",sklearn.__version__)
print("Py version:", platform.python_version())

sklearn version: 0.17
Py version: 3.5.1

@jnothman
Copy link
Member
jnothman commented Dec 15, 2016 via email

@Don86
Copy link
Contributor
Don86 commented Dec 15, 2016

Made a PR, seems that it was combined with #8039.

@jnothman
Copy link
Member
jnothman commented Dec 15, 2016 via email

@jnothman
Copy link
Member
jnothman commented Dec 15, 2016 via email

@Don86
Copy link
Contributor
Don86 commented Dec 16, 2016

Changes that don't belong in #8039 have been rolled back.

@kushagraagrawal
Copy link

Hi, is this issue still open?

@Don86
Copy link
Contributor
Don86 commented Dec 17, 2016

Nope, PR merged in #8059. This issue can be closed, actually.

@dalmia
Copy link
Contributor
dalmia commented Dec 17, 2016

Please close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Documentation Easy Well-defined and straightforward way to resolve
Projects
None yet
Development

No branches or pull requests

6 participants
0