-
Notifications
You must be signed in to change notification settings - Fork 76
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
GridSearchCV does not return training score #66
Comments
Could you please post the error message? Some minimal code that demonstrates the issue would be appreciated as well! |
@cstjean Thanks for replying The code is actually pretty straight-forward (I took an example from the scikitlearn website): `############# Grid search Utility function to report best scoresfunction report(grid_scores, n_top=3) use a full grid over all parametersparam_grid = Dict("max_features"=> [1, 6, 12], run grid searchgrid_search = GridSearchCV(clf, param_grid,return_train_score=true) start = @Elapsed begin report(grid_search.grid_scores_)` I guess you can use the dataset from https://scikitlearnjl.readthedocs.io/en/latest/quickstart/ for testing. The error message is :
Closest candidates are: |
Thank you for the bug report. My best guess is that |
Probably you should try GridSearchCV(return_train_score=True), with the T capital. Since, it takes an boolean input so, that is why the small case letter 't' is not working. |
@Rohp001 I don't think this is the issue, the capital "T" is for python syntax. Julia's syntax uses lower-case "t" for boolean true. |
Oh, sorry, I didn't saw the language you were using. My bad!!! |
Hi,
I am trying to return the training score through GridSearchCV. Having a look at the ScikitLearn documentation I saw I should be normally be able to pass an input "return_train_score=true".
However, when I try it in Julia, I get a method error.
grid_search = GridSearchCV(clf, param_grid,return_train_score=true)
Does anyone know how to retrieve train scores correctly?
Thanks!
The text was updated successfully, but these errors were encountered: