struct

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

Instance methods

max_evals
Source
max_evals=(max_evals : Int32)
Source
max_gens
Source
max_gens=(max_gens : Int32)
Source
should_terminate?(evals : Int32, gens : Int32, best_score : Score, stagnation_count : Int32) : Bool
Source
stagnation_limit
Source
stagnation_limit=(stagnation_limit : Int32)
Source
target_score
Source
target_score=(target_score : Score | Nil)
Source