class SHAInet::Synapse

Defined in:

shainet/basic/synapse.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source_neuron : Neuron, dest_neuron : Neuron) #

[View source]

Instance Method Detail

def clone #

[View source]
def dest_neuron : Neuron #

[View source]
def dest_neuron=(dest_neuron : Neuron) #

[View source]
def gradient : Float64 #

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

[View source]
def gradient_batch : Float64 #

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

[View source]
def gradient_sum : Float64 #

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

[View source]
def inspect #
Description copied from class Object

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.


[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 prev_delta : Float64 #

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

[View source]
def prev_delta_w : Float64 #

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

[View source]
def prev_gradient : Float64 #

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

[View source]
def prev_weight : Float64 #

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

[View source]
def propagate_backward : Float64 #

Transfer error from dest_neuron to source_neuron while applying weight and save the synapse gradient


[View source]
def propagate_forward : Float64 #

Transfer memory from source_neuron to dest_neuron while applying weight


[View source]
def randomize_weight #

[View source]
def source_neuron : Neuron #

[View source]
def source_neuron=(source_neuron : Neuron) #

[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 weight : Float64 #

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

[View source]