setup_computation: Sets up everything for the Shapley values computation in...

View source: R/setup_computation.R

setup_computationR Documentation

Sets up everything for the Shapley values computation in explain()

Description

Sets up everything for the Shapley values computation in explain()

Usage

setup_computation(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, output.

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

List internal It holds all parameters, data, and computed objects used within explain(). The list contains one or more of the elements parameters, data, objects, output.


NorskRegnesentral/shapr documentation built on April 19, 2024, 1:19 p.m.