scSLAT.metrics.hit_k
- scSLAT.metrics.hit_k(features, ground_truth, k=10)[source]
Calculate first and top k-th hit ratio of matching
- Parameters:
features (
typing.List
[torch.Tensor
]) – features of embedground_truth (
torch.Tensor
) – in shape of (2, n_node)k (
typing.Optional
[int
]) – top k
- Return type: