anndata (AnnData) – The anndata object provided.
test_for (str) – Factor column in obs for the original labels.
embed (str) – Key in obsm pointing to the embeddings to run K-Means with.
n_neighbors (int, default: 30) – K for the KNN classifier.