Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ValueError: y_true and y_pred contain different number of classes 6, 2. Please provide the true labels explicitly through the labels argument. Classes found in y_true: [0 1 2 3 4 5]

pred = model.predict_proba(x_test)
eval = log_loss(y_true,pred)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #number #classes #Please #provide #true #labels #explicitly #labels #Classes
ADD COMMENT
Topic
Name
4+7 =