File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 16
16
from imblearn import over_sampling as os
17
17
from imblearn import pipeline as pl
18
18
from imblearn .metrics import (geometric_mean_score ,
19
- make_indexed_balanced_accuracy )
19
+ make_index_balanced_accuracy )
20
20
21
21
print (__doc__ )
22
22
56
56
# imbalanced learning problems.
57
57
58
58
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 )(
60
60
geometric_mean_score )
61
61
62
62
print ('The IBA using alpha = {} and the geometric mean: {}' .format (
65
65
y_pred_bal )))
66
66
67
67
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 )(
69
69
geometric_mean_score )
70
70
71
71
print ('The IBA using alpha = {} and the geometric mean: {}' .format (
You can’t perform that action at this time.
0 commit comments