Closed pat-s closed 1 year ago
Just came across cv_spatial()
which looks more like being the successor of spatialBlock()
(given it's arguments) even though cv_block_size()
is name-wise much closer.
OK, cv_spatial()
is what I was searching for :)
@pat-s yep! that is it.
The naming is used to match other blocking methods; the new blocking functions are: cv_spatial
, cv_cluster
, cv_buffer
, and cv_nndm
;
Check https://github.com/rvalavi/blockCV#new-updates-of-the-version-30
For buffering (cv_buffer()
) use report = FALSE
to make it faster;
Hi @rvalavi
The new version of
spatialBlock()
, i.e.cv_block_size()
is not usable in third-party packages like {mlr3spatiotempcv} as it always returns a shiny app instead of a simple R object. This is complete blocker for script-based/non-interactive workflows in general.In my view, the function
interactive
with FALSE/TRUE and a default toFALSE
Would you consider changing the behavior?
NB: I haven't yet checked if the outputs are backwards-compatible with
spatialBlock
(are they?). I see almost all arguments have changed. If not, this would be a huge reproducibility issue and I would appreciate not removing the oldspatialBlock()
but just creating a new standalone function/method that lives alongside the old one.