Calling predictY(model) and predict_y_training(model) return identical results, because when no test data is provided to predictY(), the default is to use the training set. This is a slightly faster version that can be used when you know that you wish to predict on the training data. It is faster because it takes advantage of the relationship between modelparmsflat_data and modelparmsdata.
predict_y_training(model)
Arguments
model: a model created with splineTree()
Returns
A vector of predicted responses where each element in the vector corresponds to a row in modelparmsdata.