class Fann::Network::Cascade

Defined in:

crystal-fann/cascade_network.cr

Constant Summary

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

Constructors

Instance Method Summary

Constructor Detail

def self.new(input : 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_neurons => 500, :desired_mse => 0.01, :log_each => 10}) #

[View source]