Skip to content

trail.spLearner blocking factor #9

@oliviafraserusda

Description

@oliviafraserusda

Yes, example is at: https://opengeohub.github.io/spatial-prediction-eml/spatial-interpolation-using-ensemble-ml.html#spatial-prediction-of-soil-types-factor-variable
It works the same way - you just have to prepare the spatial grid for spatial blocking or use the landmap::train.spLearner function.

Originally posted by @thengl in #1 (comment)

How do I add spatial block IDs (blocking = as.factor(rmPF$gid))) to the train.spLearner function for classification (tsk <- mlr::makeClassifTask)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions