Juan Martin Loyola
b0cac5339a
TST Replace assert_warns with pytest context manager in sklearn/utilst/tests/test_testing.py ( #20436 )
2021-07-06 10:58:29 +02:00
Juan Martin Loyola
0d343bb2d2
Replace assert_warns* with pytest context manager in sklearn/utilst/tests/* ( #20421 )
2021-06-30 23:57:16 +02:00
Thomas J. Fan
3ae7c76153
STY Enables black with experimental_string_processing=true ( #20412 )
2021-06-29 09:47:04 +02:00
Thomas J. Fan
1abc3f21c8
FIX deprecated properties correctly wraps the property's docstring ( #20385 )
2021-06-26 21:40:18 +02:00
Juan Martin Loyola
617ff6ef72
MAINT Remove unused variables indicated by lgtm.com ( #20303 )
2021-06-19 10:24:10 +02:00
Thomas J. Fan
351ace7935
STY Uses black's with target_version >= 3.7 ( #20294 )
2021-06-17 15:50:27 -04:00
Thomas J. Fan
82df48934e
MNT Applies black formatting to most of the code base ( #18948 )
2021-06-17 14:21:09 -04:00
Jérémie du Boisberranger
536f3ccd75
MNT Allow to only validate y in _validate_data ( #20227 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-06-15 17:14:19 +02:00
Olivier Grisel
673625b294
FIX make check_complex_data deterministic ( #20221 )
2021-06-07 12:15:17 -04:00
Conner Shen
64bafa313e
FIX mcc zero divsion ( #19977 )
2021-06-03 12:15:30 +02:00
Thomas J. Fan
6850c04186
API Deprecates support for np.matrix in check_array ( #20165 )
...
* API Deprecates support for np.matrix in check_array
* DOC Adds whats new
* ENH Adds link to numpy.matrix
2021-06-01 23:22:47 +02:00
Jérémie du Boisberranger
777ac15e67
MNT add n_features_in_ through the feature_extraction module ( #20180 )
2021-06-01 19:14:04 +02:00
Olivier Grisel
1c36b49eb2
MNT avoid pandas deprecation warning in test_validation.py ( #20171 )
2021-05-31 14:49:14 +02:00
Alihan Zihna
3c72fe5051
TST Changes assert_raises to raises in sklearn/utils/test_estimator_checks.py ( #20138 )
...
Co-authored-by: Alihan Zihna <a.zihna@ckhgbdp.onmicrosoft.com>
2021-05-27 08:44:12 +02:00
Chiara Marmo
40b45e6b7c
[MRG] CI Push Scipy minimum version to 1.1.0. Remove Python 3.6 from builds. ( #20069 )
...
* Push scipy min version to 1.0.0
* Update all ubuntu images to 20.04 focal.
* Add ubuntu images 18.04 bionic and scipy fron conda-forge.
* Fix conditions.
* Pin python 3.6 for ubuntu bionic.
* Change pipeline name.
* Change matrix element name.
* Keep python 3.9 from system not conda in Ubuntu 20.04.
* Remove python directive when unnecessary.
* Cleanup.
* Downgrade to python 3.6 as scipy 1.0.0 is incompatible with 3.8.
* Fix comment.
* Fix comment.
* Pin pytest again as we are forced to use 3.6.
* Move to conda installer for 32bit linux.
* Install miniconda for ubuntu 32bit.
* Install wget for ubuntu 32bit.
* Revert 32bit OS to ubuntu bionic 18.04.
* Install scipy from pip in 32bit system.
* Fix doctest failures.
* Revert example rendering.
* Relax pytest version in ubuntu install.
* Skip failing tests.
* Put comment at the right place.
* Remove python3.6. Ubuntu32 still needs to be adapted.
* Push numpy and scipy min versions for compatibility with 3.7.
* Push matplotlib min version for compatibility with 3.7. Install numpy via pip in 32bit linux.
* Install numpy before scipy in Linux 32bit.
* Pass numpy version to linux32.
* Test 32bit architecture on debian buster (still exists for 32bit with python 3.7).
* Install matplotlib from distribution.
* Syntax error...
* Stick to the numpy debian version to avoid Expected 124 from C header, got 112 from PyObject error.
* Clean comments.
* Revert skip in doctest to check with new dependencies.
* Rename distrib.
* Skip again...
* Fix test on check_array.
* Remove comment and fix lint at the same time.
* Clean import.
* Increase atol in test_derivatives to make the test pass in py37_conda_openblas environment.
* Avoid sparse matrix dependent on scipy version.
* Skip docstring test for pandas versions less then 1.1.0.
* Fix lint error.
* Empty commit to force checks.
* Add minimal dependencies in changelog.
* Update to python 3.7 CircleCI and Travis builds.
* Move to debian buster for python3.7 dependencies.
* Fix the container tag.
* Lower the minimal pandas version for compatibility with python 3.7.
2021-05-18 16:09:36 +02:00
Tom Dupré la Tour
f6e6ad2d9e
MNT clean futurewarning for 1.0 | _deprecate_positional_args ( #20002 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-05-14 11:30:27 -04:00
Jérémie du Boisberranger
6d67937b3c
cln deprecations fixes ( #19323 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2021-05-11 11:08:13 +02:00
Sylvain Marié
bf0886bae0
[MRG after #12145 ] Add "Randomized SVD" solver option to KernelPCA for faster partial decompositions, like in PCA ( #12069 )
...
Co-authored-by: Sylvain MARIE <sylvain.marie@se.com>
Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Joel Nothman <joel.nothman@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Co-authored-by: Tom Dupré la Tour <tom.dupre-la-tour@m4x.org>
2021-04-27 16:06:10 +02:00
Dmitry Kobak
8156c10828
ENH Improve initialization and learning rate in t-SNE ( #19491 )
...
Co-authored-by: Tom Dupré la Tour <tom.dupre-la-tour@m4x.org>
2021-04-26 15:29:59 -04:00
Andrew Delong
a67b284f90
FIX Encoder should accept categories having dtype='S' ( #19727 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-04-21 17:34:28 -04:00
Thomas J. Fan
5efcb10c3e
MAINT Vendors packaging/version.py for pep440 versioning ( #19826 )
...
* MAINT Vendors packaging/version for pep440 versioning
* ENH Uses folder structure of packaging
* ENH Uses fixes parse_version
* ENH Uses packaging name
* MAINT Adds packaging
* BLD Use vendored version [cd build]
2021-04-19 17:06:38 +02:00
Jérémie du Boisberranger
684b7d1955
FIX detect near constant feature in StandardScaler and linear models ( #19788 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-04-14 13:34:22 +02:00
Albert Villanova del Moral
c957eb37b5
FIX Ignore zero sample weights in precision recall curve ( #18328 )
...
Co-authored-by: Alonso Silva Allende <alonsosilva@gmaiil.com>
2021-04-05 18:28:44 +02:00
Jérémie du Boisberranger
57d3668f2a
MNT Avoid catastrophic cancellation in mean_variance_axis ( #19766 )
2021-03-31 09:20:22 +02:00
Olivier Grisel
54ff7b7c4f
Test and doc for n_features_in_ for sklearn.calibration ( #19555 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-03-30 18:19:56 +02:00
Thomas J. Fan
80f923e00d
ENH num_features for a 1d collection of dicts is undefined ( #19740 )
...
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-03-29 16:12:54 +02:00
Avi Gupta
cc1b171af8
Replaced assert_raises from utils/tests/test_estimator_checks ( #19709 )
2021-03-19 17:33:57 +01:00
Sean Benhur J
04f84c6d08
DOC Added utils.gen_batches in documentation ( #19688 )
2021-03-17 15:53:00 +01:00
Thomas J. Fan
d996eaf088
ENH Adds _num_features for array-likes ( #19633 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-03-16 15:14:25 +01:00
cliffordEmmanuel
77e998db35
ENH Deprecated the default random_state=0 in randomized_svd ( #19670 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: cinbez <cindyb@lightstone.co.za>
2021-03-15 12:22:16 +01:00
Marco Gorelli
e3e4a778d3
MNT Remove absolute imports ( #19668 )
2021-03-14 12:36:49 +01:00
Thomas J. Fan
b251f3f818
FIX Gives a unique id to html visualization ( #19417 )
2021-02-15 15:52:34 +01:00
Albert Thomas
e6e543bb07
ENH Better err messages for contamination in outlier detectors ( #18780 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-02-12 10:57:29 +01:00
Thomas J. Fan
6959532d4e
ENH Checks n_features_in_ in covariance ( #19341 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-02-11 21:52:47 +01:00
Norbert Preining
8066086a85
MNT Consolidate _incremental_weighted_mean_and_var into _incremental_mean_and_var ( #19422 )
2021-02-10 16:37:14 +01:00
Mabu Manaileng
c3f647a6b2
MNT Fix divide by zero error thrown by _random_choice_csc during a test run ( #19383 )
2021-02-09 14:37:26 +01:00
Jérémie du Boisberranger
673f6259f3
Fix min_pos when all negative + speed up ( #19328 )
2021-02-03 22:52:18 +01:00
Yosuke KOBAYASHI
81a56bd8bf
FIX Don't overwrite input sample_weight in LogisticRegression ( #19182 )
2021-02-01 21:15:36 +01:00
Thomas J. Fan
96a96f1957
ENH Adds n_features_in_ checking in cross_decomposition ( #18741 )
2021-02-01 16:40:57 +01:00
Thomas J. Fan
38e6022e24
TST Ignores PendingDeprecationWarning in tests ( #19301 )
2021-01-30 13:35:07 +01:00
Christian Lorentzen
27f1c737f2
FEA Add SplineTransformer ( #18368 )
2021-01-24 10:53:27 +01:00
Olivier Grisel
0f0eb52290
FIX check_decision_proba_consistency random failure ( #19225 )
...
* FIX more deterministic check_decision_proba_consistency
* Trigger [cd build]
* Re-add rounding
* Trigger [cd build]
* Avoid redundant phrasing in comment [ci skip]
2021-01-23 16:14:00 +01:00
Tim Gates
a92ec1b758
DOC fix simple typo, variales -> variables ( #19054 )
2020-12-21 16:58:27 -05:00
Guillaume Lemaitre
2218ec4622
MNT change 0.25 to 1.0 and 0.26 to 1.1 in deprecation messages ( #19005 )
...
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-12-18 16:09:19 +00:00
Frans Larsson
8e9ced237b
DOC Fix doc of defaults in sklearn.utils.sparsefuncs.py ( #18025 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-12-15 10:37:12 +01:00
Guillaume Lemaitre
255718b4ad
introduce _safe_tags for estimator not inheriting from BaseEstimator ( #18797 )
...
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-12-02 11:18:53 +01:00
Gaurav Desai
da562b4fa5
MNT initialize weights when using ARPACK solver with a utility ( #18302 )
...
Co-authored-by: Ivan PANICO <ivpanico@gmail.com>
Co-authored-by: Ivan Panico <iv.panico@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-11-27 18:25:35 +01:00
Thomas J. Fan
f82525ee2f
CLN Deprecations position args in PartialDependenceDisplay.plot ( #18293 )
2020-11-27 12:34:55 +01:00
Guillaume Lemaitre
ad3c288182
MNT minimally revert strict_mode ( #18905 )
...
* MNT minimally revert strict_mode
* remove test
* Update sklearn/utils/estimator_checks.py
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-11-25 13:31:32 +01:00
Patrice Becker
2f6af711b0
FEA Add Self Training Estimator ( #11682 )
...
Co-authored-by: Oliver Rausch <oliverrausch@users.noreply.github.com>
Co-authored-by: Patrice Becker <patricelbecker@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-11-20 19:49:08 +01:00