funRMSE: Calculate the RMSE and MAE, Round to 4 digits

Description Usage Arguments Value Examples

Description

Calculate the Root Means Square Error (RMSE) and the Mean Absoluter Error (MAE) and round the result, by default to 4 digits. Apply na.rm = TRUE

Usage

1
2
3
funRMSE(y_pred, y0, dgts = 4)

funMAE(y_pred, y0, dgts = 4)

Arguments

y_pred

vector of numeric. The predicted values.

y0

vector of numeric. The original values.

dgts

integer. The rounding.

Value

A numeric value, either the RMSE or the MAE.

Examples

1
2
3
4
y0 <- 1:19
y_pred <- y0 + rnorm(length(y0), sd = 0.3)
funRMSE(y_pred, y0)
funMAE( y_pred, y0)

pkR-pkR/NNbenchmark2019 documentation built on June 22, 2020, 12:10 a.m.