shapiq.game_theory.get_computation_index¶
- shapiq.game_theory.get_computation_index(index)[source]¶
Returns the base index of a given interaction index.
The base index is the index without any aggregation or transformation. The base index is used in the approximators to compute the interaction values. After the computation, the interaction values are aggregated to original interaction index.
- Parameters:
index (
str) – The interaction index.- Return type:
- Returns:
The base index of the interaction index.
Examples
>>> get_computation_index("k-SII") "SII" >>> get_computation_index("SII") "SII" >>> get_computation_index("SV") "SII" >>> get_computation_index("BV") "BII"