past.Evaluation.cluster_refine

past.Evaluation.cluster_refine(pred, spatial_mtx, num_nbs=6)

Refine clustering result according spatial neighborhood

Parameters:
  • pred – original clustering labels

  • spatial_mtx – spatial cordinate matrix

  • num_nbs – number of neighbors to consider when refining clustering labels

Returns:

refined labels

Return type:

list