evalml.objectives.LeadScoring.objective_function

LeadScoring.objective_function(y_true, y_predicted, X=None, sample_weight=None)[source]

Calculate the profit per lead.

Parameters
  • y_predicted (pd.Series) – Predicted labels

  • y_true (pd.Series) – True labels

  • X (pd.DataFrame) – Ignored.

  • sample_weight (pd.DataFrame) – Ignored.

Returns

Profit per lead

Return type

float