class EvolveNet::NeuralNetwork

Included Modules

Defined in:

evolvenet/neuralnetwork.cr

Constructors

Instance Method Summary

Instance methods inherited from class EvolveNet::Network

clone clone, error : Float64 error, evaluate(data : Array(Array(Array(Number)))) evaluate, mutate mutate, punctuate(pos : Int32) punctuate, randomize randomize, run(data : Array(Number)) run

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new #

[View source]

Instance Method Detail

def add_layer(type : Symbol, width : Int32, height : Int32, depth : Int32, function : Symbol = :relu) #

[View source]
def add_layer(type : Symbol, size : Int32, function : Symbol = :sigmoid) #

[View source]
def clone #

[View source]
def error : Float64 #

[View source]
def error=(error : Float64) #

[View source]
def evaluate(data : Array(Array(Array(Number)))) #

[View source]
def fully_connect #

[View source]
def layers : Array(Layer) #

[View source]
def layers=(layers : Array(Layer)) #

[View source]
def mutate #

[View source]
def punctuate(pos : Int32) #

[View source]
def randomize #

[View source]
def run(data : Array(Number)) #

[View source]