patsy icon indicating copy to clipboard operation
patsy copied to clipboard

How to construct a polynomial for numerical data?

Open Alalalalaki opened this issue 4 years ago • 0 comments

For example I have some variables "x1, x2, x3, ...", and want all polynomials with a simple choice on the degree. The only solution I know so far is by using preprocessing.PolynomialFeatures in sklearn. But I can't see why it cannot be done simply in patsy.

Thanks.

Alalalalaki avatar Sep 15 '19 20:09 Alalalalaki