Moses::TerminationCriteria
Inherits Struct < Value < Object
Termination criteria for evolutionary search
Constructors
new(max_evals : Int32, max_gens : Int32, target_score : Score | Nil = nil, stagnation_limit : Int32 = 20)
Instance methods
max_evals
max_evals=(max_evals : Int32)
max_gens
max_gens=(max_gens : Int32)
should_terminate?(evals : Int32, gens : Int32, best_score : Score, stagnation_count : Int32) : Bool
stagnation_limit
stagnation_limit=(stagnation_limit : Int32)
target_score
target_score=(target_score : Score | Nil)