evalml.objectives.LeadScoring

class evalml.objectives.LeadScoring(true_positives=1, false_positives=-1)[source]

Lead scoring.

Methods

__init__

Create instance.

calculate_percent_difference

Calculate the percent difference between scores.

decision_function

Apply a learned threshold to predicted probabilities to get predicted classes.

objective_function

Calculate the profit per lead.

optimize_threshold

Learn a binary classification threshold which optimizes the current objective.

score

Returns a numerical score indicating performance based on the differences between the predicted and actual values.

validate_inputs

Validates the input based on a few simple checks.

Class Inheritance

Inheritance diagram of LeadScoring