Skip to content
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

Default parameter inconsistent with docs #529

Open
mateuszkasprowicz opened this issue Oct 23, 2023 · 0 comments
Open

Default parameter inconsistent with docs #529

mateuszkasprowicz opened this issue Oct 23, 2023 · 0 comments
Assignees

Comments

@mateuszkasprowicz
Copy link

source:

pyod/pyod/models/lof.py

Lines 140 to 142 in 6c77e27

def __init__(self, n_neighbors=20, algorithm='auto', leaf_size=30,
metric='minkowski', p=2, metric_params=None,
contamination=0.1, n_jobs=1, novelty=True):

docs:

pyod/pyod/models/lof.py

Lines 110 to 115 in 6c77e27

novelty : bool (default=False)
By default, LocalOutlierFactor is only meant to be used for outlier
detection (novelty=False). Set novelty to True if you want to use
LocalOutlierFactor for novelty detection. In this case be aware that
that you should only use predict, decision_function and score_samples
on new unseen data and not on the training set.

@yzhao062 yzhao062 self-assigned this Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants