easyiec.strategies.Strategy#
- class easyiec.strategies.Strategy(pop_size=9, protocol=None, n_select=None, scale=(1.0, 10.0), steer_decay=0.5)[source]#
Bases:
objectBase class of interactive strategies.
A strategy proposes candidates with
ask()(aQuery) and learns from the answer withtell(). Real-coded strategies work in the unit cube ofproblem.space; strategies that only use variation operators (InteractiveGA,Watchmaker,InteractiveMAPElites,NoveltyIEC,RandomSearch) also accept structured genomes throughproblem.representation.- Parameters:
- pop_size
int Candidates per query (the gallery size).
- protocol
str,optional Feedback protocol requested from the evaluator (default: the strategy’s
protocol).- n_select
int,optional Number of candidates to choose in
selectqueries (None: free).- scale(
float,float) Rating scale of
ratequeries.- steer_decay
float Multiplicative decay per generation of a verbal-steering bias.
- pop_size
- new(z=None, genome=None, parents=(), origin='init', params=None, generation=None)[source]#
Create an individual from a unit-cube point
zor a genome.