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)
SourceInstance methods
max_evals
Sourcemax_evals=(max_evals : Int32)
Sourcemax_gens
Sourcemax_gens=(max_gens : Int32)
Sourceshould_terminate?(evals : Int32, gens : Int32, best_score : Score, stagnation_count : Int32) : Bool
Sourcestagnation_limit
Sourcestagnation_limit=(stagnation_limit : Int32)
Sourcetarget_score
Sourcetarget_score=(target_score : Score | Nil)
Source