amazon-sagemaker-examples icon indicating copy to clipboard operation
amazon-sagemaker-examples copied to clipboard

Inconsistent results

Open varshney016 opened this issue 7 years ago • 2 comments

Hi All,

I just run below notebook "https://github.com/awslabs/amazon-sagemaker-examples/blob/master/advanced_functionality/xgboost_bring_your_own_model/xgboost_bring_your_own_model.ipynb". and see results xgbbost_awslab

why the output of print(floatArr) and print(bt.predict_proba(point_X)) is not exactly same???

Note: I ran the above notebook with xgboost regression on my data-set with suitable modifications, for almost all test data points, outputs of regression are different in model.predict() and endpoint response with difference in the value as much as 1.94

varshney016 avatar Aug 20 '19 08:08 varshney016

Hi @varshney016, sorry for the late response.

What kind of data was point_X from, and how did you load that data? We recently discovered a bug in upstream XGBoost that was causing incorrect predictions on CSV data loaded into DMatrix directly from a file. This may be the cause of the differences you're seeing.

aws-patlin avatar Apr 08 '20 21:04 aws-patlin

Please reopen if you're still seeing this problem.

aaronmarkham avatar Jan 06 '21 22:01 aaronmarkham