class MicroGrad::Neuron(T)
- MicroGrad::Neuron(T)
- Reference
- Object
Overview
Base neuron, always linear; use the sub-classes to enable non-linear activation using the desired function.
Included Modules
Direct Known Subclasses
Defined in:
micrograd/nn.crConstructors
-
.new(num_inputs)
Create a linear neuron with num_inputs
Instance Method Summary
-
#activate!(inputs) : Value(T)
Activate the neuron, layer or network with the given inputs
- #b : Value(T)
-
#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
- #w : Array(Value(T))
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
Activate the neuron, layer or network with the given inputs
Retrieve references to all the parameters as an array