experiments.perf_eval_funcs.deterministic_accuracy¶
- deterministic_accuracy(y_pred, y, **kwargs)¶
The fraction of correct samples. Best to use only when the output of the model, y_pred, is 0 or 1.
- Parameters:
y_pred – Array of predicted labels
y – Array of true labels