-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
"grid_resolution" setting of function "partial_dependence" #5810
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
Comments
Please provide an example? There are two calls using grid_resolution, do both fail? What line fails? What value of I'm currently working on enhancing the function in #5653 and could potentially push a fix into that PR if I can trace what the problem is. |
hi, thanks first! the following is the codes with problem in my pycharm: as mentioned, i change parameter "grid_resolution" to 150(original value in the webpage is 50), and then the "print" function output is "16512, 8) (1, 7800) (52,) (150,)" . by the way, i update sklearn to 0.17, and my OS is win7 64bit |
@genliu777 .. Check #5847 and it should work. Basic problem was when the number of unique values is less than the resolution you specify, the shape of |
when i run the project on the webpage: http://scikit-learn.org/stable/auto_examples/ensemble/plot_partial_dependence.html#example-ensemble-plot-partial-dependence-py
i try to change the value of 'grid_resolution', which is the parameter of function 'partial_dependence()',
i find and can not understand the following situation:
the original value of grid_resolution is 50, when changed to values less than 50, then, the shape of x_axis and y_axis are both (50, 50). the project works well,
but do not work while bigger than 50. for example, grid_resolution = 100, the x_axis.shape = (52, ), y_axis = (100, ), and pdp.shape = (1, 5200). it directly cause the value of XX, YY not equal to each other, and the leads to the error"ValueError: shape mismatch: objects cannot be broadcast to a single shape".
why can not set tgrid_resolution to any value( > 0) as i want???
thanks!!
The text was updated successfully, but these errors were encountered: