class NeuralNet

Defined in:

neural_net_crystal/neural_net.cr

Constant Summary

DEFAULT_TRAINING_OPTIONS = {max_iterations: 1000, error_threshold: 0.01}
MAX_STEP = 50_f64
MIN_STEP = Math.exp(-6)
ZERO_TOLERANCE = Math.exp(-16)

Constructors

Instance Method Summary

Constructor Detail

def self.new(shape : Array(Int32)) #

[View source]

Instance Method Detail

def outputs : Array(Array(Float64))? #

[View source]
def run(input : Array(Float64)) : Array(Float64) #

[View source]
def shape : Array(Int32) #

[View source]
def train(inputs, expected_outputs, opts = {} of Symbol => Float64 | Int32) #

[View source]
def weight_update_values : Hash(Int32, Array(Array(Float64)))? #

[View source]
def weight_update_values=(weight_update_values : Nil | Hash(Int32, Array(Array(Float64)))) #

[View source]
def weights : Hash(Int32, Array(Array(Float64)))? #

[View source]
def weights=(weights : Nil | Hash(Int32, Array(Array(Float64)))) #

[View source]