Extract fitted values from a trained ESN as tsibble.
Usage
# S3 method for class 'ESN'
fitted(object, ...)See also
Other tidy functions:
ESN(),
filter_esn(),
forecast.ESN(),
glance.ESN(),
model_sum.ESN(),
report.ESN(),
reservoir(),
residuals.ESN(),
tidy.ESN()
Examples
library(tsibble)
library(fable)
AirPassengers %>%
as_tsibble() %>%
model("ESN" = ESN(value)) %>%
fitted()
#> # A tsibble: 144 x 3 [1M]
#> # Key: .model [1]
#> .model index .fitted
#> <chr> <mth> <dbl>
#> 1 ESN 1949 Jan NA
#> 2 ESN 1949 Feb NA
#> 3 ESN 1949 Mrz NA
#> 4 ESN 1949 Apr NA
#> 5 ESN 1949 Mai NA
#> 6 ESN 1949 Jun NA
#> 7 ESN 1949 Jul NA
#> 8 ESN 1949 Aug NA
#> 9 ESN 1949 Sep NA
#> 10 ESN 1949 Okt 140.
#> # ℹ 134 more rows
