business-science / modeltime.gluonts

GluonTS Deep Learning with Modeltime
https://business-science.github.io/modeltime.gluonts/
Other
38 stars 11 forks source link

Error with fit() when using README reproducible example #38

Closed bonddr closed 2 years ago

bonddr commented 2 years ago

I have the latest version of R and successfully installed the packages in the deepAR example. I run into a problem when fitting the model:

Fit a GluonTS DeepAR Model

model_fit_deepar <- deep_ar( id = "id", freq = "M", prediction_length = 24, lookback_length = 48, epochs = 5 ) %>% set_engine("gluonts_deepar") %>% fit(value ~ ., training(m750_splits))

I get the following error:

Error in pkg.env$gluonts$mx$distribution$student_t$StudentTOutput() : attempt to apply non-function

Any clue on why this is happening?

mdancho84 commented 2 years ago

This is happening because in GluonTS >= 0.8.0 they have moved the StudentTOutput() function. So please make sure to upgrade your GluonTS by following the installation instructions here. You may need to install a "fresh" version of gluonts.

bonddr commented 2 years ago

This is happening because in GluonTS >= 0.8.0 they have moved the StudentTOutput() function. So please make sure to upgrade your GluonTS by following the installation instructions here. You may need to install a "fresh" version of gluonts.

This worked - thank you!