View source: R/asymmetric_and_casual_Shapley.R
get_max_n_coalitions_causal | R Documentation |
Get the number of coalitions that respects the causal ordering
get_max_n_coalitions_causal(causal_ordering)
causal_ordering |
List.
Not applicable for (regular) non-causal or asymmetric explanations.
|
The function computes the number of coalitions that respects the causal ordering by computing the number
of coalitions in each partial causal component and then summing these. We compute
the number of coalitions in the i
th a partial causal component by 2^n - 1
,
where n
is the number of features in the the i
th partial causal component
and we subtract one as we do not want to include the situation where no features in
the i
th partial causal component are present. In the end, we add 1 for the
empty coalition.
Integer. The (maximum) number of coalitions that respects the causal ordering.
Lars Henry Berge Olsen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.