mseError: Mean squared error function

Description Usage Arguments Details Value See Also Examples

View source: R/errorFunctions.R

Description

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

Usage

1
mseError(original, estimate)

Arguments

original

The original data matrix.

estimate

The calculated data matrix.

Details

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

Value

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

See Also

Other error functions: crossEntropyError, rmseError

Examples

1
2
3
4
5
6
## Not run: 
data(iris)
model <- darch(Species ~ ., iris, rbm.errorFunction = "mseError",
 darch.errorFunction = "mseError")

## End(Not run)

darch documentation built on May 29, 2017, 8:14 p.m.

Related to mseError in darch...