pydvl.valuation.methods.beta_shapley
¶
BetaShapleyValuation
¶
BetaShapleyValuation(
utility: UtilityBase,
sampler: IndexSampler,
is_done: StoppingCriterion,
alpha: float,
beta: float,
progress: bool = False,
)
Bases: SemivalueValuation
Computes Beta-Shapley values.
Source code in src/pydvl/valuation/methods/beta_shapley.py
values
¶
values(sort: bool = False) -> ValuationResult
Returns a copy of the valuation result.
The valuation must have been run with fit()
before calling this method.
PARAMETER | DESCRIPTION |
---|---|
sort |
Whether to sort the valuation result before returning it.
TYPE:
|
Returns: The result of the valuation.