File tree Expand file tree Collapse file tree 2 files changed +14
-15
lines changed
Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ pak::pak("mlr-org/mlr3forecast")
4040
4141## Usage
4242
43- ``` {r}
43+ ``` {r, message = FALSE }
4444library(mlr3forecast)
4545library(mlr3learners)
4646
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ pak::pak("mlr-org/mlr3forecast")
3131
3232``` r
3333library(mlr3forecast )
34- # > Loading required package: mlr3
3534library(mlr3learners )
3635
3736dt = tsbox :: ts_dt(AirPassengers )
@@ -47,28 +46,28 @@ prediction = ff$predict(task)
4746prediction
4847# > <PredictionRegr> for 144 observations:
4948# > row_ids truth response
50- # > 1 112 283.1684
51- # > 2 118 283.1684
52- # > 3 132 283.1684
49+ # > 1 112 283.4395
50+ # > 2 118 283.4395
51+ # > 3 132 283.4395
5352# > --- --- ---
54- # > 142 461 283.1684
55- # > 143 390 283.1684
56- # > 144 432 283.1684
53+ # > 142 461 283.4395
54+ # > 143 390 283.4395
55+ # > 144 432 283.4395
5756prediction = ff $ predict_newdata(task , 3L )
5857prediction
5958# > <PredictionRegr> for 3 observations:
6059# > row_ids truth response
61- # > 1 NA 283.1684
62- # > 2 NA 283.1684
63- # > 3 NA 283.1684
60+ # > 1 NA 283.4395
61+ # > 2 NA 283.4395
62+ # > 3 NA 283.4395
6463prediction = ff $ predict(task , 142 : 144 )
6564prediction
6665# > <PredictionRegr> for 3 observations:
6766# > row_ids truth response
68- # > 1 461 283.1684
69- # > 2 390 283.1684
70- # > 3 432 283.1684
67+ # > 1 461 283.4395
68+ # > 2 390 283.4395
69+ # > 3 432 283.4395
7170prediction $ score(msr(" regr.rmse" ))
7271# > regr.rmse
73- # > 147.4086
72+ # > 147.1429
7473```
You can’t perform that action at this time.
0 commit comments