You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In _estimate_mi there is discrete_features == 'auto' but discrete features can be an array of indices or a boolean mask.
This will error in future versions of numpy.
Also this means we never test this function with discrete features != 'auto', it seems?
@amueller i want to take this issue. I am a beginner.
Also can you elaborate this
"Also this means we never test this function with discrete features != 'auto', it seems?"
What should it return if discrete features is a string and not "auto"
@amueller i want to take this issue. I am a beginner.
Also can you elaborate this
"Also this means we never test this function with discrete features != 'auto', it seems?"
What should it return if discrete features is a string and not "auto"
@MohammedKhandwawala I have a pull request open and am finishing this issue. To answer your question what I believe @amueller meant is to properly test and if necessary raise an exception for discrete_features string cases not equal to 'auto' as well as other invalid parameter values. The updated if/elif statements in the pull request should fix that as well as checking for a str instance before testing == 'auto' which would fail if a numpy array in future versions of numpy.
Activity
hermidalc commentedon Mar 20, 2019
I'll take this
amueller commentedon Mar 21, 2019
@hermidalc go for it :)
punkstar25 commentedon Mar 21, 2019
i'm not sure ,but i think user will change the default value if it seem to be array or boolean mask....bcz auto is default value it is not fixed.
jnothman commentedon Mar 21, 2019
I haven't understood, @punkstar25
MohammedKhandwawala commentedon Mar 26, 2019
@amueller i want to take this issue. I am a beginner.
Also can you elaborate this
"Also this means we never test this function with discrete features != 'auto', it seems?"
What should it return if discrete features is a string and not "auto"
NicolasHug commentedon Mar 26, 2019
@MohammedKhandwawala , I'm afraid @hermidalc has already opened #13497 to address this.
hermidalc commentedon Mar 26, 2019
@MohammedKhandwawala I have a pull request open and am finishing this issue. To answer your question what I believe @amueller meant is to properly test and if necessary raise an exception for
discrete_featuresstring cases not equal to 'auto' as well as other invalid parameter values. The updated if/elif statements in the pull request should fix that as well as checking for a str instance before testing == 'auto' which would fail if a numpy array in future versions of numpy.