This function smoothes the Forward MARS predictor.
MARSAdaptedSmooth(data, nX, knots, y)List containing the set of knots from backward (knots),
the new cubic knots (cubic_knots) and the set of coefficients
(alpha).
data.frame or matrix containing the variables in
the model.
number of inputs in data.
data.frame containing knots from Forward MARS.
output indexes in data.