For current KNN data shapley attributor, the default distance_func is irrelevant to the model. One potential improvement for the distance function is to pass the model through the task argument, so that the distance could be calculated in the model embedding space.
For current KNN data shapley attributor, the default
distance_func
is irrelevant to the model. One potential improvement for the distance function is to pass the model through thetask
argument, so that the distance could be calculated in the model embedding space.distance_func
could visit thetask
and extract whatever they want.