class

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

Instance methods

activate(inputs : Array(SimpleMatrix(T))) : V
Source
activate(inputs : Array(Array(T))) : V
Source
activate(inputs : Array(T)) : V
Source
activate(inputs : U) : V
Source
activate(inputs : T) : V
Source
crossover(other : Chromosome) : Void
Source
mutate
Source
randomize
Source
replace(other : Chromosome) : Void
Source
size
Source
to_json(json : JSON::Builder) : Void
Source