scSLAT.metrics.calc_NMI

scSLAT.metrics.calc_NMI()[source]

(Abandon) NMI: neighbor matching index, measure how many K nearest spatial neighbors has matching from 0 to 1

Parameters:
  • adata – adata with spatial

  • matching – matching result, must one to one now

  • k – k nearest neighbor

  • spatial_key – key of spatial data in adata.obsm

Note

This function runs very slow in current version, need optimize it