gg_loss {bvhar} | R Documentation |
Compare Lists of Models
Description
Draw plot of test error for given models
Usage
gg_loss(
mod_list,
y,
type = c("mse", "mae", "mape", "mase"),
mean_line = FALSE,
line_param = list(),
mean_param = list(),
viridis = FALSE,
viridis_option = "D",
NROW = NULL,
NCOL = NULL,
...
)
Arguments
mod_list |
Lists of forecast results ( |
y |
Test data to be compared. should be the same format with the train data and predict$forecast. |
type |
Loss function to be used ( |
mean_line |
Whether to draw average loss. By default, |
line_param |
Parameter lists for |
mean_param |
Parameter lists for average loss with |
viridis |
If |
viridis_option |
Option for viridis string. See |
NROW |
|
NCOL |
|
... |
Additional options for |
Value
A ggplot object
See Also
-
mse()
to compute MSE for given forecast result -
mae()
to compute MAE for given forecast result -
mape()
to compute MAPE for given forecast result -
mase()
to compute MASE for given forecast result