class MicroGrad::Layer(T, N)
- MicroGrad::Layer(T, N)
- Reference
- Object
Overview
A single layer in the neural network, specified using the T
data type and N
neuron
Included Modules
Defined in:
micrograd/nn.crConstructors
-
.new(num_inputs, num_outputs)
Create a layer with num_inputs and num_outputs
Instance Method Summary
-
#activate!(inputs)
Activate the neuron, layer or network with the given inputs
- #neurons : Array(N)
-
#parameters : Array(Value(T))
Retrieve references to all the parameters as an array
-
#to_s(io)
Prints a concise string representation, typically intended for users, to io
Instance methods inherited from module MicroGrad::Common(T)
activate!(inputs)
activate!,
parameters : Array(Value(T))
parameters,
to_s(io)
to_s,
zero_grad!
zero_grad!
Constructor Detail
Instance Method Detail
Retrieve references to all the parameters as an array