class Fann::Network::Standard

Defined in:

crystal-fann/standard_network.cr

Constant Summary

Log = ::Log.for("standard")

Constructors

Instance Method Summary

Constructor Detail

def self.new(input : Int32, hidden : Array(Int32), output : Int32) #

[View source]
def self.new(path : String) #

[View source]

Instance Method Detail

def close #

[View source]
def input_size : Int32 | UInt32 #

[View source]
def mse #

[View source]
def nn : Pointer(LibFANN::Fann) #

[View source]
def nn=(nn : Pointer(LibFANN::Fann)) #

[View source]
def output_size : Int32 | UInt32 #

[View source]
def randomize_weights(min : Float64, max : Float64) #

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

[View source]
def save(path : String) : Int32 #

[View source]
def set_hidden_layer_activation_func(func : LibFANN::ActivationfuncEnum) #

[View source]
def set_output_layer_activation_func(func : LibFANN::ActivationfuncEnum) #

[View source]
def train_algorithm(algo : LibFANN::TrainEnum) #

[View source]
def train_batch(train_data : Pointer(LibFANN::TrainData), opts = {:max_runs => 200, :desired_mse => 0.01, :log_each => 1}) #

[View source]
def train_batch_multicore(train_data : Pointer(LibFANN::TrainData), threads : Int32, opts = {:max_runs => 200, :desired_mse => 0.01, :log_each => 1}) #

[View source]
def train_single(input : Array(Float64), output : Array(Float64)) #

[View source]