scikit-learn/sklearn/preprocessing
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
..
tests ENH PolynomialFeatures better handle degree=0 (#23370) 2022-05-16 11:01:23 +02:00
__init__.py MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
_csr_polynomial_expansion.pyx MNT Use cimport numpy as cnp for sklearn/preprocessing (#23349) 2022-05-14 10:49:19 -04:00
_data.py DOC Ensure that normalize passes numpydoc validation (#23188) 2022-04-22 10:53:15 -04:00
_discretization.py MNT Remove utf-8 encoding declarations (#21260) 2022-03-14 17:59:36 +01:00
_encoders.py ENH Adds encoded_missing_value to OrdinalEncoder (#21988) 2022-03-23 13:26:34 +01:00
_function_transformer.py DOC Improve get_feature_names_out docstrings (#22718) 2022-03-07 13:02:12 -05:00
_label.py FIX validate in `fit` for `LabelBinarizer` estimator (#21434) 2021-11-02 11:26:02 +01:00
_polynomial.py ENH PolynomialFeatures better handle degree=0 (#23370) 2022-05-16 11:01:23 +02:00
setup.py MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00