QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.ensemble_selection.QDOES Class Reference

Optimize ensembles in loss-correlation and configuration-distance space. More...

Public Member Functions

 descriptors (self, counts)
 Compute average loss correlation and Gower distance for included models.
 fit (self, budget, *, mode="qdo")
 Run a seeded search with an exact count of validation loss calls.

Detailed Description

Optimize ensembles in loss-correlation and configuration-distance space.

Run QDO-ES, quality-only QO-ES, or greedy selection on fixed predictions.

:param probabilities: Validation predictions shaped (models, samples, classes).
:param labels: Integer validation labels indexing the probability tensor.
:param configurations: One hyperparameter mapping per base model.
    Numeric keys use relative distances. Categorical keys use equality.
    Missing keys are skipped in pairwise distances.
:param loss: Optional callable (labels, probabilities) returning finite nonnegative loss.
    Defaults to mean multiclass log loss.
:param bins: Sliding archive bins per axis, also setting QO-ES population capacity.
:param batch_size: Offspring per population update.
:param remap_frequency: Valid offers between sliding-boundary updates.
:param crossover: "average", "two_point", or "none".
:param seed: Private RNG seed for parent selection, variation, and ties.

Definition at line 100 of file ensemble_selection.py.

Member Function Documentation

◆ descriptors()

qdpy.algorithms.ensemble_selection.QDOES.descriptors ( self,
counts )

Compute average loss correlation and Gower distance for included models.

Ignore multiplicities and define singleton and constant-vector terms as zero.

Definition at line 158 of file ensemble_selection.py.

◆ fit()

qdpy.algorithms.ensemble_selection.QDOES.fit ( self,
budget,
* ,
mode = "qdo" )

Run a seeded search with an exact count of validation loss calls.

Parameters
budgetNumber of scored ensembles, including singleton initialization.
mode"qdo", "quality", or "greedy".
Returns
EnsembleSelectionResult with the best ensemble and optional archive.
Fit using validation predictions only. Evaluate test predictions separately.

Definition at line 185 of file ensemble_selection.py.


The documentation for this class was generated from the following file: