Prepares data and distance matrices for metric calculation
prep_data_dist(
object,
new_data = NULL,
dists = NULL,
dist_fun = philentropy::distance
)A list
A fitted cluster_spec object.
A dataset to calculate predictions on. If NULL, the
trained cluster assignments from the fitted object are used.
A distance matrix for the data. If NULL, distance is computed
on new_data using the stats::dist() function.
A custom distance functions.