-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG+1] OneClassSVM predict now returns int #8711
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
Merged
agramfort
merged 4 commits into
scikit-learn:master
from
VathsalaAchar:oneclasssvm-prediction-type-to-int
Apr 6, 2017
Merged
[MRG+1] OneClassSVM predict now returns int #8711
agramfort
merged 4 commits into
scikit-learn:master
from
VathsalaAchar:oneclasssvm-prediction-type-to-int
Apr 6, 2017
Conversation
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
- This method overrides the default behaviour to only return integer class values.
- small addition to test that the predicted result is integer
Your test is failing on windows 64bits. Please also add an entry in |
Hi @TomDLT I have made the necessary changes, could you have a look at the change to see if the Windows 64bit error will now be gone? I assumed it was from the int type check. |
TomDLT
approved these changes
Apr 6, 2017
@VathsalaAchar The error is gone, thanks. Let's wait for a second review before merging. |
thx @VathsalaAchar |
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Apr 8, 2017
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Apr 17, 2017
massich
pushed a commit
to massich/scikit-learn
that referenced
this pull request
Apr 26, 2017
* Added predict method to class OneClassSVM - This method overrides the default behaviour to only return integer class values. * Test for the change in OneClassSVM predict method - small addition to test that the predicted result is integer * Changed test to check for intp datatype * Updated whats new
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Apr 26, 2017
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
May 4, 2017
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
May 15, 2017
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
May 19, 2017
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
May 31, 2017
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Jun 8, 2017
Sundrique
pushed a commit
to Sundrique/scikit-learn
that referenced
this pull request
Jun 14, 2017
* Added predict method to class OneClassSVM - This method overrides the default behaviour to only return integer class values. * Test for the change in OneClassSVM predict method - small addition to test that the predicted result is integer * Changed test to check for intp datatype * Updated whats new
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Jun 19, 2017
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Jun 29, 2017
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Jul 19, 2017
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Jul 29, 2017
NelleV
pushed a commit
to NelleV/scikit-learn
that referenced
this pull request
Aug 11, 2017
* Added predict method to class OneClassSVM - This method overrides the default behaviour to only return integer class values. * Test for the change in OneClassSVM predict method - small addition to test that the predicted result is integer * Changed test to check for intp datatype * Updated whats new
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Aug 14, 2017
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Apr 23, 2019
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Jul 25, 2019
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Aug 22, 2019
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Oct 5, 2019
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Oct 11, 2019
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Nov 1, 2019
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Jan 10, 2020
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Jan 30, 2020
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Jan 30, 2020
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Feb 27, 2020
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Mar 12, 2020
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Apr 17, 2020
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
May 3, 2020
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
May 30, 2020
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Jul 5, 2020
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Jul 5, 2020
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Aug 5, 2020
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Oct 15, 2020
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Nov 28, 2020
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Dec 12, 2020
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Feb 25, 2021
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Feb 25, 2021
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Mar 27, 2021
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Jun 15, 2021
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Jul 23, 2021
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Nov 10, 2021
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
May 15, 2022
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Jun 14, 2022
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Aug 29, 2022
ivannz
added a commit
to ivannz/scikit-learn
that referenced
this pull request
Sep 5, 2022
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 Issue #8676
The changes here fixes the OneClassSVM predict method. The method used to return float and now returns integer types.
Small changes to the test are also included.
If any further testing or documentation is required please let me know.