evalml.objectives.CostBenefitMatrix.objective_function¶
-
CostBenefitMatrix.
objective_function
(y_true, y_predicted, X=None)[source]¶ Calculates cost-benefit of the using the predicted and true values.
- Parameters
y_predicted (pd.Series, ww.DataColumn) – Predicted labels
y_true (pd.Series, ww.DataColumn) – True labels
X (pd.DataFrame, ww.DataTable) – Ignored.
- Returns
Cost-benefit matrix score
- Return type
float