Class: MeanSquaredError

MeanSquaredError

new MeanSquaredError()

The mean squared error cost function for a single pair of values. wiki: http://en.wikipedia.org/wiki/Mean_squared_error
Implements:
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
Implements:
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
Implements:
Source:
Returns:
the cost associated with the output and target
Type
number