pydvl.value.loo
¶
compute_loo
¶
compute_loo(
u: Utility,
*,
n_jobs: int = 1,
parallel_backend: Optional[ParallelBackend] = None,
config: Optional[ParallelConfig] = None,
progress: bool = True,
) -> ValuationResult
Computes leave one out value:
PARAMETER | DESCRIPTION |
---|---|
u
|
Utility object with model, data, and scoring function
TYPE:
|
progress
|
If True, display a progress bar
TYPE:
|
n_jobs
|
Number of parallel jobs to use
TYPE:
|
parallel_backend
|
Parallel backend instance to use
for parallelizing computations. If
TYPE:
|
config
|
(DEPRECATED) Object configuring parallel computation, with cluster address, number of cpus, etc.
TYPE:
|
progress
|
If True, display a progress bar
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
ValuationResult
|
Object with the data values. |
New in version 0.7.0
Renamed from naive_loo
and added parallel computation.
Changed in version 0.9.0
Deprecated config
argument and added a parallel_backend
argument to allow users to pass the Parallel Backend instance
directly.