module MicroGrad::Common(T)
Overview
Shared functionality for neuron, layer and MLP.
Direct including types
Defined in:
micrograd/nn.crInstance Method Summary
-
#activate!(inputs)
Activate the neuron, layer or network with the given inputs
-
#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
-
#zero_grad!
Zero the gradient of all the parameters
Instance Method Detail
Retrieve references to all the parameters as an array