Skip to content
Snippets Groups Projects
Commit c61cb784 authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files

AUC

parent 813e8167
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,10 @@ __status__ = "Prototype" # Production, Development, Prototype ...@@ -7,7 +7,10 @@ __status__ = "Prototype" # Production, Development, Prototype
def score(y_true, y_pred, multiclass=False, **kwargs): def score(y_true, y_pred, multiclass=False, **kwargs):
score = metric(y_true, y_pred, **kwargs) try:
score = metric(y_true, y_pred, **kwargs)
except:
score = 0.0
return score return score
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment