Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimized SCC performance & fix some bugs #249

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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