Skip to content

Commit ef49c55

Browse files
committed
Update README.md
1 parent 28908f4 commit ef49c55

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ from optimal_cutoffs import optimize_decisions
9090
# False negatives cost 10x more than false positives
9191
cost_matrix = [[0, 1], [10, 0]]
9292

93-
result = optimize_decisions(y_probs, cost_matrix)
94-
y_pred = result.predict(y_probs_new) # Bayes-optimal decisions
93+
result = optimize_decisions(y_score, cost_matrix)
94+
y_pred = result.predict(y_score_new) # Bayes-optimal decisions
9595
```
9696

9797
## API Overview
@@ -107,7 +107,7 @@ from optimal_cutoffs import optimize_thresholds, optimize_decisions
107107
result = optimize_thresholds(y_true, y_scores, metric="f1")
108108

109109
# For cost matrix optimization (no thresholds)
110-
result = optimize_decisions(y_probs, cost_matrix)
110+
result = optimize_decisions(y_score, cost_matrix)
111111
```
112112

113113
### Progressive Disclosure: Power When You Need It

0 commit comments

Comments
 (0)