I'm doing multiclass classification in Python using basic Logistic Regression approach. I'm fitting my model and predicting the target variable and get something like this:
y_train=[4, 3, 8, ..., 5, 1, 2]
y_resul=[4, 3, 7, ..., 3, 1, 2]
So the model predicts each time the class result with the highest "significance". How can I predict the array of the most relevant class results within the array of predictions like that:
y_train=[4, 3, 8, ..., 5, 1, 2]
y_resul=[[4,2,1], [3,8,4], [7,9,8] ..., [3,4,9], [1,5,4] [2,1,3]]