darch (version 0.12.0)

rmseError: Root-mean-square error function

Description

The function calculates the root-mean-square error (RMSE) from the original and estimate parameters.

Usage

rmseError(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, mseError

Examples

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

Run the code above in your browser using DataCamp Workspace