Maintainer | Kiet Lam <ktklam9@gmail.com> |
---|
This module provides common cost functions and their derivatives
- data Cost
- = MeanSquared
- | Logistic
- getCostFunction :: Cost -> CostFunction
- getCostDerivative :: Cost -> CostDerivative
Documentation
Represents the cost model of the Neural Network
MeanSquared | The mean-squared cost |
Logistic | The logistic cost |
getCostFunction :: Cost -> CostFunctionSource
Gets the cost function associated with the cost model
getCostDerivative :: Cost -> CostDerivativeSource
Gets the cost derivative associated with the cost model