Learn R Programming

shapr (version 1.0.4)

prepare_data_single_coalition: Compute the conditional probabilities for a single coalition for the categorical approach

Description

The prepare_data.categorical() function is slow when evaluated for a single coalition. This is a bottleneck for Causal Shapley values which call said function a lot with single coalitions.

Usage

prepare_data_single_coalition(internal, index_features)

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.

Author

Lars Henry Berge Olsen