|
QDpy
|
Dissimilarity-based niches and magnitude-weighted Go-Explore. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.magnitude.MagnitudeArchive |
| Archive best measured candidates by their ordered closest landmarks. More... | |
| class | qdpy.algorithms.magnitude.MagnitudeGoExplore |
| Revisit diverse elites and explore with a caller-defined mutation. More... | |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.magnitude._choose_scale (distances) | |
| qdpy.algorithms.magnitude.magnitude_weights (distances, *, scale=None) | |
| Solve the magnitude weighting system for a finite dissimilarity matrix. | |
Dissimilarity-based niches and magnitude-weighted Go-Explore.
Definition in file magnitude.py.
|
protected |
Find a scale where each kernel row has off-diagonal sum at most 0.95.
Definition at line 20 of file magnitude.py.
| qdpy.algorithms.magnitude.magnitude_weights | ( | distances, | |
| * | , | ||
| scale = None ) |
Solve the magnitude weighting system for a finite dissimilarity matrix.
Return the unnormalized weights of exp(-scale * distances).
:param distances: Nonempty square symmetric array with a zero diagonal
and finite positive off-diagonal values.
:param scale: Positive kernel scale. By default choose a scale with
strict diagonal dominance and nonnegative weights.
:raises ValueError: If the matrix is invalid or the requested kernel
lacks a positive-definite solve with nonnegative weights.
Definition at line 48 of file magnitude.py.