module YAGA::Chromosome(T, U, V)

Direct including types

Defined in:

yaga/chromosome.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(num_inputs, layer_index, chromosome_index) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

abstract def activate(inputs : U) : V #

[View source]
def chromosome_index #

[View source]
abstract def crossover(other : Chromosome(T, U, V)) : Void #

[View source]
def genes #

[View source]
def layer_index #

[View source]
abstract def mutate : Void #

[View source]
def num_inputs #

[View source]
abstract def randomize : Void #

[View source]
abstract def replace(other : Chromosome(T, U, V)) : Void #

[View source]
def same?(other : Chromosome) : Bool #

[View source]
def size : UInt64 #

[View source]
def to_json(json : JSON::Builder) : Void #

[View source]
def update_random(random) : Void #

[View source]