FraudCost.
objective_function
Calculate amount lost to fraud per transaction given predictions, true values, and dataframe with transaction amount.
y_predicted (ww.DataColumn, pd.Series) – Predicted fraud labels
y_true (ww.DataColumn, pd.Series) – True fraud labels
X (ww.DataTable, pd.DataFrame) – Data with transaction amounts
Amount lost to fraud per transaction
float