regression.get_y_hat: Get the predicted responses

View source: R/approach_regression_separate.R

regression.get_y_hatR Documentation

Get the predicted responses

Description

Get the predicted responses

Usage

regression.get_y_hat(internal, model, predict_model)

Arguments

internal

List. Holds all parameters, data, functions and computed objects used within explain() The list contains one or more of the elements parameters, data, objects, iter_list, timing_list, main_timing_list, output, and iter_timing_list.

model

Objects. The model object that ought to be explained. See the documentation of explain() for details.

predict_model

Function. The prediction function used when model is not natively supported. See the documentation of explain() for details.

Value

The same internal list, but added vectors internal$data$x_train_y_hat and internal$data$x_explain_y_hat containing the predicted response of the training and explain data.

Author(s)

Lars Henry Berge Olsen


shapr documentation built on April 4, 2025, 12:18 a.m.