class SHAInet::ConvLayer

Defined in:

shainet/cnn/conv_layer.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Constructor Detail

def self.new(master_network : CNN, prev_layer : ConvLayer | CNNLayer, filters_num : Int32 = 1, window_size : Int32 = 1, stride : Int32 = 1, padding : Int32 = 0, activation_function : ActivationFunction = SHAInet.none) #

[View source]

Instance Method Detail

def activate #

Use each filter to create feature maps from the input data of the previous layer


[View source]
def activation_function : ActivationFunction #

[View source]
def error_prop(batch : Bool = false) #

[View source]
def filters : Array(Filter) #

[View source]
def inspect(what : String) #

[View source]
def master_network : CNN #

[View source]
def padding : Int32 #

[View source]
def prev_layer : CNNLayer | ConvLayer #

[View source]
def stride : Int32 #

[View source]
def update_wb(learn_type : Symbol | String, batch : Bool = false) #

[View source]
def window_size : Int32 #

[View source]