Skip to content

Using combine randomForest loses information #1

@hardingnj

Description

@hardingnj

My workflow is essentially: build several smaller RFs on different nodes, then combine.

rf1 <- rfPermute(Ozone ~ ., data = airquality, ntree = 500, na.action = na.omit, nrep = 100)
rf2 <- rfPermute(Ozone ~ ., data = airquality, ntree = 500, na.action = na.omit, nrep = 100)
rf3 <- rfPermute(Ozone ~ ., data = airquality, ntree = 500, na.action = na.omit, nrep = 100)
rf.all <- combine(rf1, rf1, rf3)

I would like to use rfPermute to calculate importance p.values. However, when I use the combine function I lose the subsequent values in null.dist for rf2 & 3, with no warning.

This is a fairly common workflow, so is adding a custom combine method feasible? Or am I better to manually combine the values in null.dist beforehand?

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