QDpy
Loading...
Searching...
No Matches
qdpy.containers.archives._EuclideanNoveltyIndex Class Reference

ARCHIVE-BASED CLASSES ########### {{{1. More...

Public Member Functions

 query (self, individual, parents, k, get_features)
 Return the mean of the k nearest distances and the first reference index.

Static Protected Member Functions

 _coordinates (features)
 Expose coordinates without copying a built-in feature tuple.

Detailed Description

ARCHIVE-BASED CLASSES ########### {{{1.

Cache an exact Euclidean index over a stable prefix of parent descriptors.

Keep a small tail for new entries and rebuild if older rows change.

Definition at line 43 of file archives.py.

Member Function Documentation

◆ query()

qdpy.containers.archives._EuclideanNoveltyIndex.query ( self,
individual,
parents,
k,
get_features )

Return the mean of the k nearest distances and the first reference index.

Recompute distances with math.dist and break ties in parent order.

Returns
None when the scalar path should handle the inputs.

Definition at line 58 of file archives.py.


The documentation for this class was generated from the following file: