class SHAInet::Layer
- SHAInet::Layer
- Reference
- Object
Overview
This is an experimental file for pointer matrix implementation
Included Modules
- Apatite
Defined in:
shainet/basic/exprimental.crshainet/basic/layer.cr
Constant Summary
-
Log =
::Log.for(self)
Constructors
Instance Method Summary
- #activation_function : Float32 | Float64 | Int32 | Int64 -> {Float64, Float64}
- #activations : Matrix(Float64)
- #biases : Matrix(Float64)
- #biases=(biases : Matrix(Float64))
- #clone
- #input_sums : Matrix(Float64)
- #input_sums=(input_sums : Matrix(Float64))
-
#inspect
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
- #l_size : Int32
- #n_type : String
- #n_type=(n_type : String)
- #neurons : Array(SHAInet::Neuron)
- #neurons=(neurons : Array(SHAInet::Neuron))
- #propagate_forward_exp(prev_layer : Layer)
-
#random_seed
If you don't want neurons to have a blank memory of builds
- #sigma_primes : Matrix(Float64)
- #size : Int32
-
#type_change(new_neuron_type : String)
If you want to change the type of layer including all neuron types within it
- #weights : Matrix(Float64)
- #weights=(weights : Matrix(Float64))
Constructor Detail
def self.new(n_type : String, l_size : Int32, activation_function : ActivationFunction = SHAInet.sigmoid)
#
Instance Method Detail
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
.
def type_change(new_neuron_type : String)
#
If you want to change the type of layer including all neuron types within it