You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have spent quite a bit of time between the open and closed issues on here and similar question(s) / answer(s) in SO, in an attempt to figure out why I keep getting different predictions from xgboost (on the same exact data) after I save a trained xgboost model to disk and the load it back in my R session to make predictions. The reprex below should illustrate what I'm seeing
I've also tried to save the mode in raw format and rebuild it again; and also tried to save the model in .RDS format; and I've tried re-setting the model parameters but the issue still persists.
Any guidance is greatly appreciated.
fake_client_data file required for reprex: https://drive.google.com/file/d/1ie8OQQbo2gCn3uhRWknTKvU1WPTfyqEs/view?usp=drive_link
system version:
> version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
crt ucrt
system x86_64, mingw32
status
major 4
minor 4.1
year 2024
month 06
day 14
svn rev 86737
language R
version.string R version 4.4.1 (2024-06-14 ucrt)
nickname Race for Your Life
The text was updated successfully, but these errors were encountered:
delt87
changed the title
R - xgboost model predictions no reproducible when model object is loaded from disk
R - xgboost model predictions not reproducible when model object is loaded from disk
Jan 15, 2025
I have spent quite a bit of time between the open and closed issues on here and similar question(s) / answer(s) in SO, in an attempt to figure out why I keep getting different predictions from xgboost (on the same exact data) after I save a trained xgboost model to disk and the load it back in my R session to make predictions. The reprex below should illustrate what I'm seeing
Some of the sources I've looked at include:
https://stackoverflow.com/questions/71401330/xgboost-not-providing-reproducible-predictions-after-saving-in-bin-format
https://github.com/dmlc/xgboost/issues/160
https://github.com/tqchen/xgboost/blob/master/R-package/demo/basic_walkthrough.R#L62
https://stackoverflow.com/questions/73097036/pre-trained-xgboost-model-does-not-reproduce-results-if-loaded-from-file
I've also tried to save the mode in
raw
format and rebuild it again; and also tried to save the model in.RDS
format; and I've tried re-setting the model parameters but the issue still persists.Any guidance is greatly appreciated.
fake_client_data
file required for reprex:https://drive.google.com/file/d/1ie8OQQbo2gCn3uhRWknTKvU1WPTfyqEs/view?usp=drive_link
system version:
xgboost version:
Reprex
The text was updated successfully, but these errors were encountered: