Learn R Programming

distillML (version 0.1.0.13)

predict_PDP.2D.Plotter: Two Dimensional Prediction Curve for PDP Plots

Description

Gives prediction surface for all specified feature pairs in the interpreter object (features.2d)

Usage

predict_PDP.2D.Plotter(object, feat.2d, save = TRUE)

Value

A list of data frames for each pair of features.2d. Each data frame contains columns corresponding to the grid points for the two selected features and a column corresponding to the predictions of the model at the given combination of grid points.

Arguments

object

The Interpreter object to use.

feat.2d

A 2-column dataframe or matrix that gives the first variable in in the first column, and the second variable in the next. The number of rows is equal to the number of 2-D PDPs one would like.

save

A boolean indicator to indicate whether the calculations should be saved in the interpreter object or not. This can help reduce computation if the PDP functions are used many times, but requires additional memory to store the predictions. By default, this is set to TRUE.

Details

predict_PDP.2D.Plotter