partial_plot_predict: Function to calculate partial dependencies from a...

Description Usage Arguments Value Author(s)

View source: R/random_forest_helpers.R

Description

Function to calculate partial dependencies from a randomForest model.

Usage

1
2
partial_plot_predict(list_model, df, variable, n = 100,
  as.character = FALSE)

Arguments

list_model

A randomForest model.

df

Data frame to be used for prediction.

variable

The variable to calculate the partial dependency of.

n

Number of observations to predict?

as.character

Should the variables be forced to be a character data type? This is helpful when binding many returns from partial_plot_predict.

Value

Data frame.

Author(s)

Stuart K. Grange


skgrange/enlightenr documentation built on May 30, 2019, 1:03 a.m.