YAGA::Chromosomes::Matrix(T, U, V)
Inherits YAGA::Chromosome < Reference < Object
Constants
RANDOM_RANGE = -5_i8..5_i8
Constructors
new(num_inputs : UInt32, layer_index : UInt32, chromosome_index : UInt32, random_range : Range(T, T) = (T.new(RANDOM_RANGE.begin))..(T.new(RANDOM_RANGE.end)))
Sourcenew(pull : JSON::PullParser)
SourceInstance methods
activate(inputs : U) : V
Sourceactivate(inputs : T) : V
Sourcecrossover(other : Chromosome) : Void
Sourcemutate
Sourcerandomize
Sourcereplace(other : Chromosome) : Void
Sourcesize
Source