Skip to content
Advertisement

cannot load pickle files for xgboost images of version > 1.2-2 in sagemaker – UnpicklingError

I can train a XGBoost model using Sagemaker images like so:

JavaScript

This work for all versions 1.2-2, 1.3-1 and 1.5-1. Unfortunately the following code only works for version 1.2-2:

JavaScript

Otherwise I get a:

JavaScript

Am I missing something? Is my “pickle loading code wrong”?

The version of xgboost is 1.6.0 where I run the pickle code.

Advertisement

Answer

I found the solution here. I will leave it in case someone come accross the same issue.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement