predict_y_training: Predict responses for the training data

Description Usage Arguments Value

View source: R/tree_evaluation.R

Description

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 model$parms$flat_data and model$parms$data.

Usage

1

Arguments

model

a model created with splineTree()

Value

A vector of predicted responses where each element in the vector corresponds to a row in model$parms$data.


splinetree documentation built on July 18, 2019, 9:08 a.m.