-anchor-permalink" href="#PolynomialFeatures" title="Permalink"></a></h3><p>Generates polynomial and interaction features.</p><pre><code class="language-julia hljs">using NovaML.PreProcessing

X = rand(5, 2)
# 5×2 Matrix{Float64}:
#  0.85245   0.405935
#  0.139957  0.380467
#  0.730332  0.0418465
#  0.051091  0.570372
#  0.730245  0.128763

poly = PolynomialFeatures(
    degree=2,
    interaction_only=false,
    include_bias=true)

Xnew = poly(X)
# 5×6 Matrix{Float64}:
#  1.0  0.85245   0.405935   0.72667