pydvl.valuation.base
¶
This module declares the abstract base classes for all valuation methods. A valuation method is any function that computes a value for each data point in a dataset.
Info
For information on data valuation, read the introduction.
ModelFreeValuation
¶
TODO: Just a stub, probably should not inherit from Valuation.
Source code in src/pydvl/valuation/base.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 by value before returning it.
TYPE:
|
Returns: The result of the valuation.
Source code in src/pydvl/valuation/base.py
Valuation
¶
Bases: ABC
Abstract base class for all valuation methods.
Source code in src/pydvl/valuation/base.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 by value before returning it.
TYPE:
|
Returns: The result of the valuation.