eval_distance {counterfactuals} | R Documentation |
Evaluates a distance function and checks for correct output format
Description
This function serves as an evaluation wrapper for some distance function. It checks that the output
of distance_function
is a numeric
matrix with nrow(x)
rows and nrow(y)
columns as expected.
Usage
eval_distance(distance_function, x, y, data = NULL)
Arguments
distance_function |
( |
x |
( |
y |
( |
data |
( |
[Package counterfactuals version 0.1.4 Index]