evalml.objectives.FraudCost.decision_function¶
-
FraudCost.
decision_function
(ypred_proba, threshold=0.0, X=None)[source]¶ Determine if a transaction is fraud given predicted probabilities, threshold, and dataframe with transaction amount
- Parameters
ypred_proba (pd.Series) – Predicted probablities
X (pd.DataFrame) – Dataframe containing transaction amount
threshold (float) – Dollar threshold to determine if transaction is fraud
- Returns
Series of predicted fraud labels using X and threshold
- Return type
pd.Series