You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This piece of code seems incorrect as the shape of y_pred and y_true is (Batch_size, class_space).
Doing a np.argmax with axis=1 returns a single class index value for each sample.
This is what we do for multi-class classification.
However in multi-class classification we don't normally use sigmoid on y_pred, although it is not wrong.
This function seems much like accuracy_multiclass rather than accuracy_multilabel
The text was updated successfully, but these errors were encountered:
The idea behind this was to pick the accuracy of top predicted label. You are right, accuracy_thresh is meant to be used for multi-label models. This was more as an experiment.
Hi,
in this block.
This piece of code seems incorrect as the shape of
y_pred
andy_true
is(Batch_size, class_space)
.Doing a
np.argmax
withaxis=1
returns a single class index value for each sample.This is what we do for multi-class classification.
However in multi-class classification we don't normally use
sigmoid
ony_pred
, although it is not wrong.This function seems much like
accuracy_multiclass
rather thanaccuracy_multilabel
The text was updated successfully, but these errors were encountered: