-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Error when seed exceeds 32-bit integer max #5637
Comments
Seed should fit into signed 32-bit integer value, which can be at most 2147483647. |
@pplonski Do you have a use case that specifically calls for a seed value exceeding 2147483647? |
In the automlbenchmark there are seed values larger than 2147483647. And python3 |
@pplonski Can you elaborate more on the benefit of 64-bit seeds? I notice that one of the packages used in automlbenchmark is using 16-bit seed: https://github.com/openml/automlbenchmark/blob/2f3bb4a6637ea8875abbf7c06f8df649b7f5e2b0/frameworks/AutoWEKA/exec.py#L60. I'd like to keep 32-bit seeds if possible, since lots of XGBoost model files in the wild use 32-bit seed in them, and I'd like to keep them compatible with latest XGBoost (*). (*) The compatibility issue is because the binary model format assumes a fixed layout, and changing the seed field to 64-bit will change the layout. The issue is avoided if the model is saved with JSON (supported in 1.0.0+), but there are still many old models lurking around. |
If the package is accepting The automlbenchmark package is using 64-bit seed. The Auto-WEKA is one of the packages that it is testing. |
For now I'll add a check on the Python side so that error message will be clearer. |
Seed is not saved. |
@trivialfis Oops, my bad. I forgot that generic parameter is not part of the legacy binary format. We could potentially upgrade to 64-bit seed then? |
I think so. ;-) |
I'm using Xgboost in my AutoML package. I'm currently adding my package to automlbenchmark When running the benchmark test I got very strange error about seed value. The error is below. The minimal code example to reproduce the error is below. When I'm using smaller
seed
values every thing works as expected.Error message:
The text was updated successfully, but these errors were encountered: