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

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.