|
QDpy
|
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. | |
Set reference examples as archive sites and measure target fidelity.
Definition in file reference_niches.py.
| qdpy.algorithms.reference_niches.audit_reference_cvt | ( | archive, | |
| * | , | ||
| distance_limit = None ) |
Audit measured fitness and Euclidean target distance without new evaluations.
| archive | A native scalar best-only CVTGrid with explicit targets. |
| distance_limit | Optional radius for counting a target as matched. |
Read each incumbent's fitness and displacement from its target.
Definition at line 82 of file reference_niches.py.
| 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.
| targets | 2D matrix of distinct finite reference descriptors, in target ID order. |
| features_domain | Optional bounds for the candidate descriptors. |
| fitness_domain | Inclusive bounds on the scalar quality. |
| fitness_weights | One positive or negative weight for maximization or minimization. |
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.