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
# Load required packages
library(pdp)
library(randomForest)
library(tibble)
# Load data
data(boston)
trn<- as.tibble(boston) # convert to a tibble# Fit a random forestrf<- randomForest(cmedv~., data=trn)
# Construct a partial dependence plot for lstat
partial(rf, pred.var="lstat", plot=TRUE) # blank!!
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: