Annex v0.2.1 Annex.Cost behaviour View Source
The Cost module defines the types, callbacks, and helper functions for calculating a the loss and gradient of the lossd, for gradient descent, of a network.
The default Cost for Annex is Annex.Cost.MeanSquaredError.
Link to this section Summary
Link to this section Types
Link to this type
cost_function() View Source
Link to this type
t()
View Source
t()
View Source
t() :: module()
t() :: module()
Link to this section Functions
Link to this function
calculate(cost, error)
View Source
calculate(cost, error)
View Source
calculate(t(), Annex.Data.data()) :: float()
calculate(t(), Annex.Data.data()) :: float()
Link to this section Callbacks
Link to this callback