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
[Bug] Set params #96
Comments
Wait, it works. By looking at your commit the problem is when they specify a list of one item. |
Where I wrote the comment here is a bug from what I see. Anyways it will not work, but the bugfix would be different. |
We actually never tested that line! https://codecov.io/gh/juaml/julearn/src/main/julearn/prepare.py I considered the case when I did the code, that’s why if it is an iterable (but not a string) it checks that it has more than one element to tune and if it is one element, it sets. Tricky question. What if the underlying transformer requires an iterable? So your solution of indexing param_grid = {'a_param': [a_val]} sets while something like this: param_grid = {'a_param': [[a_val]]} sets The current solution (not indexing), makes this the behaviour: param_grid = {'a_param': [a_val]} sets However, if the underling parameter can be an iterable with several elements, the second solution does not allow this to happen. param_grid = {'a_param': [a_val1, a_val2, a_val3]} will tune and param_grid = {'a_param': [[a_val1, a_val2, a_val3]]} will set So I guess we need to index |
We fixed this Bug in #97, so I will close this. |
When the user provided parameter_grid is only including one choice per parameter, the
_prepare_hyperparams
function in prepare does not work.The text was updated successfully, but these errors were encountered: