abstract class Neuratron::Layer

Direct Known Subclasses

Defined in:

neuratron/layer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(units : Int32, input_shape : Array(Int32) = Array(Int32).new, initializer : Neuratron::Initializer = Initializers.zeros, activation : Neuratron::Activation = Activations::None.new) #

[View source]

Instance Method Detail

def activation : Activation #

[View source]
abstract def call(input : LA::GMat) #

[View source]
def compile #

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

[View source]
def input_shape=(input_shape : Array(Int32)) #

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

[View source]
def weight #

[View source]
def weight=(w : Nil | LA::GeneralMatrix(Float64)) #

[View source]