Commit Graph

44 Commits

Author SHA1 Message Date
Adrin Jalali c4c5463556
MNT upgrade black version (#28802) 2024-04-10 11:06:55 -04:00
scaja f113327bf1
DOC linked SplineTransformer to time-related feature engineering example (#26971)
Co-authored-by: scaja <scajadata@gmail.com>
Co-authored-by: adrinjalali <adrin.jalali@gmail.com>
2023-12-04 15:44:21 +00:00
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
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
Jérémie du Boisberranger 9c266cf5d6
MAINT Param validation: decorate all estimators with _fit_context (#26473) 2023-06-14 16:52:35 +02:00
Guillaume Lemaitre d85e22224c
MAINT make sure that hstack outputs a CSR matrix (#26555) 2023-06-09 17:35:24 +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
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
Yao Xiao 3e0d957a13
DOC fix SplineTransformer include_bias docstring (#26018) 2023-03-30 14:50:17 +02:00
Omar Salman 616db5c032
TST Common test for checking estimator deserialization from a read only buffer (#25624) 2023-02-17 09:34:39 -05:00
Alex Buzenet d85b1d3302
ENH Raise NotFittedError in get_feature_names_out for MissingIndicator, KBinsDiscretizer, SplineTransformer, DictVectorizer (#25402)
Co-authored-by: Alex <alex.buzenet.fr@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-01-23 10:59:14 -05: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
Thomas J. Fan 02ebf9e68f
MNT Adds dict typing hint to _parameter_constraints for mypy (#24301) 2022-08-30 11:01:10 +02: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
Olivier Grisel 279388d9ed
DOC Improve get_feature_names_out docstrings (#22718)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-03-07 13:02:12 -05: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
Pinky cd87551a29
DOC Ensures that SplineTransformer passes numpydoc validation (#21248)
* Remove SplineTransformer from DOCSTRING_IGNORE_LIST

* Fix numpydocs from SplineTransformer
2021-10-07 12:32:10 +02:00
Juan Martin Loyola 5ea46a5fba
DOC Ensures that PolynomialFeatures passes numpydoc validation (#21239) 2021-10-05 12:01:19 +02: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
Thomas J. Fan 786c4e5e39
DOC Adds feature_names_in_ to docstrings (#20787) 2021-08-26 13:44:45 +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 81dde3a6e5
STY Ensures that "flake8 ." works (#20298) 2021-06-18 15:46:40 +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
Thomas J. Fan 8e26b0c2a2
STY Minor style changes to prepare for black (#20265) 2021-06-15 15:43:42 +02:00
Jérémie du Boisberranger 28bc843d88
MNT deprecate n_input_features_ in PolynomialFeatures (#20240) 2021-06-11 18:20:24 +02:00
Guillaume Lemaitre 1cd282d600
DOC add n_features_in_ in the documentation (#20236) 2021-06-09 16:58:03 +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
naozin555 67f6a5c6d9
Add missing link to user guide in PolynomialFeatures API documentation (#20146) 2021-05-27 13:44:21 +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
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