Interface: CostFunction

CostFunction

A generic interface for cost functions.
Source:

Methods

delta(input, output, target) → {number}

TODO doc CostFunction.delta
Parameters:
Name Type Description
input array the array of input values
output number the actual output value
target number the desired output value
Source:
Returns:
the error delta associated with the output and target
Type
number

fn(output, target) → {number}

TODO doc CostFunction.fn
Parameters:
Name Type Description
output number the actual output value
target number the desired output value
Source:
Returns:
the cost associated with the output and target
Type
number