-
-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
float numbers can't be set to RFECV's parameter "step" #7467
Comments
What would be best is if you could provide a standalone snippet reproducing the problem. |
It's actually pretty easy to see in the code where this comes about. The On 22 September 2016 at 22:16, Loïc Estève notifications@github.com wrote:
|
Isn't it OK for It sounds like the warning is caused due to indexing by float, these lines in 0.17.x might be causing |
Step is used multiple times. Not all are through |
Can reproduce on sklearn '0.18.dev0'. Code sample (works fine with RFE and fails with RFECV):
Symptoms:
|
That's a lot of symptoms! Yes, we know it's not fixed. |
* Fixing error with step parameter #7467. Basically converting the step parameter the same way RFE does. * Adding in an explanation to the test case. * Moving the location of where we set the data. * Adding in an assertion against the data.
Fixed in #7469 |
…arn#7469) * Fixing error with step parameter scikit-learn#7467. Basically converting the step parameter the same way RFE does. * Adding in an explanation to the test case. * Moving the location of where we set the data. * Adding in an assertion against the data.
…arn#7469) * Fixing error with step parameter scikit-learn#7467. Basically converting the step parameter the same way RFE does. * Adding in an explanation to the test case. * Moving the location of where we set the data. * Adding in an assertion against the data.
…arn#7469) * Fixing error with step parameter scikit-learn#7467. Basically converting the step parameter the same way RFE does. * Adding in an explanation to the test case. * Moving the location of where we set the data. * Adding in an assertion against the data.
…arn#7469) * Fixing error with step parameter scikit-learn#7467. Basically converting the step parameter the same way RFE does. * Adding in an explanation to the test case. * Moving the location of where we set the data. * Adding in an assertion against the data.
Description
When I use RFECV with parameter 'step' as a float number will cause warnings/errors "rfe.py:203: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future". And the analysis can't be finished until integer or 1/2.
I read description of RFECV and learned that parameter 'step' can accept float. (introduction online: If greater than or equal to 1, then step corresponds to the (integer) number of features to remove at each iteration. If within (0.0, 1.0), then step corresponds to the percentage (rounded down) of features to remove at each iteration.)
And I didn't read any bugs from source script. Please tell.
The text was updated successfully, but these errors were encountered: