Moses::Deme
Inherits Reference < Object
A deme represents a subpopulation exploring a specific region of the program space
Constructors
new(exemplar : Candidate, scoring_function : ScoringFunction, size : Int32 = 20)
SourceInstance methods
best_score
Sourcebest_score=(best_score : CompositeScore | Nil)
Sourceexemplar
Sourceexemplar=(exemplar : Candidate)
Sourcegeneration
Sourcegeneration=(generation : Int32)
Sourceoptimize(max_generations : Int32 = 10) : Array(Candidate)
Optimize the deme using local search
population
Sourcepopulation=(population : Array(Candidate))
Sourcescoring_function
Sourcescoring_function=(scoring_function : ScoringFunction)
Sourcesize
Sourcesize=(size : Int32)
Source