-
Notifications
You must be signed in to change notification settings - Fork 1k
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
quniform still gives float values instead of int #508
Comments
I dug into this a little. Seems like the fix in #444 is being negated by this line in To get an int in your code with the current version of
which gives this result:
|
Thanks, this is a good workaround for now. You also did some great error analysis. Hopefully someone else can pitch in and provide a pull request/fix for this to prevent more people from running into this issue. Also maybe other discrete distributions might be affected similarly, so it would be a good idea to check the other distributions along the way. |
Thanks for the workaround |
The fix would be simply swapping out the |
@jona-sassenhagen swapping it for It may work to just remove the Likely the best thing would to have it choose to use |
That makes sense - I can see about that, too. Am I understanding you correctly that you envision a new parameter for |
I was thinking it could infer it from the type of Just noticed there is already an integer version of |
I noticed that |
This issue has been marked as stale because it has been open 120 days with no activity. Remove the stale label or comment or this will be closed in 30 days. |
quniform is still giving me a float value instead of an int, just like described in issue #253.
It was supposedly fixed, but for me the problem persists. See the "epochs" variable below in this minimum working example.
Result:
I am using Python 3.6 with hyperopt package 0.1.2
The text was updated successfully, but these errors were encountered: