Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Xgboost model, found -2147483648 in label

$
0
0

@robot94 wrote:

I am seeing this:
bst_model <- xgboost(data=dtrain,eta=1.8, objective=‘multi:softmax’,max.depth=2,nrounds=200,nthread=4,lambda=.19,num_class=4,eval_metric=‘mlogloss’)
Error in xgb.iter.update(bst$handle, dtrain, iteration - 1, obj) :
[21:48:20] amalgamation/…/src/objective/multiclass_obj.cc:78: Check failed: label_error >= 0 && label_error < nclass SoftmaxMultiClassObj: label must be in [0, num_class), num_class=4 but found -2147483648 in label.

Any idea what that number is? My label is rnaged 0-3

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles