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) – pd.Dataframe with transaction amounts
Amount lost to fraud per transaction
float