FraudCost.
decision_function
Determine if a transaction is fraud given predicted probabilities, threshold, and dataframe with transaction amount.
ypred_proba (pd.Series) – Predicted probablities
X (pd.DataFrame) – Dataframe containing transaction amount
threshold (float) – Dollar threshold to determine if transaction is fraud
pd.Series of predicted fraud labels using X and threshold
pd.Series