module MicroGrad::Common(T)

Overview

Shared functionality for neuron, layer and MLP.

Direct including types

Defined in:

micrograd/nn.cr

Instance Method Summary

Instance Method Detail

abstract def activate!(inputs) #

Activate the neuron, layer or network with the given inputs


[View source]
abstract def parameters : Array(Value(T)) #

Retrieve references to all the parameters as an array


[View source]
abstract def to_s(io) #

Prints a concise string representation, typically intended for users, to io


[View source]
def zero_grad! #

Zero the gradient of all the parameters


[View source]