Skip to content

Commit e288ba8

Browse files
committed
updated docs for deprecation of featureextractor
1 parent 95d4e37 commit e288ba8

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

librosa/util/__init__.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,12 @@
6060
find_files
6161
6262
63-
sklearn integration
64-
-------------------
65-
66-
.. autosummary::
67-
:toctree: generated/
68-
69-
FeatureExtractor
70-
71-
7263
Deprecated
7364
----------
7465
.. autosummary::
7566
:toctree: generated/
7667
68+
FeatureExtractor
7769
buf_to_int
7870
7971
"""

librosa/util/feature_extractor.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ class FeatureExtractor(BaseEstimator, TransformerMixin):
1414
This class acts as a bridge between feature extraction functions
1515
and scikit-learn pipelines.
1616
17+
.. warning:: The `FeatureExtractor` object is deprecated as of 0.4.2, and will be
18+
removed in 0.5.
19+
Instead, use ``sklearn.preprocessing.FunctionTransformer``.
1720
1821
Attributes
1922
----------
@@ -40,10 +43,6 @@ class FeatureExtractor(BaseEstimator, TransformerMixin):
4043
kwargs : additional keyword arguments
4144
Parameters to be passed through to `function`
4245
43-
.. note:: The `FeatureExtractor` object is deprecated as of 0.4.2, and will be
44-
removed in 0.5.
45-
Instead, use ``sklearn.preprocessing.FunctionTransformer``.
46-
4746
Examples
4847
--------
4948
>>> import sklearn.pipeline

0 commit comments

Comments
 (0)