|
QDpy
|
Move binary particles using personal and social Hamming-novelty leaders. More...
Public Member Functions | |
| optimise (self, evaluate, budget, *, repair=None) | |
| Run the swarm for at most budget objective calls. | |
Move binary particles using personal and social Hamming-novelty leaders.
Evaluate binary topologies and report their measured fitness and descriptors. Recompute the novelty of current positions and personal leaders against a common memory at each swarm iteration. The most novel personal leader provides the social signal. A temperature schedule controls the sigmoid used to sample bit values from their velocities. The reporting archive receives real measurements and stays independent of the novelty memory. Use deterministic measurements for a given bit vector. :param archive: Empty parentless best-only scalar Grid or CVTGrid. :param dimension: Number of bits. :param population_size: Particle count, up to the available evaluation budget. :param neighbors: Number of previous designs used for novelty. :param memory_size: Maximum number of distinct recent designs. :param inertia: Previous-velocity coefficient in the swarm update. :param cognitive: Pull toward each particle's personal leader. :param social: Pull toward the swarm's most novel leader. :param velocity_limit: Absolute velocity cap. :param temperature: Positive starting and ending sigmoid temperatures. :param seed: Private seed for initial positions and velocity draws.
Definition at line 48 of file novelty_swarm.py.
| qdpy.algorithms.novelty_swarm.NoveltyBinaryPSO.optimise | ( | self, | |
| evaluate, | |||
| budget, | |||
| * | , | ||
| repair = None ) |
Run the swarm for at most budget objective calls.
| evaluate | Callable mapping an immutable bit tuple to fitness and descriptors. |
| budget | Maximum number of objective calls, including out-of-domain results. |
| repair | Optional callable mapping a proposal to another bit vector. |
Measure evaluate(bits) returning (scalar fitness, descriptors). An optional repair(bits) supplies a feasible bit vector for evaluation. Charge any additional work inside that callback separately. Run with an empty reporting archive.
Definition at line 100 of file novelty_swarm.py.