Annex v0.2.0 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
cost_function() :: (any() -> float())

Link to this section Functions

Link to this function

calculate(cost, error) View Source
calculate(t(), Annex.Data.data()) :: float()

Link to this section Callbacks

Link to this callback

calculate(any) View Source
calculate(any()) :: float()