Skip to content

Commit

Permalink
MNT removed deprecated files generation (scikit-learn#17132)
Browse files Browse the repository at this point in the history
NicolasHug authored May 25, 2020
1 parent 612ebc8 commit 7494da6
Showing 11 changed files with 16 additions and 643 deletions.
154 changes: 0 additions & 154 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -77,157 +77,3 @@ _configtest.o.d
sklearn/utils/_seq_dataset.pyx
sklearn/utils/_seq_dataset.pxd
sklearn/linear_model/_sag_fast.pyx

# deprecated paths
# TODO: Remove in 0.24
# All of these files should have a match in _build_utils/deprecated_modules.py
sklearn/utils/mocking.py

sklearn/ensemble/bagging.py
sklearn/ensemble/base.py
sklearn/ensemble/forest.py
sklearn/ensemble/gradient_boosting.py
sklearn/ensemble/iforest.py
sklearn/ensemble/stacking.py
sklearn/ensemble/voting.py
sklearn/ensemble/weight_boosting.py
sklearn/tree/export.py
sklearn/tree/tree.py

sklearn/neural_network/rbm.py
sklearn/neural_network/multilayer_perceptron.py

sklearn/utils/weight_vector.py
sklearn/utils/seq_dataset.py
sklearn/utils/fast_dict.py
sklearn/utils/testing.py

sklearn/cluster/affinity_propagation_.py
sklearn/cluster/bicluster.py
sklearn/cluster/birch.py
sklearn/cluster/dbscan_.py
sklearn/cluster/hierarchical.py
sklearn/cluster/k_means_.py
sklearn/cluster/mean_shift_.py
sklearn/cluster/optics_.py
sklearn/cluster/spectral.py

sklearn/mixture/base.py
sklearn/mixture/gaussian_mixture.py
sklearn/mixture/bayesian_mixture.py

sklearn/covariance/elliptic_envelope.py
sklearn/covariance/empirical_covariance_.py
sklearn/covariance/graph_lasso_.py
sklearn/covariance/robust_covariance.py
sklearn/covariance/shrunk_covariance_.py

sklearn/cross_decomposition/cca_.py
sklearn/cross_decomposition/pls_.py

sklearn/svm/base.py
sklearn/svm/classes.py
sklearn/svm/bounds.py
sklearn/svm/libsvm.py
sklearn/svm/libsvm_sparse.py
sklearn/svm/liblinear.py

sklearn/decomposition/base.py
sklearn/decomposition/dict_learning.py
sklearn/decomposition/cdnmf_fast.py
sklearn/decomposition/factor_analysis.py
sklearn/decomposition/fastica_.py
sklearn/decomposition/incremental_pca.py
sklearn/decomposition/kernel_pca.py
sklearn/decomposition/nmf.py
sklearn/decomposition/online_lda.py
sklearn/decomposition/online_lda_fast.py
sklearn/decomposition/pca.py
sklearn/decomposition/sparse_pca.py
sklearn/decomposition/truncated_svd.py

sklearn/gaussian_process/gpr.py
sklearn/gaussian_process/gpc.py

sklearn/datasets/base.py
sklearn/datasets/california_housing.py
sklearn/datasets/covtype.py
sklearn/datasets/kddcup99.py
sklearn/datasets/lfw.py
sklearn/datasets/olivetti_faces.py
sklearn/datasets/openml.py
sklearn/datasets/rcv1.py
sklearn/datasets/samples_generator.py
sklearn/datasets/species_distributions.py
sklearn/datasets/svmlight_format.py
sklearn/datasets/twenty_newsgroups.py

sklearn/feature_extraction/dict_vectorizer.py
sklearn/feature_extraction/hashing.py
sklearn/feature_extraction/stop_words.py

sklearn/linear_model/base.py
sklearn/linear_model/bayes.py
sklearn/linear_model/cd_fast.py
sklearn/linear_model/coordinate_descent.py
sklearn/linear_model/huber.py
sklearn/linear_model/least_angle.py
sklearn/linear_model/logistic.py
sklearn/linear_model/omp.py
sklearn/linear_model/passive_aggressive.py
sklearn/linear_model/perceptron.py
sklearn/linear_model/ransac.py
sklearn/linear_model/ridge.py
sklearn/linear_model/sag.py
sklearn/linear_model/sag_fast.py
sklearn/linear_model/sgd_fast.py
sklearn/linear_model/stochastic_gradient.py
sklearn/linear_model/theil_sen.py

sklearn/metrics/cluster/bicluster.py
sklearn/metrics/cluster/supervised.py
sklearn/metrics/cluster/unsupervised.py
sklearn/metrics/cluster/expected_mutual_info_fast.py

sklearn/metrics/base.py
sklearn/metrics/classification.py
sklearn/metrics/regression.py
sklearn/metrics/ranking.py
sklearn/metrics/pairwise_fast.py
sklearn/metrics/scorer.py

sklearn/inspection/partial_dependence.py
sklearn/inspection/permutation_importance.py

sklearn/neighbors/ball_tree.py
sklearn/neighbors/base.py
sklearn/neighbors/classification.py
sklearn/neighbors/dist_metrics.py
sklearn/neighbors/graph.py
sklearn/neighbors/kd_tree.py
sklearn/neighbors/kde.py
sklearn/neighbors/lof.py
sklearn/neighbors/nca.py
sklearn/neighbors/nearest_centroid.py
sklearn/neighbors/quad_tree.py
sklearn/neighbors/regression.py
sklearn/neighbors/typedefs.py
sklearn/neighbors/unsupervised.py

sklearn/manifold/isomap.py
sklearn/manifold/locally_linear.py
sklearn/manifold/mds.py
sklearn/manifold/spectral_embedding_.py
sklearn/manifold/t_sne.py

sklearn/semi_supervised/label_propagation.py

sklearn/preprocessing/data.py
sklearn/preprocessing/label.py

sklearn/feature_selection/base.py
sklearn/feature_selection/from_model.py
sklearn/feature_selection/mutual_info.py
sklearn/feature_selection/rfe.py
sklearn/feature_selection/univariate_selection.py
sklearn/feature_selection/variance_threshold.py
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -18,8 +18,6 @@ clean-ctags:
clean: clean-ctags
$(PYTHON) setup.py clean
rm -rf dist
# TODO: Remove in when all modules are removed.
$(PYTHON) sklearn/_build_utils/deprecated_modules.py

in: inplace # just a shortcut
inplace:
9 changes: 0 additions & 9 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -13,10 +13,8 @@
import pytest
from _pytest.doctest import DoctestItem

from sklearn import set_config
from sklearn.utils import _IS_32BIT
from sklearn.externals import _pilutil
from sklearn._build_utils.deprecated_modules import _DEPRECATED_MODULES

PYTEST_MIN_VERSION = '3.3.0'

@@ -97,10 +95,3 @@ def pytest_configure(config):
def pytest_unconfigure(config):
import sys
del sys._is_pytest_session


# TODO: Remove when modules are deprecated in 0.24
# Configures pytest to ignore deprecated modules.
collect_ignore_glob = [
os.path.join(*deprecated_path.split(".")) + ".py"
for _, deprecated_path, _, _ in _DEPRECATED_MODULES]
Loading
Oops, something went wrong.

0 comments on commit 7494da6

Please sign in to comment.