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

SageMaker - XGBoost built in algo with LibSVM - Training job Error

Open superisrael opened this issue 7 years ago • 2 comments

Trying to run XGBoost with multiclass classification. The train worked well few times, and now we Get error every time we want to train The libsvm files seem to be valid (be able to load them with sklearn)

I've attached the training and validation libsvm files...

This is the error:

Training job ended with status: Failed Training failed with the following error: ClientError: Failed to load libsvm data with exception: [15:05:07] src/data/././strtonum.h:141: Check failed: sign == true (0 vs. 1)

Stack trace returned 8 entries: [bt] (0) /usr/local/lib/python2.7/site-packages/xgboost-0.71-py2.7.egg/xgboost/libxgboost.so(dmlc::StackTrace()+0x42) [0x7fac8ed5bb92] [bt] (1) /usr/local/lib/python2.7/site-packages/xgboost-0.71-py2.7.egg/xgboost/libxgboost.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x18) [0x7fac8ed5c198] [bt] (2) /usr/local/lib/python2.7/site-packages/xgboost-0.71-py2.7.egg/xgboost/libxgboost.so(int dmlc::data::strtouint(char const*, char**, int)+0x1aa) [0x7fac8eef961a] [bt] (3) /usr/local/lib/python2.7/site-packages/xgboost-0.71-py2.7.egg/xgboost/libxgboost.so(dmlc::data::LibSVMParser<unsigned int, float>::ParseBlock(char const*, char const*, dmlc::data::RowBlockContainer<unsigned int, float>*)+0x1d3) [0x7fac8ef18ab3] [bt] (4) /usr/local/lib/python2.7/site-packages/xgboost-0.71-py2.7.egg/xgboost/libxgboost.so(+0x22362d) [0x7fac8eef662d] [bt] (5) /op training_params.txt

superisrael avatar Jan 21 '19 09:01 superisrael

@superisrael I see the training_params.txt file attached. But I do not see the training and validation libsvm files. There might be a variety of reasons for the error that you see. E.g. the column index for XGBoost LibSVM should start from zero. The data file may contain HTML tags. Please share (sample) data so that we can verify at our end.

vrkhare avatar Mar 01 '19 19:03 vrkhare

Closing due to lack of activity. Please ask to re-open if this is still an issue.

seanpmorgan avatar Feb 03 '21 01:02 seanpmorgan