Closed biscotty666 closed 7 months ago
Thanks @biscotty666 -- could you test if the following works:
task = mlr3spatiotempcv::as_task_classif_st(
id = "ecuador_lsl",
x = mlr3::as_data_backend(lsl),
target = "lslpts",
positive = "TRUE",
coordinate_names = c("x", "y"),
coords_as_features = FALSE,
crs = "EPSG:32717"
)
?
It seemed happy with that! TY.
I prefer using keywords, but the way the documentation is written suggested that the first two (x and target) in the documentation were different (positional) than the others with the =
syntax (thinking args/kwargs from Python).
Thanks @biscotty666.
(In general, R is very flexible when it comes to the way users provide arguments: you can easily mix giving them as named arguments with giving them in some positions)
I just updated the code in the book.
Excellent, thanks a lot!!
In 12.5.1, the following code:
produces
which seems to be due to the ordering of the arguments (and backend/target are positional according to the docs), so this works:
Thank you for your work.