evalml.objectives.LeadScoring.objective_function

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

Calculate the profit per lead.

Parameters
  • y_predicted (pd.Series) – predicted labels

  • y_true (pd.Series) – true labels

  • X (pd.DataFrame) – None, not used.

Returns

profit per lead

Return type

float