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

Set reference examples as archive sites and measure target fidelity. More...

Go to the source code of this file.

Classes

class  qdpy.algorithms.reference_niches.ReferenceTarget
 Identify an occupied or empty reference niche and its measured fidelity. More...
class  qdpy.algorithms.reference_niches.ReferenceAudit
 Report occupancy independently of the fraction within a distance limit. More...

Namespaces

namespace  qdpy

Functions

 qdpy.algorithms.reference_niches.reference_cvt (targets, *, features_domain=None, fitness_domain=((0., inf),), fitness_weights=(1.,))
 Build a measured CVT archive with one cell per reference row.
 qdpy.algorithms.reference_niches.audit_reference_cvt (archive, *, distance_limit=None)
 Audit measured fitness and Euclidean target distance without new evaluations.

Detailed Description

Set reference examples as archive sites and measure target fidelity.

See also
https://arxiv.org/html/2601.01082#S6.SS2

Definition in file reference_niches.py.

Function Documentation

◆ audit_reference_cvt()

qdpy.algorithms.reference_niches.audit_reference_cvt ( archive,
* ,
distance_limit = None )

Audit measured fitness and Euclidean target distance without new evaluations.

Parameters
archiveA native scalar best-only CVTGrid with explicit targets.
distance_limitOptional radius for counting a target as matched.
Returns
A per-target table and aggregate occupancy and fidelity.
Read each incumbent's fitness and displacement from its target.

Definition at line 82 of file reference_niches.py.

◆ reference_cvt()

qdpy.algorithms.reference_niches.reference_cvt ( targets,
* ,
features_domain = None,
fitness_domain = ((0., inf),),
fitness_weights = (1.,) )

Build a measured CVT archive with one cell per reference row.

Parameters
targets2D matrix of distinct finite reference descriptors, in target ID order.
features_domainOptional bounds for the candidate descriptors.
fitness_domainInclusive bounds on the scalar quality.
fitness_weightsOne positive or negative weight for maximization or minimization.
Returns
A native best-only CVTGrid with explicit centroids.
Use raw or embedded examples as nearest-neighbour archive targets.

Pass the same representation for every reference and candidate. The
default descriptor domain is unbounded. Use explicit finite intervals
if the search algorithm needs a bounded model, as DMS does. Each input
row has a stable zero-based target ID. Deterministic distance ties go to
the first matching row.

Definition at line 24 of file reference_niches.py.