compute_shapley_new: Compute shapley values

View source: R/finalize_explanation.R

compute_shapley_newR Documentation

Compute shapley values

Description

Compute shapley values

Usage

compute_shapley_new(internal, dt_vS)

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.

dt_vS

The contribution matrix.

Value

A data.table with Shapley values for each test observation.


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