class

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)
Source

Instance methods

best_candidates(count : Int32 = 5) : Array(Candidate)

Get the best candidates from this deme

Source
best_score
Source
best_score=(best_score : CompositeScore | Nil)
Source
exemplar
Source
exemplar=(exemplar : Candidate)
Source
expand_from_exemplar

Expand the deme by generating variations of the exemplar

Source
generation
Source
generation=(generation : Int32)
Source
optimize(max_generations : Int32 = 10) : Array(Candidate)

Optimize the deme using local search

Source
population
Source
population=(population : Array(Candidate))
Source
scoring_function
Source
scoring_function=(scoring_function : ScoringFunction)
Source
size
Source
size=(size : Int32)
Source
statistics

Get statistics about this deme

Source