[scikit-learn/scikit-learn] 45dc89: [MRG+2] Clean common tests (#9340)

Branch: refs/heads/master Home: https://github.com/scikit-learn/scikit-learn Commit: 45dc891c96eebdb3b81bf14c2737d8f6540fabfe https://github.com/scikit-learn/scikit-learn/commit/45dc891c96eebdb3b81bf14c... Author: Albert Thomas <albertthomas88@gmail.com> Date: 2017-09-26 (Tue, 26 Sep 2017) Changed paths: M sklearn/cluster/mean_shift_.py M sklearn/cluster/spectral.py M sklearn/cluster/tests/test_mean_shift.py M sklearn/cross_decomposition/pls_.py M sklearn/decomposition/fastica_.py M sklearn/discriminant_analysis.py M sklearn/ensemble/gradient_boosting.py M sklearn/feature_selection/univariate_selection.py M sklearn/gaussian_process/gpc.py M sklearn/linear_model/bayes.py M sklearn/linear_model/ransac.py M sklearn/linear_model/ridge.py M sklearn/linear_model/stochastic_gradient.py M sklearn/manifold/locally_linear.py M sklearn/manifold/t_sne.py M sklearn/manifold/tests/test_t_sne.py M sklearn/mixture/base.py M sklearn/model_selection/_split.py M sklearn/neighbors/nearest_centroid.py M sklearn/svm/base.py M sklearn/utils/estimator_checks.py Log Message: ----------- [MRG+2] Clean common tests (#9340) * rm dupes * add check_supervised_y_no_nan in classifier checks: this implies changes for Ridge classifiers * fix docstrings/comments * FIX check fitting 1d X array raises error and FIX check fitting 2d array with only 1 feature either works or returns informative message * modify check_fit2d_1sample in common tests so that it checks fitting either works or returns an informative message * rm SpectralClustering case for the moment * uniformize error messages for 1 sample case and fix SpectralClustering with ensure_min_samples=2 * add unit test for mean_shift when n_samples * quantile < 1 * FIX travis with ensure_min_samples=2 in _PLS * try fix for failing tSNE test * typos * take @agramfort's review into account * sc to fix string in gaussian_process * add the class that is present to preserve information of previous message in gpc.py
participants (1)
-
GitHub