{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5810","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5810/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5810/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5810/events","html_url":"https://github.com/scikit-learn/scikit-learn/issues/5810","id":116692060,"number":5810,"title":"\"grid_resolution\" setting of function \"partial_dependence\"","user":{"login":"genliu777","id":980309,"avatar_url":"https://avatars.githubusercontent.com/u/980309?v=3","gravatar_id":"","url":"https://api.github.com/users/genliu777","html_url":"https://github.com/genliu777","followers_url":"https://api.github.com/users/genliu777/followers","following_url":"https://api.github.com/users/genliu777/following{/other_user}","gists_url":"https://api.github.com/users/genliu777/gists{/gist_id}","starred_url":"https://api.github.com/users/genliu777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genliu777/subscriptions","organizations_url":"https://api.github.com/users/genliu777/orgs","repos_url":"https://api.github.com/users/genliu777/repos","events_url":"https://api.github.com/users/genliu777/events{/privacy}","received_events_url":"https://api.github.com/users/genliu777/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-13T03:13:10Z","updated_at":"2015-11-13T06:04:22Z","closed_at":null,"body":"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\r\n\r\ni try to change the value of 'grid_resolution', which is the parameter of function 'partial_dependence()', \r\n\r\ni find and can not understand the following situation:\r\n\r\nthe 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, \r\n\r\nbut 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\".\r\n\r\nwhy can not set tgrid_resolution to any value( > 0) as i want???\r\nthanks!!"},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/156332731","html_url":"https://github.com/scikit-learn/scikit-learn/issues/5810#issuecomment-156332731","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5810","id":156332731,"user":{"login":"trevorstephens","id":5210848,"avatar_url":"https://avatars.githubusercontent.com/u/5210848?v=3","gravatar_id":"","url":"https://api.github.com/users/trevorstephens","html_url":"https://github.com/trevorstephens","followers_url":"https://api.github.com/users/trevorstephens/followers","following_url":"https://api.github.com/users/trevorstephens/following{/other_user}","gists_url":"https://api.github.com/users/trevorstephens/gists{/gist_id}","starred_url":"https://api.github.com/users/trevorstephens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevorstephens/subscriptions","organizations_url":"https://api.github.com/users/trevorstephens/orgs","repos_url":"https://api.github.com/users/trevorstephens/repos","events_url":"https://api.github.com/users/trevorstephens/events{/privacy}","received_events_url":"https://api.github.com/users/trevorstephens/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T06:04:22Z","updated_at":"2015-11-13T06:04:22Z","body":"Please provide an example? There are two calls using grid_resolution, do both fail? What line fails? What value of `grid_resolution` causes a failure?\r\n\r\nI'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."}}