Transforms the provided data into the cluster-distance space. That is, it returns the distance of each datapoint to each cluster centroid.
- Return type:
A tensor of shape
[num_datapoints, num_clusters]with the distances to the cluster centroids.
When calling this function in a multi-process environment, each process receives only a subset of the predictions. If you want to aggregate predictions, make sure to gather the values returned from this method.