Skip to content

Commit

Permalink
Add mean absolute error preset (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef5ez authored and reiinakano committed Jun 3, 2017
1 parent 258813c commit 335d10f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions xcessiv/presets/metricsetting.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'precision_from_preds',
'f1_score_from_scores',
'f1_score_from_preds',
'mae',
'mse',
'roc_auc_score_from_scores'
]
Expand Down Expand Up @@ -196,6 +197,16 @@ def metric_generator(y_true, y_preds):
'selection_name': 'F1 Score from Predictions'
}

mae = {
'name': 'Mean Absolute Error',
'source':
"""from sklearn.metrics import mean_absolute_error
metric_generator = mean_absolute_error
""",
'selection_name': 'Mean Absolute Error'
}

mse = {
'name': 'Mean Squared Error',
'source':
Expand Down

0 comments on commit 335d10f

Please sign in to comment.