Skip to content

Commit

Permalink
Adding is_percentage and perfect_score to CostBenefitMatrix.
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyaboulton committed Aug 14, 2020
1 parent e86cb7e commit b12fe4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions evalml/objectives/cost_benefit_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class CostBenefitMatrix(BinaryClassificationObjective):
name = "Cost Benefit Matrix"
greater_is_better = True
score_needs_proba = False
perfect_score = np.inf
is_percentage = False

def __init__(self, true_positive_cost, true_negative_cost, false_positive_cost, false_negative_cost):
"""Create instance of CostBenefitMatrix.
Expand Down

0 comments on commit b12fe4e

Please sign in to comment.