FraudCost.
objective_function
Calculate amount lost to fraud per transaction given predictions, true values, and dataframe with transaction amount.
y_predicted (pd.Series) – predicted fraud labels
y_true (pd.Series) – true fraud labels
X (pd.DataFrame) – dataframe with transaction amounts
amount lost to fraud per transaction
float