QDpy
Loading...
Searching...
No Matches
divhf.py File Reference

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.

Detailed Description

Learn behavior descriptors from ranked pairs in each annotated triplet.

See also
https://doi.org/10.1007/s11704-025-41167-w

Definition in file divhf.py.

Function Documentation

◆ divhf_search()

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.

Parameters
evaluateCallable (genome) returning finite scalar fitness and raw features.
archiveEmpty rectangular grid for learned descriptor coordinates.
feedbackCallable of three trials returning two pair indices or None.
budgetTotal candidate evaluations.
feedback_budgetHard query budget including abstentions.
dimensionReal genome width.
raw_feature_sizeRaw descriptor width.
ind_domainCommon finite genome bounds.
warmupNumber of uniform trials to collect before the first fit.
refit_everyAttempts between online fits, or None for a single offline fit.
feedback_batchMaximum queries at an online refit.
fit_stepsAdam steps per fit.
temperaturePositive preference temperature.
regularizationNonnegative squared-weight penalty.
seedPrivate root seed.
Returns
DivHFResult with attempted evaluations and a replayable query log.
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.

Definition at line 121 of file divhf.py.