|
QDpy
|
Forecast-based diversity with steady-state local competition. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.surprise.SurpriseSearchResult |
| Return the final breeding population and attempted evaluation counts. More... | |
| class | qdpy.algorithms.surprise.SurpriseSearchLC |
| Steady-state NSGA-II using surprise and local fitness competition. More... | |
| class | qdpy.algorithms.surprise.NoveltySurpriseSearchLC |
| Combine novelty, forecast deviation, and local fitness competition. More... | |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.surprise.surprise_local_scores (descriptors, qualities, predictions, *, surprise_neighbors=2, local_neighbors=5) | |
| Score forecast deviations and the number of worse behavioral neighbors. | |
Forecast-based diversity with steady-state local competition.
Definition in file surprise.py.
| qdpy.algorithms.surprise.surprise_local_scores | ( | descriptors, | |
| qualities, | |||
| predictions, | |||
| * | , | ||
| surprise_neighbors = 2, | |||
| local_neighbors = 5 ) |
Score forecast deviations and the number of worse behavioral neighbors.
Return an array with columns (mean forecast distance, local fitness wins). Qualities use the maximization convention. For local competition the candidate itself is excluded, even when other descriptors coincide. Distances are Euclidean in the supplied descriptor coordinates.
Definition at line 26 of file surprise.py.