-
Notifications
You must be signed in to change notification settings - Fork 77
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
Enforcing number of connected components #17
Comments
@IssamLaradji this package doesn't enforce hard constraints such as exactly Assuming you know which filtration you're using, right now, the easiest function to use on a persistence diagram is Connected components is in dimension zero, and the infinite length bar is automatically ignored, so you would modify the example in the README to be feat = PartialSumBarcodeLengths(dim=0, skip=(k-1)) If you want a different type of penalty (e.g. L2 type penalty instead of L1) you can always write a custom class that does exactly what you want. To get started, you can see how the Does this answer your question? |
Oh this is great, it's working for me! Another related question, which layer should I use to get |
LevelSetLayer2D is for levelset filtration on a 2d grid, like a grayscale image (our paper have several examples). AlphaLayer and RipsLayer are a little bit similar and AlphaLayer can be thought of as the restriction of the Rips complex to the Delaunay Triangulation of the space. For understanding Rips filtration, check out Wikipedia or Google "Rips filtration" to read more. Does this help? |
Great work! How do I use this to have the network output$k$ number of connected components?
Thanks.
The text was updated successfully, but these errors were encountered: