This transformer will generate polynomials up to and including the specified degree of each continuous feature column. Polynomial expansion is sometimes used to fit data that is non-linear using a linear estimator such as Ridge or Logistic Regression.
Data Type Compatibility: Continuous only
|1||degree||2||int||The highest degree polynomial to generate from each feature vector.|
This transformer does not have any additional methods.
use Rubix\ML\Transformers\PolynomialExpander; $transformer = new PolynomialExpander(3);