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

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.

Detailed Description

Forecast-based diversity with steady-state local competition.

See also
https://arxiv.org/abs/1807.02397

Definition in file surprise.py.

Function Documentation

◆ surprise_local_scores()

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.