File: v0.12.rst

package info (click to toggle)
imbalanced-learn 0.12.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,160 kB
  • sloc: python: 17,221; sh: 481; makefile: 187; javascript: 50
file content (149 lines) | stat: -rw-r--r-- 4,441 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
.. _changes_0_12:

Version 0.12.4
==============

**October 4, 2024**

Changelog
---------

Compatibility
.............

- Compatibility with NumPy 2.0+
  :pr:`1097` by :user:`Guillaume Lemaitre <glemaitre>`.

Version 0.12.3
==============

**May 28, 2024**

Changelog
---------

Compatibility
.............

- Compatibility with scikit-learn 1.5
  :pr:`1074` and :pr:`1084` by :user:`Guillaume Lemaitre <glemaitre>`.

Version 0.12.2
==============

**March 31, 2024**

Changelog
---------

Bug fixes
.........

- Fix the way we check for a specific Python version in the test suite.
  :pr:`1075` by :user:`Guillaume Lemaitre <glemaitre>`.

Version 0.12.1
==============

**March 31, 2024**

Changelog
---------

Bug fixes
.........

- Fix a bug in :class:`~imblearn.under_sampling.InstanceHardnessThreshold` where
  `estimator` could not be a :class:`~sklearn.pipeline.Pipeline` object.
  :pr:`1049` by :user:`Gonenc Mogol <gmogol>`.

Compatibility
.............

- Do not use `distutils` in tests due to deprecation.
  :pr:`1065` by :user:`Michael R. Crusoe <mr-c>`.

- Fix the scikit-learn import in tests to be compatible with version 1.4.1.post1.
  :pr:`1073` by :user:`Guillaume Lemaitre <glemaitre>`.

- Fix test to be compatible with Python 3.13.
  :pr:`1073` by :user:`Guillaume Lemaitre <glemaitre>`.

Version 0.12.0
==============

**January 24, 2024**

Changelog
---------

Bug fixes
.........

- Fix a bug in :class:`~imblearn.over_sampling.SMOTENC` where the entries of the
  one-hot encoding should be divided by `sqrt(2)` and not `2`, taking into account that
  they are plugged into an Euclidean distance computation.
  :pr:`1014` by :user:`Guillaume Lemaitre <glemaitre>`.

- Raise an informative error message when all support vectors are tagged as noise in
  :class:`~imblearn.over_sampling.SVMSMOTE`.
  :pr:`1016` by :user:`Guillaume Lemaitre <glemaitre>`.

- Fix a bug in :class:`~imblearn.over_sampling.SMOTENC` where the median of standard
  deviation of the continuous features was only computed on the minority class. Now,
  we are computing this statistic for each class that is up-sampled.
  :pr:`1015` by :user:`Guillaume Lemaitre <glemaitre>`.

- Fix a bug in :class:`~imblearn.over_sampling.SMOTENC` such that the case where
  the median of standard deviation of the continuous features is null is handled
  in the multiclass case as well.
  :pr:`1015` by :user:`Guillaume Lemaitre <glemaitre>`.

- Fix a bug in :class:`~imblearn.over_sampling.BorderlineSMOTE` version 2 where samples
  should be generated from the whole dataset and not only from the minority class.
  :pr:`1023` by :user:`Guillaume Lemaitre <glemaitre>`.

- Fix a bug in :class:`~imblearn.under_sampling.NeighbourhoodCleaningRule` where the
  `kind_sel="all"` was not working as explained in the literature.
  :pr:`1012` by :user:`Guillaume Lemaitre <glemaitre>`.

- Fix a bug in :class:`~imblearn.under_sampling.NeighbourhoodCleaningRule` where the
  `threshold_cleaning` ratio was multiplied on the total number of samples instead of
  the number of samples in the minority class.
  :pr:`1012` by :user:`Guillaume Lemaitre <glemaitre>`.

- Fix a bug in :class:`~imblearn.under_sampling.RandomUnderSampler` and
  :class:`~imblearn.over_sampling.RandomOverSampler` where a column containing only
  NaT was not handled correctly.
  :pr:`1059` by :user:`Guillaume Lemaitre <glemaitre>`.

Compatibility
.............

- :class:`~imblearn.ensemble.BalancedRandomForestClassifier` now support missing values
  and monotonic constraints if scikit-learn >= 1.4 is installed.

- :class:`~imblearn.pipeline.Pipeline` support metadata routing if scikit-learn >= 1.4
  is installed.

- Compatibility with scikit-learn 1.4.
  :pr:`1058` by :user:`Guillaume Lemaitre <glemaitre>`.

Deprecations
............

- Deprecate `estimator_` argument in favor of `estimators_` for the classes
  :class:`~imblearn.under_sampling.CondensedNearestNeighbour` and
  :class:`~imblearn.under_sampling.OneSidedSelection`. `estimator_` will be removed
  in 0.14.
  :pr:`1011` by :user:`Guillaume Lemaitre <glemaitre>`.

- Deprecate `kind_sel` in :class:`~imblearn.under_sampling.NeighbourhoodCleaningRule.
  It will be removed in 0.14. The parameter does not have any effect.
  :pr:`1012` by :user:`Guillaume Lemaitre <glemaitre>`.

Enhancements
............

- Allows to output dataframe with sparse format if provided as input.
  :pr:`1059` by :user:`ts2095 <ts2095>`.