make_poly
function
defined in module
MLUtils.Datasets
make_poly(coef, x; noise = 0.01, f_rand = randn) -> x, y
Generates a noisy response for a polynomial of degree
length(coef)
using the vector
x
as input and adding
noise .* f_randn(length(x))
to the result. The vector
coef
contains the coefficients for the terms of the polynome. The first element of
coef
denotes the coefficient for the term with the highest degree, while the last element of
coef
denotes the intercept.
There is
1
method for MLUtils.Datasets.make_poly
:
The following pages link back here: