pydvl.valuation.methods.delta_shapley
¶
DeltaShapleyValuation
¶
DeltaShapleyValuation(
utility: UtilityBase,
is_done: StoppingCriterion,
lower_bound: int,
upper_bound: int,
seed: Seed | None = None,
progress: bool = False,
)
Bases: SemivalueValuation
Computes \(\delta\)-Shapley values.
\(\delta\)-Shapley does not accept custom samplers. Instead it uses a truncated hierarchical powerset sampler with a lower and upper bound on the size of the sets to sample from.
TODO See ...
Source code in src/pydvl/valuation/methods/delta_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.