class SHAInet::Filter

Defined in:

shainet/cnn/filter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(input_surface : Array(Int32), padding : Int32 = 0, window_size : Int32 = 1, stride : Int32 = 1, activation_function : ActivationFunction = SHAInet.none) #

[View source]

Instance Method Detail

def activation_function : ActivationFunction #

[View source]
def bias : Float64 #

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

[View source]
def bias_grad : Float64 #

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

[View source]
def bias_grad_batch : Float64 #

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

[View source]
def bias_grad_sum : Float64 #

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

[View source]
def clone #

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

[View source]
def m_current : Float64 #

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

[View source]
def m_prev : Float64 #

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

[View source]
def neurons : Array(Array(Neuron)) #

[View source]
def neurons=(neurons : Array(Array(Neuron))) #

[View source]
def padding : Int32 #

[View source]
def prev_bias : Float64 #

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

[View source]
def prev_bias_grad : Float64 #

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

[View source]
def prev_delta : Float64 #

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

[View source]
def prev_delta_b : Float64 #

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

[View source]
def propagate_backward(input_layer : ConvLayer | CNNLayer, batch : Bool = false) #

[View source]
def propagate_forward(input_layer : ConvLayer | CNNLayer) #

[View source]
def stride : Int32 #

[View source]
def synapses : Array(Array(Array(CnnSynapse))) #

[View source]
def synapses=(synapses : Array(Array(Array(CnnSynapse)))) #

[View source]
def v_current : Float64 #

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

[View source]
def v_prev : Float64 #

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

[View source]
def window_size : Int32 #

[View source]