0
$\begingroup$

I am using this code:

library(datasets)
library(quantregForest)
library(dplyr)
library(ggplot2)
library(randomForest)

Xtrain <- iris %>%
    select(
        Sepal.Length
        , Petal.Length
    )

Ytrain <- iris$Petal.Width

model <- quantregForest(
    x = Xtrain
    , y = Ytrain
)

plot.partial = function() {
    partialPlot(model, Xtrain, x.var = "Sepal.Length")
    partialPlot(model, Xtrain, x.var = "Petal.Length")
}

class(model) <- "randomForest"
plot.partial()

What does the partial dependence plot actually show? Is this the mean prediction (rather than for example the median)?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.