Description Usage Arguments Details Author(s)
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).
1 | mse(y, h)
|
y |
An array (matrix) |
h |
An array (matrix) |
Note that y and h need to have the same dimensions.
Eduardo Kapp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.