Update description of OneClassSVM for outlier detection#17710
Closed
rubywerman wants to merge 1 commit intoscikit-learn:masterfrom
Closed
Update description of OneClassSVM for outlier detection#17710rubywerman wants to merge 1 commit intoscikit-learn:masterfrom
rubywerman wants to merge 1 commit intoscikit-learn:masterfrom
Conversation
Contributor
Author
glemaitre
reviewed
Jun 25, 2020
| The :class:`svm.OneClassSVM` is known to be sensitive to outliers and thus | ||
| does not perform very well for outlier detection. Finally, | ||
| :class:`covariance.EllipticEnvelope` assumes the data is Gaussian and learns | ||
| does not perform very well for outlier detection. That being said, outlier detection in high-dimension, or without any assumptions on the distribution of the inlying data is very challenging. Thus, a :class:`svm.OneClassSVM` might give useful results in these situations depending on the value of its hyperparameters. Finally, :class:`covariance.EllipticEnvelope` assumes the data is Gaussian and learns |
Member
There was a problem hiding this comment.
Could you format your comment such that it fits 79 characters
Contributor
Author
There was a problem hiding this comment.
yes - just linked a new PR fixing the comments you raised
| The :class:`svm.OneClassSVM` is known to be sensitive to outliers and thus | ||
| does not perform very well for outlier detection. Finally, | ||
| :class:`covariance.EllipticEnvelope` assumes the data is Gaussian and learns | ||
| does not perform very well for outlier detection. That being said, outlier detection in high-dimension, or without any assumptions on the distribution of the inlying data is very challenging. Thus, a :class:`svm.OneClassSVM` might give useful results in these situations depending on the value of its hyperparameters. Finally, :class:`covariance.EllipticEnvelope` assumes the data is Gaussian and learns |
Member
There was a problem hiding this comment.
Instead of using might give results ... I would rather mention something along the line.
OneClassSVM might still be used with outlier detection but requires fine-tuning of its hyperparameter nu to handle outliers and not overfit those.
| :target: ../auto_examples/neighbors/sphx_glr_plot_lof_novelty_detection.html | ||
| :align: center | ||
| :scale: 75% | ||
|
|
Member
There was a problem hiding this comment.
You can avoid this change since this is not linked
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reference Issues/PRs
Fixes part of #3466
What does this implement/fix? Explain your changes.
This PR clarifies that One Class SVM can be used for outlier detection and novelty detection. Originally, the doc incorrectly suggested One Class SVM should only be used for novelty detection. I utilized the explanation on One Class SVM from here, which was already linked as an example.
Any other comments?