Skip to content

Conversation

@Purkinje-cell
Copy link

Spatial constrained clustering code in Spateo is very slow now even for small sparse matrix input. The problem is because when use sparse matrix input, the transformation from matrix to igraph takes a lot of time iterating edges. Directly convert sparse matrix input to dense solved the problem.

I also fixed some bugs in plot functions of the CCI model.

@Xiaojieqiu Xiaojieqiu requested a review from dzhu8 July 22, 2024 04:58
Copy link
Contributor

@dzhu8 dzhu8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good

@Xiaojieqiu
Copy link
Contributor

Thanks @Purkinje-cell ! Zehua also made a similar fix for scc, and he additionally added a simple method to smooth the spatial constrained cluster by neighborhood major voting. you can test it out #250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants