|
QDpy
|
Neuro-MAP-Elites with error-mask descriptors and validation-set voting. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.neuro_elites.NMEEnsemble |
| Classifiers selected by validation accuracy and combined with majority voting. More... | |
| class | qdpy.algorithms.neuro_elites.NMEResult |
| Report the final learned repertoire, initial mining archive, and model-call counts. More... | |
| class | qdpy.algorithms.neuro_elites._MaskEncoder |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.neuro_elites.neuro_map_elites (targets, predict, *, sample, mutate, structural, mining_archive, budget, mining_budget, initial_samples=16, shape=(8, 8), min_mining_accuracy=.5, fit_steps=128, hidden=32, fit_batch=32, beta=.3, seed=0) | |
| Mine models, fit a beta-VAE on their errors, and illuminate the latent space. | |
| qdpy.algorithms.neuro_elites.nme_ensemble (archive, predict, targets, *, classes=None, max_members=None, size=None) | |
| Select a majority-vote prefix on an independent validation panel. | |
Neuro-MAP-Elites with error-mask descriptors and validation-set voting.
Definition in file neuro_elites.py.
| qdpy.algorithms.neuro_elites.neuro_map_elites | ( | targets, | |
| predict, | |||
| * | , | ||
| sample, | |||
| mutate, | |||
| structural, | |||
| mining_archive, | |||
| budget, | |||
| mining_budget, | |||
| initial_samples = 16, | |||
| shape = (8, 8), | |||
| min_mining_accuracy = .5, | |||
| fit_steps = 128, | |||
| hidden = 32, | |||
| fit_batch = 32, | |||
| beta = .3, | |||
| seed = 0 ) |
Mine models, fit a beta-VAE on their errors, and illuminate the latent space.
| targets | Training labels in prediction order. |
| predict | Callable (genome) returning predicted training labels. |
| sample | Callable (rng) returning a genome iterable. |
| mutate | Callable (genome, rng) returning an offspring genome. |
| structural | Callable (genome) returning the mining descriptors. |
| mining_archive | Empty rectangular mining archive with maximizing fitness. |
| budget | Total prediction calls, including mining. |
| mining_budget | Evaluations spent on structural MAP-Elites. |
| initial_samples | Number of unconditional samples during mining. |
| shape | Shape of the final latent grid. |
| min_mining_accuracy | Minimum balanced accuracy for masks used in training. |
| fit_steps | Number of VAE optimizer updates. |
| hidden | Hidden width of the encoder and decoder. |
| fit_batch | Maximum masks in each optimizer step. |
| beta | Weight of the latent KL term. |
| seed | Seed for variation and training. |
Run structural and learned-descriptor searches over the same training panel. Use balanced accuracy in both phases. Retain the error masks of qualifying mining elites and fit a beta-VAE to the binary masks. Seed the learned archive from cached mining measurements. Normal quantiles partition each learned axis into bins of equal mass under the latent prior.
Definition at line 140 of file neuro_elites.py.
| qdpy.algorithms.neuro_elites.nme_ensemble | ( | archive, | |
| predict, | |||
| targets, | |||
| * | , | ||
| classes = None, | |||
| max_members = None, | |||
| size = None ) |
Select a majority-vote prefix on an independent validation panel.
| archive | Iterable of measured classifiers with a scalar fitness. |
| predict | Callable (genome) returning labels on the validation panel. |
| targets | Validation labels in callback order. |
| classes | Optional full class list, including classes absent in validation. |
| max_members | Optional cap on ranked archive members tested. |
| size | Optional exact ensemble size for matched-size comparisons. |
Try quality-ranked vote prefixes and keep the smallest best-scoring one.
Definition at line 219 of file neuro_elites.py.