Description Usage Arguments Value
View source: R/local_explanation.R
Calculate Gower distance between an observation and training dataset
1 | distances(instance, egalitarian)
|
instance |
index of an observation in validation set |
egalitarian |
egalitarian object |
list of class egalitarian_similarity that consists of
data |
data object from 'egalitarian' object |
model |
model from 'egalitarian' object |
target_name |
name of the response variable |
instance_index |
'instance' argument to 'distances' |
distances |
numeric vector of Gower distances to the training dataset |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.