Given three classes (5,6,7) of two arrays:
y_true = [5,6,7,5]
y_pred = [5,7,7,5]
Since second element is false, how to return one-hot encoded array of false positive array like this?
y_falsep_class5 = [0,0,0,0]
y_falsep_class6 = [0,0,0,0]
y_falsep_class7 = [0,1,0,0]
So returned array will has dimension (3,4) where 3 is num of classes and 4 is length of vector.
2