Counts the number of cross-label edges in the minimum spanning tree of data.
- Parameters:
- data : NDArray[np.float64]
Input images to be grouped
- labels : NDArray[np.intp]
Corresponding labels for each data point
- Returns:
Number of cross-label edges in the minimum spanning tree of input data
- Return type:
int