|
QDpy
|
Learn behavior descriptors from ranked pairs in each annotated triplet. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.divhf.DivHFProjector |
| Fit a linear descriptor with Bradley-Terry preference likelihoods. More... | |
| class | qdpy.algorithms.divhf.DivHFJudgment |
| Ordered query IDs and the indices of the closest and farthest pairs. More... | |
| class | qdpy.algorithms.divhf.DivHFResult |
| Learned archive, projection, evaluator costs, and query log. More... | |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.divhf.divhf_search (evaluate, archive, *, feedback, budget, feedback_budget, dimension, raw_feature_size, ind_domain=(0., 1.), warmup=64, refit_every=None, feedback_batch=24, fit_steps=128, temperature=.1, regularization=1e-3, seed=0) | |
| Illuminate descriptors trained from closest and farthest pairs. | |
Learn behavior descriptors from ranked pairs in each annotated triplet.
Definition in file divhf.py.
| qdpy.algorithms.divhf.divhf_search | ( | evaluate, | |
| archive, | |||
| * | , | ||
| feedback, | |||
| budget, | |||
| feedback_budget, | |||
| dimension, | |||
| raw_feature_size, | |||
| ind_domain = (0., 1.), | |||
| warmup = 64, | |||
| refit_every = None, | |||
| feedback_batch = 24, | |||
| fit_steps = 128, | |||
| temperature = .1, | |||
| regularization = 1e-3, | |||
| seed = 0 ) |
Illuminate descriptors trained from closest and farthest pairs.
| evaluate | Callable (genome) returning finite scalar fitness and raw features. |
| archive | Empty rectangular grid for learned descriptor coordinates. |
| feedback | Callable of three trials returning two pair indices or None. |
| budget | Total candidate evaluations. |
| feedback_budget | Hard query budget including abstentions. |
| dimension | Real genome width. |
| raw_feature_size | Raw descriptor width. |
| ind_domain | Common finite genome bounds. |
| warmup | Number of uniform trials to collect before the first fit. |
| refit_every | Attempts between online fits, or None for a single offline fit. |
| feedback_batch | Maximum queries at an online refit. |
| fit_steps | Adam steps per fit. |
| temperature | Positive preference temperature. |
| regularization | Nonnegative squared-weight penalty. |
| seed | Private root seed. |
Compare the two labeled extremes and fit a probabilistic projection. For example, (1, 0) says records 0 and 2 are closest and records 0 and 1 are farthest apart. A skipped query still consumes one annotation. Reuse QDHF's cached archive rebuild when refitting.