Reserve 10 observations for the new test data set. The variables that make up the columns of X must have the same order as the predictor variables that trained Mdl. Train a univariate generalized additive model, which contains linear terms for predictors. Example: 'IncludeInteractions',false. Open Live Script.
nest...