|
QDpy
|
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. | |
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.
| 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.
| qdpy.algorithms.ensemble_selection.QDOES.fit | ( | self, | |
| budget, | |||
| * | , | ||
| mode = "qdo" ) |
Run a seeded search with an exact count of validation loss calls.
| budget | Number of scored ensembles, including singleton initialization. |
| mode | "qdo", "quality", or "greedy". |
Fit using validation predictions only. Evaluate test predictions separately.
Definition at line 185 of file ensemble_selection.py.