Create a new PolynomialExpansion instance.
Create a new PolynomialExpansion instance.
the polynomial degree to expand, which should be greater than or equal to 1
expected length of the input vectors, or 0 to infer from data
Create a new PolynomialExpansion from a settings object
Create a new PolynomialExpansion from a settings object
Settings object
Transform vector features by expanding them into a polynomial space, which is formulated by an n-degree combination of original dimensions.
Missing values are transformed to zero vectors.
When using aggregated feature summary from a previous session, vectors of different dimensions are transformed to zero vectors and FeatureRejection.WrongDimension rejections are reported.