Converting A 1d Array Into A 2d Class-based Matrix In Python
I'm using a multi-class classifier, so in order to evaluate it after testing, I need the predictions from the classifier (y_pred)to be compared against the true class values (y_tes
Solution 1:
Have a look at the label_binarize
function that's referenced in the example code in your link.
Post a Comment for "Converting A 1d Array Into A 2d Class-based Matrix In Python"