-
-
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
Rankings depend on OS #6709
Comments
Could you please confirm the generated data is the same, and share the difference between outputs? |
I confirm the generated data is exactly the same. |
There's many contributing factors to floating point difference, like different hardware, different compiler optimisations etc. It's quite difficult to get portable result if possible at all. I will look into it later to see if there's any human error on xgboost s side. But I can't promise to get the exact result for 2 platforms. |
I agree that it's not possible to get the exact same results, up to machine precision. Here however something doesn't seem quite right. When I take the same code snippet as above but use XGBRegressor instead of XGBRanker (and remove any superfluous parameters), I get the same results (8th decimal place), that is the same feature importance and prediction results, on Windows and Linux. My concern is: which implementation gives the "correct" results? Again, thanks for your help! |
It's caused by the different implementations of |
Hi,
I observe that the rankings obtained using XGBRanker are not the same whether I use Windows or Linux. (I use xgboost 1.3.3)
Windows 10 output:
Linux output (Amazon Linux AMI 2018.03, kernel 4.14.214-118.339.amzn1.x86_64):
My understanding is that nothing in this computation should involve randomness: Am I wrong?
Thanks,
Guillaume
The text was updated successfully, but these errors were encountered: