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
Tim Staley
42659232bd
Fix ARDRegression accuracy issue with scipy 1.3.0 ( #14067 )
2019-07-27 13:23:40 -04:00
Guillaume Lemaitre
b8ab214967
FIX vendor lobpcg for scipy < 1.3 which incorporates bug fixes ( #14195 )
2019-06-26 17:23:17 +02:00
Roman Yurchak
1015caf54d
MAINT Remove imports from sklearn.utils._joblib ( #13676 )
...
* Remove sklearn.utils._joblib imports
* Lint
* More fixes
2019-06-18 18:37:14 +04:00
Roman Yurchak
cf9a740598
[MRG+1] Use astype(.., copy=False) when possible ( #11973 )
...
* Use astype(.., copy=False) when possible
* Use Use astype(.., copy=False) also in tests
* Fix CI
* Guillaume's comments
* Address review comments
* Add what's new
* Fix CI
* Lint
* Fix merge issues
* More merge conflict fixes
* Fix failing test
* Lint
* Use copy=True in cluster/hierarchical
* More fixes
2019-03-01 11:07:10 +01:00
Hanmin Qin
16100944b9
MNT Remove utils.fixes.euler_gamma ( #13082 )
2019-02-04 21:32:23 +11:00
Roman Yurchak
701144559f
MAINT Remove unused utils.fixes ( #12928 )
...
This continues the work done in https://github.com/scikit-learn/scikit-learn/pull/12639 on dropping the python 2 support by,
- ~~removing unnecessary `from __future__` imports~~
- removing unused `sklearn.utils.fixes` assuming we can agree in https://github.com/scikit-learn/scikit-learn/issues/12927 that `sklearn.utils.fixes` are private as was stated e.g. in https://github.com/scikit-learn/scikit-learn/issues/6616#issuecomment-245109979
2019-01-08 12:43:49 +11:00
Adrin Jalali
2bd87f6ed8
Remove python < 3.5 from CI ( #12746 )
2018-12-14 10:53:12 +01:00
jeremiedbb
4e8194909c
FIX remove FutureWarning in _object_dtype_isnan and add test ( #12567 )
2018-11-12 21:28:05 +08:00
Joel Nothman
1128094271
BLD we should ensure continued support for joblib 0.11 ( #12350 )
2018-11-06 22:10:23 +01:00
Nicolas Hug
6d15840432
DOC Fixed doc issues for utils module ( #11445 )
2018-07-22 15:23:11 +10:00
Roman Yurchak
c09352c241
[MRG] Fix DeprecationWarning due to collections.abc in Python 3.7 ( #11431 )
...
Closes https://github.com/scikit-learn/scikit-learn/issues/11121
This PR removes the deprecation warning about ABC being moved from `collections` to `collections.abc` when importing scikit-learn in Python 3.7.
In the end, I put `collections.abc.{Sequence, Iterable, Mapping, Sized}` in the namespace of `sklearn.utils.fixes`. This was the simplest way I could find, and while it has the drawback of obfuscating the real module name, other approached appeared more problematic and a similar approach is currently used e.g. for `utils.fixes.signature` which is an alias for `inspect.signature`.
We can't just patch six with https://github.com/benjaminp/six/pull/241 , because sklearn uses six from 5 years ago, which would need updating and I'm not sure if it could have side effects (e.g. for pickling backward compatibility etc).
**Edit**: This adds a test checking that generally no warnings are raised when importing scikit-learn top-level modules.
2018-07-14 15:14:02 -05:00
Guillaume Lemaitre
f8adfa27ae
[MRG] Ignore and pass-through NaNs in RobustScaler and robust_scale ( #11308 )
2018-07-05 16:34:31 +02:00
Gael Varoquaux
106bb9e7f5
MAINT: option to unvendor joblib ( #11166 )
2018-06-29 16:35:45 +02:00
Guillaume Lemaitre
c1bc665958
ENH ignore NaNs in PowerTransformer ( #11306 )
2018-06-22 08:22:24 +10:00
jeremiedbb
0d8a04bd17
[MRG+1] SimpleImputer(strategy="constant") ( #11211 )
2018-06-20 17:20:33 +02:00
Guillaume Lemaitre
b9f3758dfd
MAINT add function to ignore nan in min/max sparse functions ( #11196 )
2018-06-07 06:57:30 +10:00
Guillaume Lemaitre
c3548a8e29
[MRG] EHN handle NaN value in QuantileTransformer ( #10437 )
2018-04-21 19:06:10 +02:00
Joel Nothman
df3f7b3b50
PEP8
2018-02-28 15:24:05 +11:00
Loïc Estève
e9e623156a
MAINT: fix typo in scipy version comment
2018-02-27 14:58:59 +01:00
Joris Van den Bossche
a2ebb8cfd2
ENH: new CategoricalEncoder class ( #9151 )
2017-11-21 20:03:41 +11:00
Naoya Kanai
95aa2952e1
Add logsumexp and comb to utils.fixes ( #9046 )
2017-06-10 15:01:02 +02:00
Naoya Kanai
6579220588
[MRG+1] Drop NumPy < 1.8 ( #8874 )
2017-06-07 17:06:06 +02:00