Forecast Learner
+Abstract class for forecast package learner
LearnerFcst.Rd
Forecast Learner
-Forecast Learner
+Abstract class for forecast package learner
+Abstract class for forecast package learner
Super class
-mlr3::Learner
-> LearnerFcst
Super classes
+mlr3::Learner
-> mlr3::LearnerRegr
-> LearnerFcst
Methods
diff --git a/reference/LearnerRegrForecast.html b/reference/LearnerRegrForecast.html index da82f3d..59add06 100644 --- a/reference/LearnerRegrForecast.html +++ b/reference/LearnerRegrForecast.html @@ -53,7 +53,7 @@Abstract class for forecast package learner
Super classes
-mlr3::Learner
-> mlr3::LearnerRegr
-> LearnerRegrForecast
mlr3::Learner
-> mlr3::LearnerRegr
-> mlr3forecast::LearnerFcst
-> LearnerRegrForecast
Methods
@@ -72,7 +72,7 @@Public methodsmlr3::Learner$print()
mlr3::Learner$reset()
mlr3::Learner$train()
-mlr3::LearnerRegr$initialize()
+mlr3forecast::LearnerFcst$initialize()
Method clone()
The objects of this class are cloneable with this method.
diff --git a/reference/TaskFcst.html b/reference/TaskFcst.html
index a10a90b..c864966 100644
--- a/reference/TaskFcst.html
+++ b/reference/TaskFcst.html
@@ -1,12 +1,12 @@
-Forecast Task — TaskFcst • mlr3forecast
Skip to contents
@@ -52,10 +52,10 @@ Forecast Task
- This task specializes Task and TaskSupervised for forecast problems.
+
This task specializes Task and TaskSupervised for regression problems.
The target column is assumed to be numeric.
-The task_type
is set to "fcst"
.
-It is recommended to use as_task_fcst()
for construction.
+The task_type
is set to "regr"
.
+It is recommended to use as_task_regr()
for construction.
Predefined tasks are stored in the dictionary mlr_tasks.
@@ -80,15 +80,6 @@ See also
Super classes
mlr3::Task
-> mlr3::TaskSupervised
-> mlr3::TaskRegr
-> TaskFcst
-
-
Methods
@@ -121,16 +112,9 @@ Public methods
Method new()
Creates a new instance of this R6 class.
-The function as_task_fcst()
provides an alternative way to construct forecast tasks.
+The function as_task_regr()
provides an alternative way to construct regression tasks.
@@ -151,10 +135,6 @@ ArgumentsArguments
Examples
- airpassengers = tsbox::ts_dt(AirPassengers)
-data.table::setnames(airpassengers, c("date", "passengers"))
-task = as_task_fcst(airpassengers, target = "passengers", index = "date")
+ task = as_task_regr(palmerpenguins::penguins, target = "bill_length_mm")
task$task_type
#> [1] "regr"
task$formula()
-#> passengers ~ .
+#> bill_length_mm ~ .
#> NULL
task$truth()
-#> [1] 112 118 132 129 121 135 148 148 136 119 104 118 115 126 141 135 125 149
-#> [19] 170 170 158 133 114 140 145 150 178 163 172 178 199 199 184 162 146 166
-#> [37] 171 180 193 181 183 218 230 242 209 191 172 194 196 196 236 235 229 243
-#> [55] 264 272 237 211 180 201 204 188 235 227 234 264 302 293 259 229 203 229
-#> [73] 242 233 267 269 270 315 364 347 312 274 237 278 284 277 317 313 318 374
-#> [91] 413 405 355 306 271 306 315 301 356 348 355 422 465 467 404 347 305 336
-#> [109] 340 318 362 348 363 435 491 505 404 359 310 337 360 342 406 396 420 472
-#> [127] 548 559 463 407 362 405 417 391 419 461 472 535 622 606 508 461 390 432
-task$data(rows = 1:3)
-#> passengers date
-#> <num> <Date>
-#> 1: 112 1949-01-01
-#> 2: 118 1949-02-01
-#> 3: 132 1949-03-01
+#> [1] 39.1 39.5 40.3 NA 36.7 39.3 38.9 39.2 34.1 42.0 37.8 37.8 41.1 38.6 34.6
+#> [16] 36.6 38.7 42.5 34.4 46.0 37.8 37.7 35.9 38.2 38.8 35.3 40.6 40.5 37.9 40.5
+#> [31] 39.5 37.2 39.5 40.9 36.4 39.2 38.8 42.2 37.6 39.8 36.5 40.8 36.0 44.1 37.0
+#> [46] 39.6 41.1 37.5 36.0 42.3 39.6 40.1 35.0 42.0 34.5 41.4 39.0 40.6 36.5 37.6
+#> [61] 35.7 41.3 37.6 41.1 36.4 41.6 35.5 41.1 35.9 41.8 33.5 39.7 39.6 45.8 35.5
+#> [76] 42.8 40.9 37.2 36.2 42.1 34.6 42.9 36.7 35.1 37.3 41.3 36.3 36.9 38.3 38.9
+#> [91] 35.7 41.1 34.0 39.6 36.2 40.8 38.1 40.3 33.1 43.2 35.0 41.0 37.7 37.8 37.9
+#> [106] 39.7 38.6 38.2 38.1 43.2 38.1 45.6 39.7 42.2 39.6 42.7 38.6 37.3 35.7 41.1
+#> [121] 36.2 37.7 40.2 41.4 35.2 40.6 38.8 41.5 39.0 44.1 38.5 43.1 36.8 37.5 38.1
+#> [136] 41.1 35.6 40.2 37.0 39.7 40.2 40.6 32.1 40.7 37.3 39.0 39.2 36.6 36.0 37.8
+#> [151] 36.0 41.5 46.1 50.0 48.7 50.0 47.6 46.5 45.4 46.7 43.3 46.8 40.9 49.0 45.5
+#> [166] 48.4 45.8 49.3 42.0 49.2 46.2 48.7 50.2 45.1 46.5 46.3 42.9 46.1 44.5 47.8
+#> [181] 48.2 50.0 47.3 42.8 45.1 59.6 49.1 48.4 42.6 44.4 44.0 48.7 42.7 49.6 45.3
+#> [196] 49.6 50.5 43.6 45.5 50.5 44.9 45.2 46.6 48.5 45.1 50.1 46.5 45.0 43.8 45.5
+#> [211] 43.2 50.4 45.3 46.2 45.7 54.3 45.8 49.8 46.2 49.5 43.5 50.7 47.7 46.4 48.2
+#> [226] 46.5 46.4 48.6 47.5 51.1 45.2 45.2 49.1 52.5 47.4 50.0 44.9 50.8 43.4 51.3
+#> [241] 47.5 52.1 47.5 52.2 45.5 49.5 44.5 50.8 49.4 46.9 48.4 51.1 48.5 55.9 47.2
+#> [256] 49.1 47.3 46.8 41.7 53.4 43.3 48.1 50.5 49.8 43.5 51.5 46.2 55.1 44.5 48.8
+#> [271] 47.2 NA 46.8 50.4 45.2 49.9 46.5 50.0 51.3 45.4 52.7 45.2 46.1 51.3 46.0
+#> [286] 51.3 46.6 51.7 47.0 52.0 45.9 50.5 50.3 58.0 46.4 49.2 42.4 48.5 43.2 50.6
+#> [301] 46.7 52.0 50.5 49.5 46.4 52.8 40.9 54.2 42.5 51.0 49.7 47.5 47.6 52.0 46.9
+#> [316] 53.5 49.0 46.2 50.9 45.5 50.9 50.8 50.1 49.0 51.5 49.8 48.1 51.4 45.7 50.7
+#> [331] 42.5 52.2 45.2 49.3 50.2 45.6 51.9 46.8 45.7 55.8 43.5 49.6 50.8 50.2
+task$data(rows = 1:3, cols = task$feature_names[1:2])
+#> bill_depth_mm body_mass_g
+#> <num> <int>
+#> 1: 18.7 3750
+#> 2: 17.4 3800
+#> 3: 18.0 3250
mlr3::Learner$reset()
mlr3::Learner$train()
mlr3::LearnerRegr$initialize()
mlr3forecast::LearnerFcst$initialize()
Method clone()
The objects of this class are cloneable with this method.
Forecast Task
This task specializes Task and TaskSupervised for forecast problems. +
This task specializes Task and TaskSupervised for regression problems.
The target column is assumed to be numeric.
-The task_type
is set to "fcst"
.
It is recommended to use as_task_fcst()
for construction.
+The task_type
is set to "regr"
.
It is recommended to use as_task_regr()
for construction.
Predefined tasks are stored in the dictionary mlr_tasks.
See also
Super classes
mlr3::Task
-> mlr3::TaskSupervised
-> mlr3::TaskRegr
-> TaskFcst
-
mlr3::Task
-> mlr3::TaskSupervised
-> mlr3::TaskRegr
-> TaskFcst
Methods
@@ -121,16 +112,9 @@Public methods
Method new()
Creates a new instance of this R6 class.
-The function as_task_fcst()
provides an alternative way to construct forecast tasks.
+The function as_task_regr()
provides an alternative way to construct regression tasks.
@@ -151,10 +135,6 @@ ArgumentsArguments
Examples
- airpassengers = tsbox::ts_dt(AirPassengers)
-data.table::setnames(airpassengers, c("date", "passengers"))
-task = as_task_fcst(airpassengers, target = "passengers", index = "date")
+ task = as_task_regr(palmerpenguins::penguins, target = "bill_length_mm")
task$task_type
#> [1] "regr"
task$formula()
-#> passengers ~ .
+#> bill_length_mm ~ .
#> NULL
task$truth()
-#> [1] 112 118 132 129 121 135 148 148 136 119 104 118 115 126 141 135 125 149
-#> [19] 170 170 158 133 114 140 145 150 178 163 172 178 199 199 184 162 146 166
-#> [37] 171 180 193 181 183 218 230 242 209 191 172 194 196 196 236 235 229 243
-#> [55] 264 272 237 211 180 201 204 188 235 227 234 264 302 293 259 229 203 229
-#> [73] 242 233 267 269 270 315 364 347 312 274 237 278 284 277 317 313 318 374
-#> [91] 413 405 355 306 271 306 315 301 356 348 355 422 465 467 404 347 305 336
-#> [109] 340 318 362 348 363 435 491 505 404 359 310 337 360 342 406 396 420 472
-#> [127] 548 559 463 407 362 405 417 391 419 461 472 535 622 606 508 461 390 432
-task$data(rows = 1:3)
-#> passengers date
-#> <num> <Date>
-#> 1: 112 1949-01-01
-#> 2: 118 1949-02-01
-#> 3: 132 1949-03-01
+#> [1] 39.1 39.5 40.3 NA 36.7 39.3 38.9 39.2 34.1 42.0 37.8 37.8 41.1 38.6 34.6
+#> [16] 36.6 38.7 42.5 34.4 46.0 37.8 37.7 35.9 38.2 38.8 35.3 40.6 40.5 37.9 40.5
+#> [31] 39.5 37.2 39.5 40.9 36.4 39.2 38.8 42.2 37.6 39.8 36.5 40.8 36.0 44.1 37.0
+#> [46] 39.6 41.1 37.5 36.0 42.3 39.6 40.1 35.0 42.0 34.5 41.4 39.0 40.6 36.5 37.6
+#> [61] 35.7 41.3 37.6 41.1 36.4 41.6 35.5 41.1 35.9 41.8 33.5 39.7 39.6 45.8 35.5
+#> [76] 42.8 40.9 37.2 36.2 42.1 34.6 42.9 36.7 35.1 37.3 41.3 36.3 36.9 38.3 38.9
+#> [91] 35.7 41.1 34.0 39.6 36.2 40.8 38.1 40.3 33.1 43.2 35.0 41.0 37.7 37.8 37.9
+#> [106] 39.7 38.6 38.2 38.1 43.2 38.1 45.6 39.7 42.2 39.6 42.7 38.6 37.3 35.7 41.1
+#> [121] 36.2 37.7 40.2 41.4 35.2 40.6 38.8 41.5 39.0 44.1 38.5 43.1 36.8 37.5 38.1
+#> [136] 41.1 35.6 40.2 37.0 39.7 40.2 40.6 32.1 40.7 37.3 39.0 39.2 36.6 36.0 37.8
+#> [151] 36.0 41.5 46.1 50.0 48.7 50.0 47.6 46.5 45.4 46.7 43.3 46.8 40.9 49.0 45.5
+#> [166] 48.4 45.8 49.3 42.0 49.2 46.2 48.7 50.2 45.1 46.5 46.3 42.9 46.1 44.5 47.8
+#> [181] 48.2 50.0 47.3 42.8 45.1 59.6 49.1 48.4 42.6 44.4 44.0 48.7 42.7 49.6 45.3
+#> [196] 49.6 50.5 43.6 45.5 50.5 44.9 45.2 46.6 48.5 45.1 50.1 46.5 45.0 43.8 45.5
+#> [211] 43.2 50.4 45.3 46.2 45.7 54.3 45.8 49.8 46.2 49.5 43.5 50.7 47.7 46.4 48.2
+#> [226] 46.5 46.4 48.6 47.5 51.1 45.2 45.2 49.1 52.5 47.4 50.0 44.9 50.8 43.4 51.3
+#> [241] 47.5 52.1 47.5 52.2 45.5 49.5 44.5 50.8 49.4 46.9 48.4 51.1 48.5 55.9 47.2
+#> [256] 49.1 47.3 46.8 41.7 53.4 43.3 48.1 50.5 49.8 43.5 51.5 46.2 55.1 44.5 48.8
+#> [271] 47.2 NA 46.8 50.4 45.2 49.9 46.5 50.0 51.3 45.4 52.7 45.2 46.1 51.3 46.0
+#> [286] 51.3 46.6 51.7 47.0 52.0 45.9 50.5 50.3 58.0 46.4 49.2 42.4 48.5 43.2 50.6
+#> [301] 46.7 52.0 50.5 49.5 46.4 52.8 40.9 54.2 42.5 51.0 49.7 47.5 47.6 52.0 46.9
+#> [316] 53.5 49.0 46.2 50.9 45.5 50.9 50.8 50.1 49.0 51.5 49.8 48.1 51.4 45.7 50.7
+#> [331] 42.5 52.2 45.2 49.3 50.2 45.6 51.9 46.8 45.7 55.8 43.5 49.6 50.8 50.2
+task$data(rows = 1:3, cols = task$feature_names[1:2])
+#> bill_depth_mm body_mass_g
+#> <num> <int>
+#> 1: 18.7 3750
+#> 2: 17.4 3800
+#> 3: 18.0 3250
Method new()
Creates a new instance of this R6 class.
-The function as_task_fcst()
provides an alternative way to construct forecast tasks.
as_task_regr()
provides an alternative way to construct regression tasks.
ArgumentsArguments
Examples
- airpassengers = tsbox::ts_dt(AirPassengers)
-data.table::setnames(airpassengers, c("date", "passengers"))
-task = as_task_fcst(airpassengers, target = "passengers", index = "date")
+ task = as_task_regr(palmerpenguins::penguins, target = "bill_length_mm")
task$task_type
#> [1] "regr"
task$formula()
-#> passengers ~ .
+#> bill_length_mm ~ .
#> NULL
task$truth()
-#> [1] 112 118 132 129 121 135 148 148 136 119 104 118 115 126 141 135 125 149
-#> [19] 170 170 158 133 114 140 145 150 178 163 172 178 199 199 184 162 146 166
-#> [37] 171 180 193 181 183 218 230 242 209 191 172 194 196 196 236 235 229 243
-#> [55] 264 272 237 211 180 201 204 188 235 227 234 264 302 293 259 229 203 229
-#> [73] 242 233 267 269 270 315 364 347 312 274 237 278 284 277 317 313 318 374
-#> [91] 413 405 355 306 271 306 315 301 356 348 355 422 465 467 404 347 305 336
-#> [109] 340 318 362 348 363 435 491 505 404 359 310 337 360 342 406 396 420 472
-#> [127] 548 559 463 407 362 405 417 391 419 461 472 535 622 606 508 461 390 432
-task$data(rows = 1:3)
-#> passengers date
-#> <num> <Date>
-#> 1: 112 1949-01-01
-#> 2: 118 1949-02-01
-#> 3: 132 1949-03-01
+#> [1] 39.1 39.5 40.3 NA 36.7 39.3 38.9 39.2 34.1 42.0 37.8 37.8 41.1 38.6 34.6
+#> [16] 36.6 38.7 42.5 34.4 46.0 37.8 37.7 35.9 38.2 38.8 35.3 40.6 40.5 37.9 40.5
+#> [31] 39.5 37.2 39.5 40.9 36.4 39.2 38.8 42.2 37.6 39.8 36.5 40.8 36.0 44.1 37.0
+#> [46] 39.6 41.1 37.5 36.0 42.3 39.6 40.1 35.0 42.0 34.5 41.4 39.0 40.6 36.5 37.6
+#> [61] 35.7 41.3 37.6 41.1 36.4 41.6 35.5 41.1 35.9 41.8 33.5 39.7 39.6 45.8 35.5
+#> [76] 42.8 40.9 37.2 36.2 42.1 34.6 42.9 36.7 35.1 37.3 41.3 36.3 36.9 38.3 38.9
+#> [91] 35.7 41.1 34.0 39.6 36.2 40.8 38.1 40.3 33.1 43.2 35.0 41.0 37.7 37.8 37.9
+#> [106] 39.7 38.6 38.2 38.1 43.2 38.1 45.6 39.7 42.2 39.6 42.7 38.6 37.3 35.7 41.1
+#> [121] 36.2 37.7 40.2 41.4 35.2 40.6 38.8 41.5 39.0 44.1 38.5 43.1 36.8 37.5 38.1
+#> [136] 41.1 35.6 40.2 37.0 39.7 40.2 40.6 32.1 40.7 37.3 39.0 39.2 36.6 36.0 37.8
+#> [151] 36.0 41.5 46.1 50.0 48.7 50.0 47.6 46.5 45.4 46.7 43.3 46.8 40.9 49.0 45.5
+#> [166] 48.4 45.8 49.3 42.0 49.2 46.2 48.7 50.2 45.1 46.5 46.3 42.9 46.1 44.5 47.8
+#> [181] 48.2 50.0 47.3 42.8 45.1 59.6 49.1 48.4 42.6 44.4 44.0 48.7 42.7 49.6 45.3
+#> [196] 49.6 50.5 43.6 45.5 50.5 44.9 45.2 46.6 48.5 45.1 50.1 46.5 45.0 43.8 45.5
+#> [211] 43.2 50.4 45.3 46.2 45.7 54.3 45.8 49.8 46.2 49.5 43.5 50.7 47.7 46.4 48.2
+#> [226] 46.5 46.4 48.6 47.5 51.1 45.2 45.2 49.1 52.5 47.4 50.0 44.9 50.8 43.4 51.3
+#> [241] 47.5 52.1 47.5 52.2 45.5 49.5 44.5 50.8 49.4 46.9 48.4 51.1 48.5 55.9 47.2
+#> [256] 49.1 47.3 46.8 41.7 53.4 43.3 48.1 50.5 49.8 43.5 51.5 46.2 55.1 44.5 48.8
+#> [271] 47.2 NA 46.8 50.4 45.2 49.9 46.5 50.0 51.3 45.4 52.7 45.2 46.1 51.3 46.0
+#> [286] 51.3 46.6 51.7 47.0 52.0 45.9 50.5 50.3 58.0 46.4 49.2 42.4 48.5 43.2 50.6
+#> [301] 46.7 52.0 50.5 49.5 46.4 52.8 40.9 54.2 42.5 51.0 49.7 47.5 47.6 52.0 46.9
+#> [316] 53.5 49.0 46.2 50.9 45.5 50.9 50.8 50.1 49.0 51.5 49.8 48.1 51.4 45.7 50.7
+#> [331] 42.5 52.2 45.2 49.3 50.2 45.6 51.9 46.8 45.7 55.8 43.5 49.6 50.8 50.2
+task$data(rows = 1:3, cols = task$feature_names[1:2])
+#> bill_depth_mm body_mass_g
+#> <num> <int>
+#> 1: 18.7 3750
+#> 2: 17.4 3800
+#> 3: 18.0 3250
airpassengers = tsbox::ts_dt(AirPassengers)
-data.table::setnames(airpassengers, c("date", "passengers"))
-task = as_task_fcst(airpassengers, target = "passengers", index = "date")
+ task = as_task_regr(palmerpenguins::penguins, target = "bill_length_mm")
task$task_type
#> [1] "regr"
task$formula()
-#> passengers ~ .
+#> bill_length_mm ~ .
#> NULL
task$truth()
-#> [1] 112 118 132 129 121 135 148 148 136 119 104 118 115 126 141 135 125 149
-#> [19] 170 170 158 133 114 140 145 150 178 163 172 178 199 199 184 162 146 166
-#> [37] 171 180 193 181 183 218 230 242 209 191 172 194 196 196 236 235 229 243
-#> [55] 264 272 237 211 180 201 204 188 235 227 234 264 302 293 259 229 203 229
-#> [73] 242 233 267 269 270 315 364 347 312 274 237 278 284 277 317 313 318 374
-#> [91] 413 405 355 306 271 306 315 301 356 348 355 422 465 467 404 347 305 336
-#> [109] 340 318 362 348 363 435 491 505 404 359 310 337 360 342 406 396 420 472
-#> [127] 548 559 463 407 362 405 417 391 419 461 472 535 622 606 508 461 390 432
-task$data(rows = 1:3)
-#> passengers date
-#> <num> <Date>
-#> 1: 112 1949-01-01
-#> 2: 118 1949-02-01
-#> 3: 132 1949-03-01
+#> [1] 39.1 39.5 40.3 NA 36.7 39.3 38.9 39.2 34.1 42.0 37.8 37.8 41.1 38.6 34.6
+#> [16] 36.6 38.7 42.5 34.4 46.0 37.8 37.7 35.9 38.2 38.8 35.3 40.6 40.5 37.9 40.5
+#> [31] 39.5 37.2 39.5 40.9 36.4 39.2 38.8 42.2 37.6 39.8 36.5 40.8 36.0 44.1 37.0
+#> [46] 39.6 41.1 37.5 36.0 42.3 39.6 40.1 35.0 42.0 34.5 41.4 39.0 40.6 36.5 37.6
+#> [61] 35.7 41.3 37.6 41.1 36.4 41.6 35.5 41.1 35.9 41.8 33.5 39.7 39.6 45.8 35.5
+#> [76] 42.8 40.9 37.2 36.2 42.1 34.6 42.9 36.7 35.1 37.3 41.3 36.3 36.9 38.3 38.9
+#> [91] 35.7 41.1 34.0 39.6 36.2 40.8 38.1 40.3 33.1 43.2 35.0 41.0 37.7 37.8 37.9
+#> [106] 39.7 38.6 38.2 38.1 43.2 38.1 45.6 39.7 42.2 39.6 42.7 38.6 37.3 35.7 41.1
+#> [121] 36.2 37.7 40.2 41.4 35.2 40.6 38.8 41.5 39.0 44.1 38.5 43.1 36.8 37.5 38.1
+#> [136] 41.1 35.6 40.2 37.0 39.7 40.2 40.6 32.1 40.7 37.3 39.0 39.2 36.6 36.0 37.8
+#> [151] 36.0 41.5 46.1 50.0 48.7 50.0 47.6 46.5 45.4 46.7 43.3 46.8 40.9 49.0 45.5
+#> [166] 48.4 45.8 49.3 42.0 49.2 46.2 48.7 50.2 45.1 46.5 46.3 42.9 46.1 44.5 47.8
+#> [181] 48.2 50.0 47.3 42.8 45.1 59.6 49.1 48.4 42.6 44.4 44.0 48.7 42.7 49.6 45.3
+#> [196] 49.6 50.5 43.6 45.5 50.5 44.9 45.2 46.6 48.5 45.1 50.1 46.5 45.0 43.8 45.5
+#> [211] 43.2 50.4 45.3 46.2 45.7 54.3 45.8 49.8 46.2 49.5 43.5 50.7 47.7 46.4 48.2
+#> [226] 46.5 46.4 48.6 47.5 51.1 45.2 45.2 49.1 52.5 47.4 50.0 44.9 50.8 43.4 51.3
+#> [241] 47.5 52.1 47.5 52.2 45.5 49.5 44.5 50.8 49.4 46.9 48.4 51.1 48.5 55.9 47.2
+#> [256] 49.1 47.3 46.8 41.7 53.4 43.3 48.1 50.5 49.8 43.5 51.5 46.2 55.1 44.5 48.8
+#> [271] 47.2 NA 46.8 50.4 45.2 49.9 46.5 50.0 51.3 45.4 52.7 45.2 46.1 51.3 46.0
+#> [286] 51.3 46.6 51.7 47.0 52.0 45.9 50.5 50.3 58.0 46.4 49.2 42.4 48.5 43.2 50.6
+#> [301] 46.7 52.0 50.5 49.5 46.4 52.8 40.9 54.2 42.5 51.0 49.7 47.5 47.6 52.0 46.9
+#> [316] 53.5 49.0 46.2 50.9 45.5 50.9 50.8 50.1 49.0 51.5 49.8 48.1 51.4 45.7 50.7
+#> [331] 42.5 52.2 45.2 49.3 50.2 45.6 51.9 46.8 45.7 55.8 43.5 49.6 50.8 50.2
+task$data(rows = 1:3, cols = task$feature_names[1:2])
+#> bill_depth_mm body_mass_g
+#> <num> <int>
+#> 1: 18.7 3750
+#> 2: 17.4 3800
+#> 3: 18.0 3250