Commit Graph

160 Commits

Author SHA1 Message Date
Loïc Estève dc23e3f4a0
MAINT Remove Python<3.9 code from sklearn.utils.fixes (#27945)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-12-13 15:00:08 +01:00
Yao Xiao f284ef2dfe
TST Extend tests for `scipy.sparse/*array` in `sklearn/manifold/tests/test_spectral_embedding` (#27240)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-11-04 13:26:44 -04:00
Guillaume Lemaitre 56f6477d50
MAINT downcast indices dtype when converting sparse arrays (#27372)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-10-30 11:23:30 +01:00
Guillaume Lemaitre c5be0e7fd7
MAINT downcast object to other dtype without deprecation warning (#27487)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2023-10-11 12:04:43 +02:00
Loïc Estève 3179ce31cc
MAINT Use scipy sparse nanmin/nanmax for scipy>=1.11 (#27492)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-10-09 09:07:26 +02:00
Yao Xiao d38a7e3103
TST Extend tests for `scipy.sparse/*array` in `sklearn/neighbors/tests/test_neighbors` (#27250) 2023-09-25 11:14:02 +00:00
Loïc Estève a24af22e1f
CI Do not run doctests for numpy 2 (#27345)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-09-13 16:37:26 +00:00
Mateusz Sokół cb15a82e64
MAINT: Remove np.in1d and np.trapz usages (#27140)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2023-09-06 17:06:31 +02:00
Loïc Estève 1821c3c855
CI Fix scipy-dev issues related to numpy 2.0 changes (#27190) 2023-08-29 13:04:33 +02:00
Loïc Estève ff49a916a2
MNT Remove DeprecationWarning for scipy.sparse.linalg.cg tol vs rtol argument (#26814) 2023-08-18 13:53:11 +02:00
Julien Jerphanion 88074c924c
TST Extend tests for `scipy.sparse.*array` in `sklearn/cluster/tests/test_affinity_propagation` (#27095)
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-08-18 11:01:25 +00:00
Mateusz Sokół 62b9e4a6db
ENH: Update numpy exceptions imports (#27013) 2023-08-08 08:42:48 +02:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Jérémie du Boisberranger 9be4d8d897
MAINT Remove outdated fixes (#26442) 2023-06-01 16:57:13 +02:00
Tim Head 49a937e974
Remove loguniform fix, use scipy.stats instead (#24665)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-03-23 15:52:14 +00:00
Guillaume Lemaitre 9679dcf015
MAINT remove deprecated call to resources.content (#25951) 2023-03-23 15:13:48 +01:00
Guillaume Lemaitre 8640ed7b00
MAINT dynamically expose kulsinski and remove support in BallTree (#25417)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
closes https://github.com/scikit-learn/scikit-learn/pull/25212
2023-01-26 12:46:53 +00:00
Guillaume Lemaitre a7cd0ca44d
FIX propagate configuration to workers in parallel (#25363)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-01-20 12:44:35 -05:00
Loïc Estève d60af3de41
MNT fix test following scipy dev change (#25393)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2023-01-18 11:22:31 +01:00
Guillaume Lemaitre b0bf2315a7
MAINT fix deprecation raised in scipy-dev build (#25175)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-12-15 18:15:56 -05:00
Julien Jerphanion f2c78fe8c5
MAINT handle deprecations from `importlib.resources` (#25157)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-12-13 11:44:46 +01:00
Guillaume Lemaitre 02a4b34218
MAINT fix the way to call stats.mode (#23633)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Meekail Zain <34613774+Micky774@users.noreply.github.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-08-05 09:09:39 +02:00
Christian Lorentzen 99262c06c0
MNT remove sparse_lsqr from utils.fixes (#22894) 2022-03-18 21:14:07 +01:00
Jérémie du Boisberranger 34f9dbf541
MNT Clean fixes and compat for old versions of our dependencies (#22642)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-02 11:32:06 +01:00
Thomas J. Fan f1d3417b08
MNT Drops Python 3.7 in CI, wheel building, and docs (#22617)
* MNT Drops Python 3.7

* MNT Bump NumPy and SciPy

* FIX Fix build

* FIX Bump versions improved

* DOC Fixes numpy version [pypy]

* BLD [pypy] [icc-build]

* Update docs

* MAINT use scipy.optimize.LinearConstraint in test

* MAINT scipy 1.1.0 related code clean-up

* scipy>=1.3.2 in pyproject.toml's build deps

* [cd build]

* DOC Adds comment about pypy

* MAINT remove _astype_copy_false

* FIX Update check for python version in setup.py

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-02-28 18:23:02 +01:00
Thomas J. Fan 5f75acdd12
MNT Bump joblib version dependency to 1.0.0 (#22365) 2022-02-09 13:47:18 +01:00
Thomas J. Fan fb53986483
MNT Fixes deprecation error in [scipy-dev] (#21812) 2021-11-30 11:46:32 +01:00
Eric Larson d63405f1bb
MNT Use non-deprecated SciPy imports (#21603) 2021-11-09 21:00:27 +01:00
Olivier Grisel 47a49c51d1
FIX set docstrings on sklearn.utils.fixes.threadpool_limits/info (#21338)
* FIX set docstrings on sklearn.utils.fixes.threadpool_limits/info

* Skip threadpool_info/threadpool_limits docstring checks for now
2021-10-15 12:51:12 +02:00
Jérémie du Boisberranger 1cab25c40d
MNT use new threadpoolctl API (global threadpool controller) (#21206) 2021-10-08 15:14:00 +02:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +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 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 6d67937b3c
cln deprecations fixes (#19323)
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2021-05-11 11:08:13 +02: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
Christian Lorentzen 27f1c737f2
FEA Add SplineTransformer (#18368) 2021-01-24 10:53:27 +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
Lucy Liu c9543e1651
BUG Fix numpy version for `_take_along_axis` in fixes.py (#18745) 2020-11-03 08:52:11 +01:00
Thomas J. Fan 06d6f8a9f6
FIX Passes global configuration when spawning joblib jobs (#17634)
* WIP

* BUG Passes context to joblib jobs

* BUG Fix

* BUG Fix

* CLN Moves delayed into fixes

* CLN Adds linter

* REV Revert diff

* DOC Adds comment for removal

* Use a simple implementation
2020-09-21 16:59:42 +02:00
Hirofumi Suzuki c29092d699
MNT define a parse_version function in sklearn.utils.fixes (#17670)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-06-24 13:35:49 +02:00
Lucy Liu f93f560bb9
ENH add support for sample weights in MAE (#17225) 2020-05-27 15:03:43 +02:00
Nicolas Hug cbe9f08e35
MNT Put back and properly deprecate MaskedArray (#17199) 2020-05-13 08:52:25 +02:00
Nicolas Hug 946fddec7b
BUG Fix instability issue of ARDRegression (with speedup) (#16849) 2020-04-23 10:19:45 -04:00
Roman Yurchak 5a4340834d
Fix mypy errors (#16726) 2020-03-30 15:41:05 +02:00
Roman Yurchak 75d3f29e72
MAINT Remove outdated numpy and scipy backports (#16725)
* Remove unecessary numpy & scipy backports

* More fixes

* Remove unused imports
2020-03-20 13:57:18 +01:00
Adrin Jalali 42706ebf2d
MNT CI dropping python-3.5 (#15106)
* dropping python-3.5

* fix install guide

* fix setup.py

* fix circleci

* advanced_installation

* index.html

* readme

* pyparsing.py

* remove clean_warning_registry

* 1.13.1 and 1.19.1

* don't use 16.04

* 18.04 libatlas-dev -> libatlas-base-dev

* min pillow version for 3.6 is 4.2.1

* echo commands

* fix conflict, and 32 bit

* fix conflict for circle

* fix scikit-image version dep

* mark tests as xfail on 32bit py3.6

* move to 1.13.3 min numpy version, and simplify old code

* remove the rest of _object_dtype_isnan usages

* Revert "remove the rest of _object_dtype_isnan usages"

This reverts commit c6e867ea1f.

* fix issues raised by jeremy

* minor fix

* minor fixes mentioned by Olivier
2020-02-10 12:28:42 +01:00
mschaffenroth 847b3468c7 MNT Remove utils.fixes.parallel_helper (#15232) 2019-10-14 07:45:10 -04:00
Scott Sievert 7cb5dafebb FEA Implements log-uniform random variable (#11232) 2019-10-02 13:56:24 +02:00
Guillaume Lemaitre 2e8ce318c6 EHN update lobpcg from scipy master (#14971) 2019-09-16 13:39:53 +02:00