You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The calculations of {randomForest} models lose a significant amount of time in mutate_if() calls. Replacing them by an explicit mutate() is easy, and gives a clear speed-up:
The calculations of {randomForest} models lose a significant amount of time in
mutate_if()
calls. Replacing them by an explicitmutate()
is easy, and gives a clear speed-up:library(randomForest)
library(randomForestExplainer)
set.seed(12)
fit <- randomForest(Sepal.Width~., data = iris)
fit2 <- ranger(Sepal.Width~., data = iris)
system.time( # 2.1 seconds with mutate_if() -> 0.8 seconds with mutate()
out <- min_depth_distribution(fit)
)
The text was updated successfully, but these errors were encountered: