class Pea::Network

Overview

Taken from here: https://github.com/dlidstrom/NeuralNetworkInAllLangs/blob/main/Go/neural.go

Defined in:

pea.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(input input_count : UInt32, hidden hidden_count : UInt32, output output_count : UInt32, rand : Random = Random::DEFAULT) #

[View source]

Instance Method Detail

def predict(input : Array(Float64)) : Array(Float64) #

[View source]
def train(input : Array(Float64), expected : Array(Float64), learning_rate : Float64) #

[View source]