Mohit Joshi
9f6592f714
TST Extend tests for `scipy.sparse.*array` in `test_polynomial.py` ( #27166 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-09-29 21:55:08 +00:00
Guillaume Lemaitre
0d701e8fef
MAINT use .toarray instead of .A that is deprecated ( #27367 )
...
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2023-09-14 13:08:35 +02:00
Julien Jerphanion
dfd299b19e
MAINT Remove soon-to-be deprecated scipy.sparse functions ( #26751 )
2023-07-12 18:34:01 +02:00
Adrin Jalali
42173fdb34
MNT add isort to ruff's rules ( #26649 )
2023-06-21 17:50:07 +02:00
Christian Lorentzen
e5c65906ee
ENH add sparse output to SplineTransformer ( #24145 )
...
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-06-05 15:04:34 +02:00
Julien Jerphanion
41b0bd82ff
MAINT Use `scipy.sparse.isspmatrix_*` ( #26420 )
2023-05-30 13:46:32 -04:00
Meekail Zain
c6628a0e7a
ENH Allow for appropriate dtype us in `preprocessing.PolynomialFeatures` for sparse matrices ( #23731 )
...
Co-authored-by: Aleksandr Kokhaniukov <alexander.kohanyukov@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-05-04 21:30:49 +02:00
Adrin Jalali
893d5accaf
MNT Update black to 23.3.0 ( #26110 )
2023-04-06 12:14:16 -04:00
Thomas J. Fan
55eaa4ba5c
FIX SplineTransformer.get_feature_names_out returns correct names for extrapolations=periodic ( #25296 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-01-18 18:25:33 +00:00
Jérémie du Boisberranger
2708aac034
MAINT Clean deprecation for 1.2: get_feature_names ( #24395 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-10-03 09:46:10 +02:00
Jérémie du Boisberranger
b4f51fd156
MAINT Clean deprecation for 1.2: n_features_ replaced by n_featues_in_ ( #24388 )
2022-09-08 11:15:06 -04:00
Stefanie Molin
ca4e076eaa
MAINT Add parameter validation to `PolynomialFeatures` ( #24214 )
2022-08-29 09:35:06 -04:00
Kendall
c01fad4fb4
MAINT add parameters validation for SplineTransformer ( #24057 )
2022-08-26 12:18:37 -04:00
Maxwell
8fe9e24f51
ENH PolynomialFeatures better handle degree=0 ( #23370 )
...
* raise error for PolynomialFeature when include_bias=False and degree=0
* better error message
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
* use elif
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
* address comments
* add whatsnew
* fix typo
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2022-05-16 11:01:23 +02: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
1fc86b6aac
MNT Update black to stable version ( #22474 )
2022-02-15 11:36:26 +01:00
Dimitri Papadopoulos Orfanos
f71c031314
DOC Typos found by codespell ( #21069 )
2021-09-17 19:04:54 +02:00
Thomas J. Fan
4abd9f2d9e
API Implements get_feature_names_out for transformers that support get_feature_names ( #18444 )
...
Co-authored-by: Andreas Mueller <andreas.mueller@columbia.edu>
Co-authored-by: Andreas Mueller <andreasmuellerml@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-09-07 10:56:57 +02:00
mlondschien
3a3f1bed10
ENH Allow `sample_weight` in `SplineTransformer.fit` method ( #20526 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-07-21 16:36:52 +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
383b53fa91
FIX Uses code literals in deprecated to prevent linking ( #20410 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-06-28 15:49:19 +02:00
Christian Lorentzen
bb2de70a17
ENH add minimal degree support to PolynomialFeatures ( #20250 )
2021-06-26 13:03:35 +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
28bc843d88
MNT deprecate n_input_features_ in PolynomialFeatures ( #20240 )
2021-06-11 18:20:24 +02:00
mlondschien
778125645f
Allow `n_knots=None` if knots are explicitly specified in `SplineTransformer` ( #20191 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-06-07 16:45:22 +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
Frederick Robinson
bc7cd3189b
ENH more efficient _num_combinations calculation in PolynomialFeatures ( #19734 )
2021-04-02 10:30:03 +02:00
Avi Gupta
ca9618c0e2
MNT move PolynomialFeatures from _data.py to _polynomial.py ( #19611 )
...
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-03-18 14:58:51 +01:00
mlondschien
95b7c680ab
ENH Add periodic extrapolation to SplineTransformer ( #19483 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-03-17 13:46:45 +01:00
mlondschien
f0a6f054e0
FIX bug in SplineTransformer.n_features_out_ ( #19577 )
2021-02-27 13:09:43 +01:00
Christian Lorentzen
27f1c737f2
FEA Add SplineTransformer ( #18368 )
2021-01-24 10:53:27 +01:00