Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Conversation

VathsalaAchar
Copy link
Contributor

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.

Vathsala Achar added 2 commits April 6, 2017 11:03
- This method overrides the default behaviour to only return integer class values.
- small addition to test that the predicted result is integer
@VathsalaAchar VathsalaAchar changed the title OneClassSVM prediction type to int OneClassSVM predict now returns int Apr 6, 2017
@TomDLT
Copy link
Member

TomDLT commented Apr 6, 2017

Your test is failing on windows 64bits.

Please also add an entry in doc/whats_new.rst.

@VathsalaAchar
Copy link
Contributor Author

VathsalaAchar commented Apr 6, 2017

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 TomDLT changed the title OneClassSVM predict now returns int [MRG+1] OneClassSVM predict now returns int Apr 6, 2017
@TomDLT
Copy link
Member

TomDLT commented Apr 6, 2017

@VathsalaAchar The error is gone, thanks. Let's wait for a second review before merging.

@agramfort agramfort merged commit ebcfcaf into scikit-learn:master Apr 6, 2017
@agramfort
Copy link
Member

thx @VathsalaAchar

@VathsalaAchar VathsalaAchar deleted the oneclasssvm-prediction-type-to-int branch April 7, 2017 08:28
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants