Source

Least Squares#

Least Squares or quadratic loss is a function that computes the average squared error between the target output given by the labels and the actual output of the network.

Parameters#

This cost function does not have any parameters.

Example#

use Rubix\ML\NeuralNet\CostFunctions\LeastSquares;

$costFunction = new LeastSquares();