gg_loss | R Documentation |
Draw plot of test error for given models
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,
...
)
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 |
A ggplot object
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.