Skip to content

Commit ca8a325

Browse files
author
Guillaume Lemaitre
committed
correct the IBA call in the examples
1 parent 4eab795 commit ca8a325

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/evaluation/plot_metrics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from imblearn import over_sampling as os
1717
from imblearn import pipeline as pl
1818
from imblearn.metrics import (geometric_mean_score,
19-
make_indexed_balanced_accuracy)
19+
make_index_balanced_accuracy)
2020

2121
print(__doc__)
2222

@@ -56,7 +56,7 @@
5656
# imbalanced learning problems.
5757

5858
alpha = 0.1
59-
geo_mean = make_indexed_balanced_accuracy(alpha=alpha, squared=True)(
59+
geo_mean = make_index_balanced_accuracy(alpha=alpha, squared=True)(
6060
geometric_mean_score)
6161

6262
print('The IBA using alpha = {} and the geometric mean: {}'.format(
@@ -65,7 +65,7 @@
6565
y_pred_bal)))
6666

6767
alpha = 0.5
68-
geo_mean = make_indexed_balanced_accuracy(alpha=alpha, squared=True)(
68+
geo_mean = make_index_balanced_accuracy(alpha=alpha, squared=True)(
6969
geometric_mean_score)
7070

7171
print('The IBA using alpha = {} and the geometric mean: {}'.format(

0 commit comments

Comments
 (0)