Skip to content

Commit c484a4a

Browse files
committed
MAINT remove deprecated code from preprocessing
1 parent 259b487 commit c484a4a

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

sklearn/preprocessing/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from .label import MultiLabelBinarizer
2323

2424
from .imputation import Imputer
25-
from ._weights import balance_weights
2625

2726
__all__ = [
2827
'Binarizer',
@@ -37,7 +36,6 @@
3736
'StandardScaler',
3837
'add_dummy_feature',
3938
'PolynomialFeatures',
40-
'balance_weights',
4139
'binarize',
4240
'normalize',
4341
'scale',

sklearn/preprocessing/_weights.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import numpy as np
22

3-
from sklearn.utils import deprecated
4-
53

64
def _balance_weights(y):
75
"""Compute sample weights such that the class distribution of y becomes
@@ -25,9 +23,3 @@ def _balance_weights(y):
2523
weights *= bins.min()
2624

2725
return weights
28-
29-
30-
@deprecated('balance_weights is an internal function and will be removed '
31-
'in 0.16')
32-
def balance_weights(y):
33-
return _balance_weights(y)

sklearn/preprocessing/label.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,6 @@ def __init__(self, neg_label=0, pos_label=1, sparse_output=False):
270270
self.pos_label = pos_label
271271
self.sparse_output = sparse_output
272272

273-
@property
274-
@deprecated("Attribute `multilabel` was renamed to `multilabel_` in "
275-
"0.14 and will be removed in 0.16")
276-
def multilabel(self):
277-
return self.multilabel_
278-
279273
@property
280274
@deprecated("Attribute indicator_matrix_ is deprecated and will be "
281275
"removed in 0.17. Use 'y_type_ == 'multilabel-indicator'' "

0 commit comments

Comments
 (0)