mse: Mean Squared Error

Description Usage Arguments Details Author(s)

View source: R/mse.R

Description

An alternative MSE implementation where the mean is halved. That is done in order to make the derivative easier to calculate in the backpropagation algorithm, as the derivative of 1/2n*(sum(y-h)^2) is then simply (h-y).

Usage

1
mse(y, h)

Arguments

y

An array (matrix)

h

An array (matrix)

Details

Note that y and h need to have the same dimensions.

Author(s)

Eduardo Kapp


eduardokapp/r_neural_network documentation built on Dec. 20, 2021, 3:21 a.m.