Description Usage Arguments Details Author(s) Examples
This function compares model prediction(s) with actual measured by different statistics.
1 | modelMetric(act,pred)
|
act |
numeric vector of actual data |
pred |
numeric vector or data frame. Should have the same length as 'act'. It can also be a data frame that compare different model predictions at the same time. |
Currently, it conducts MSE, RMSE, MAE, RMAE, and LogLoss (for clasification) analysis.
Sixiang Hu
1 2 3 4 5 | actual <- rnorm(1000)
y <- rnorm(1000)
z <- rnorm(1000)
pred <- data.frame(model1=y,model2=z)
modelMetric(actual,pred)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.