Skip to content

Commit

Permalink
RedFlag metric
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmahom5 committed Aug 14, 2023
1 parent 8d25434 commit fdeb72e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mridle/experiment/tuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def hyperopt_objective(cls, params, model, x_train, y_train, scoring_fn: str, id

model_copy = model_copy.fit(x_train_cv, y_train_cv)

if scoring_fn not in ['mse', 'mae', 'rmse', 'mape']:
if scoring_fn not in ['mse', 'mae', 'rmse', 'mape', 'redflag']:
y_proba_preds = model_copy.predict_proba(x_test_cv)
y_proba_preds = np.clip(y_proba_preds, 1e-5, 1 - 1e-5)
if y_proba_preds.shape[1] == 2:
Expand Down

0 comments on commit fdeb72e

Please sign in to comment.