Skip to content

Commit d6c22d8

Browse files
committed
docs(readme): suppress message
1 parent 1857375 commit d6c22d8

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pak::pak("mlr-org/mlr3forecast")
4040

4141
## Usage
4242

43-
```{r}
43+
```{r, message = FALSE}
4444
library(mlr3forecast)
4545
library(mlr3learners)
4646

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ pak::pak("mlr-org/mlr3forecast")
3131

3232
``` r
3333
library(mlr3forecast)
34-
#> Loading required package: mlr3
3534
library(mlr3learners)
3635

3736
dt = tsbox::ts_dt(AirPassengers)
@@ -47,28 +46,28 @@ prediction = ff$predict(task)
4746
prediction
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
5756
prediction = ff$predict_newdata(task, 3L)
5857
prediction
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
6463
prediction = ff$predict(task, 142:144)
6564
prediction
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
7170
prediction$score(msr("regr.rmse"))
7271
#> regr.rmse
73-
#> 147.4086
72+
#> 147.1429
7473
```

0 commit comments

Comments
 (0)