build.grid | R Documentation |
A dataframe storing the true predictions and the PDP predictions
build.grid(object, feat.ind = 1:length(object$features))
object |
The Interpreter object |
feat.ind |
The indices of the features in the Interpreter's features that we want to include as PDP functions in the distilled model. |
A dataframe used to find weights in regression (one-hot encoding for categorical features)
This function is mainly used as a subroutine for the distill function. We include this as a public function to allow users to create their own weights and surrogate functions outside of our implemented method.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.