evalml.objectives.BinaryClassificationObjective¶

class
evalml.objectives.
BinaryClassificationObjective
[source]¶ Base class for all binary classification objectives.
problem_types (list(ProblemType)): List of problem types that this objective is defined for. Set to [ProblemTypes.BINARY]. can_optimize_threshold (bool): Determines if threshold used by objective can be optimized or not.
Methods
Calculate the percent difference between scores.
Apply a learned threshold to predicted probabilities to get predicted classes.
Computes the relative value of the provided predictions compared to the actual labels, according a specified metric
Learn a binary classification threshold which optimizes the current objective.
Returns a numerical score indicating performance based on the differences between the predicted and actual values.
Validates the input based on a few simple checks.