plot.training_results {forecastML} | R Documentation |
Plot an object of class training_results
Description
Several diagnostic plots can be returned to assess the quality of the forecasts based on predictions on the validation datasets.
Usage
## S3 method for class 'training_results'
plot(
x,
type = c("prediction", "residual", "forecast_stability"),
facet = horizon ~ model,
models = NULL,
horizons = NULL,
windows = NULL,
valid_indices = NULL,
group_filter = NULL,
keep_missing = FALSE,
...
)
Arguments
x |
An object of class 'training_results' from |
type |
Plot type. The default plot is "prediction" for validation dataset predictions. |
facet |
Optional. For numeric outcomes, a formula with any combination of |
models |
Optional. Filter results by user-defined model name from |
horizons |
Optional. A numeric vector of model forecast horizons to filter results by horizon-specific model. |
windows |
Optional. A numeric vector of window numbers to filter results. |
valid_indices |
Optional. A numeric or date vector to filter results by validation row indices or dates. |
group_filter |
Optional. A string for filtering plot results for grouped time series
(e.g., |
keep_missing |
Boolean. If |
... |
Not used. |
Value
Diagnostic plots of class 'ggplot'.