evalml.objectives.FraudCost.decision_function

FraudCost.decision_function(y_predicted, extra_cols, threshold)[source]

Determine if transaction is fraud given predicted probabilities, dataframe with transaction amount, and threshold

Parameters
  • y_predicted (pd.Series) – predicted labels

  • extra_cols (pd.DataFrame) – extra data needed

  • threshold (float) – dollar threshold to determine if transaction is fraud

Returns

series of predicted fraud label using extra cols and threshold

Return type

pd.Series