View source: R/PartialDependenceplot.R
| PartialDependencePlot | R Documentation |
Partial Dependence Plot
PartialDependencePlot( data = NULL, FeatureNames = NULL, FittedModelObject = NULL, j = 20 )
data |
A |
FeatureNames |
A vector with the names of features to plot. |
FittedModelObject |
A fitted model object. |
j |
A numerical value that indicates the size of the equally spaced values for the feature of interest. |
This function returns a plot where X axis presents the values for each feature and Y axis illustrates the predicted proportion of correct answer to the item.
colnames(training)[14] <- "perf"
ensemblist <- TreeModels(traindata = training,
methodlist = c("dt","rf"),checkprogress = TRUE)
PartialDependencePlot(data = training,
FeatureNames = colnames(training[-c(4,14)]),
FittedModelObject = ensemblist$ModelObject$rpart, j = 30)
PartialDependencePlot(data = training,
FeatureNames = colnames(training[-c(4,14)]),
FittedModelObject = ensemblist$ModelObject$ranger, j = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.