mlr-org / mlr3temporal

Forecasting for mlr3
https://mlr3temporal.mlr-org.com
GNU Lesser General Public License v3.0
20 stars 2 forks source link

Error in UseMethod("check_prediction_data") : no applicable method for 'check_prediction_data' applied to an object of class "list #67

Closed nipnipj closed 2 years ago

nipnipj commented 3 years ago

Hello! I'm tryting to run the univariate time series code example:

task <- tsk("airpassengers")
learner <- LearnerRegrForecastAverage$new()
learner$train(task,row_ids = 1:20)
learner$model
p <- learner$predict(task,row_ids = 21:55)
p$score(msr("forecast.mae"))
autoplot(task)

When I run the code line p <- learner$predict(task,row_ids = 21:55), I get the following error message:

Error in UseMethod("check_prediction_data") : 
  no applicable method for 'check_prediction_data' applied to an object of class "list"
nipnipj commented 3 years ago

@larskotthoff @berndbischl @mllg @jakob-r @johannes9522

pfistfl commented 2 years ago

Sorry for the unresponsiveness. It should work now