How to create second-order(Squared,power,expotent = 2) features ?

I read this URL.

I found step_poly, which returns a poly model fitted value, right?

Is step_mutate the only way to create a feature that squares, cubes, or interacts with a column?

y ~ a + b
squares = a^2
cubes=a^3
interacts=a*b

I know that these can be specified in formulas if they are linear models, but I would like to know how to create them explicitly as features in tidymodels.

thank you

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.