Skip to content

visreg does not work for random forests with subset #128

@pbreheny

Description

@pbreheny

First call works; second one does not.

library(randomForest)
data('Boston', package='MASS')
train <- sample(1:nrow(Boston), nrow(Boston) / 2)
randomForest(medv ~ ., data = Boston) |> visreg::visreg('lstat')
randomForest(medv ~ ., data = Boston, subset=train) |> visreg::visreg('lstat')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions