class SHAInet::DropoutLayer

Defined in:

shainet/cnn/drop_out_layer.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Constructor Detail

def self.new(prev_layer : CNNLayer | ConvLayer, drop_percent : Int32 = 5) #

Drop percent is an Integer, i.e 5 is 5%


[View source]

Instance Method Detail

def activate #

Randomly select and deactivate a percentage of the neurons from the previous layer


[View source]
def drop_percent : Int32 #

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

Send the gradients from current layer backwards without weights


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

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

[View source]
def prev_layer : CNNLayer | ConvLayer #

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

[View source]