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
{{ message }}
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
I'm using a ZeroOneLoss to evaluate a classifier with a 10-fold cross validation. During the cross validation, my holdout data often contains only 2 of n possible classes. The ZeroOneLoss assumes a binary label in such a case. When computing the loss against the predicted values, an exception is thrown if the predicted values are not binary.
For example: new ZeroOneLoss(new int[] {0, 1}).Loss(new int[] {0, 2}).
AFAICS, we need to inspect both, the expected and the actual values to determine if binary labels are used or not.