-
-
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
Xgboost giving different results on mac and ubuntu #8834
Comments
Could you please share a reproducible example? |
Sure @trivialfis testing_data_length <- nrow(test_x) define hyperparametersvalidation_sample_len = params$valid_sample_len prepare validation datasetdval <- data.matrix(train_x[train_period_end:train_data_len, features]) prepare training datasetsave the column namesdtrain = data.matrix(train_x[start:train_data_len, features]) prepare test datasetdtest = data.matrix(test_x[, features]) train modelxgb_model <- xgb.train(params = hyper_params, forecast on test datatest_pred <- predict(xgb_model, dtest) forecast on entire datasettrain_pred <- predict(xgb_model, dsample) out = data.frame(forecast=c(train_pred, test_pred)) |
Is this happening due to differences in package version of other packages on which xgboost depends? |
Let me take a closer look, have been working on #8822 for a while and trying to switch back to normal maintenance work. |
apologies, I can't debug the code you shared without a dataset. Would be great if you can share something I can run, maybe with a pseudo dataset. I'm asking since we run tests on multiple machines (see our CI runs on PRs) and the results are consistent. The issue you are describing is new to me and I can't guess the reason without actually reproducing it. |
Closing due to stalled. |
I am using xgboost version 1.5.0.2 on mac and ubuntu machine. On both the machines I am getting different predictions using xgb.train() for time series forecasting problem. On mac I am getting acceptable prediction in correct range but on ubuntu very weird prediction observed which is almost a straight line. And there is huge difference between these two predictions. Why such difference? I want to get same prediction as mac on linux. How can I get it? Can anyone help me?
R version - 3.6.3
Xgboost version - 1.5.0.2
The text was updated successfully, but these errors were encountered: