abstract class YAGA::Genome(T, U)

Defined in:

yaga/genome.cr

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

abstract def activate(inputs : T) : U #

[View source]
def crossover(other : Genome(T, U)) : Void #

[View source]
def dna #

[View source]
def generate : Void #

[View source]
def mutate : Void #

[View source]
def replace(other : Genome(T, U)) : Void #

[View source]
def same?(other : Genome) : Bool #
Description copied from class Reference

Returns true if this reference is the same as other. This is only true if this reference's object_id is the same as other's.


[View source]
def size : UInt64 #

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

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

[View source]

Macro Detail

macro compile(name, inputs_type, inputs_size, *layers) #

[View source]