darch (version 0.12.0)

mseError: Mean squared error function

Description

The function calculates the mean squared error (MSE) from the original and estimate parameters.

Usage

mseError(original, estimate)

Arguments

original

The original data matrix.

estimate

The calculated data matrix.

Value

A list with the name of the error function in the first entry and the error value in the second entry.

Details

This function is a valid value for both darch parameters rbm.errorFunction and darch.errorFunction.

See Also

Other error functions: crossEntropyError, rmseError

Examples

Run this code
# NOT RUN {
data(iris)
model <- darch(Species ~ ., iris, rbm.errorFunction = "mseError",
 darch.errorFunction = "mseError")
# }

Run the code above in your browser using DataCamp Workspace