8000 [MRG+1] Remove the MLComp text categorization example (#8264) · Sundrique/scikit-learn@ee79716 · GitHub
[go: up one dir, main page]

Skip to content

Commit ee79716

Browse files
rthSundrique
authored andcommitted
[MRG+1] Remove the MLComp text categorization example (scikit-learn#8264)
and deprecate load_mlcomp.
1 parent 357d4d3 commit ee79716

File tree

2 files changed

+4
-145
lines changed

2 files changed

+4
-145
lines changed

examples/text/mlcomp_sparse_document_classification.py

Lines changed: 0 additions & 145 deletions
This file was deleted.

sklearn/datasets/mlcomp.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import os
66
import numbers
77
from sklearn.datasets.base import load_files
8+
from sklearn.utils import deprecated
89

910

1011
def _load_document_classification(dataset_path, metadata, set_=None, **kwargs):
@@ -19,6 +20,9 @@ def _load_document_classification(dataset_path, metadata, set_=None, **kwargs):
1920
}
2021

2122

23+
@deprecated("since the http://mlcomp.org/ website will shut down "
24+
"in March 2017, the load_mlcomp function was deprecated "
25+
"in version 0.19 and will be removed in 0.21.")
2226
def load_mlcomp(name_or_id, set_="raw", mlcomp_root=None, **kwargs):
2327
"""Load a datasets as downloaded from http://mlcomp.org
2428

0 commit comments

Comments
 (0)
0