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

Zig Zag Persistence Examples/Documentation #15

Open
alexjwilliams opened this issue Apr 4, 2017 · 3 comments
Open

Zig Zag Persistence Examples/Documentation #15

alexjwilliams opened this issue Apr 4, 2017 · 3 comments

Comments

@alexjwilliams
Copy link

alexjwilliams commented Apr 4, 2017

I am interested in using JavaPlex to compute zig zag persistent homology. An example or two would really help a lot. I didn't find any in the documentation. Could someone add one?

@henryadams
Copy link
Contributor

Hi Alex (and others!),
I've essentially never computed any zigzag persistent homology examples in JavaPlex. But if anybody has, please let me know, as I'd consider adding nice Matlab examples to the tutorial! Unfortunately I don't have the time right now to try to figure out the code myself.
Alex, you may be interested in the following files, which rely on zigzag persistent homology:
https://github.com/appliedtopology/javaplex/blob/master/src/matlab/experimental/witness_bootstrap/circle_pairwise.m
https://github.com/appliedtopology/javaplex/blob/master/src/matlab/experimental/witness_bootstrap/figure8_example.m
https://github.com/appliedtopology/javaplex/blob/master/src/matlab/experimental/witness_bootstrap/torus_example.m
I think some users in the past had trouble running those files, so I'm not sure what the current state of affairs is.
Best, Henry

@alexjwilliams
Copy link
Author

alexjwilliams commented Apr 19, 2017

Hello again. I was able to successfully run one of the zigzag examples that used the vietoris rips complex: https://github.com/appliedtopology/javaplex/blob/master/src/matlab/experimental/vietoris_rips_bootstrap/basic_sphere_example.m.

I ran into trouble with the witness complex examples, however. For example, when I ran
https://github.com/appliedtopology/javaplex/blob/master/src/matlab/experimental/witness_bootstrap/figure8_example.m, I got the following error:

Error using zigzagex (line 19)
Java exception occurred:
java.lang.UnsupportedOperationException at edu.stanford.math.plex4.streams.impl.WitnessStream.setPlex3Compatbility(Unknown Source) at edu.stanford.math.plex4.homology.zigzag.bootstrap.WitnessBootstrapper.performProjectionBootstrap(Unknown Source)

Just to try it out, I commented out all of the
Y_stream.setPlex3Compatbility(false); lines in WitnessBootstrapper.java, but that resulted in:

Error using zigzagex (line 19)
Java exception occurred:
java.lang.UnsupportedOperationException at edu.stanford.math.plex4.streams.impl.WitnessStream.getAssociatedSimplices(WitnessStream.java:157) at edu.stanford.math.plex4.streams.impl.WitnessBicomplex.constructComplex(WitnessBicomplex.java:32) at edu.stanford.math.plex4.streams.interfaces.PrimitiveStream.finalizeStream(PrimitiveStream.java:95)
at edu.stanford.math.plex4.homology.zigzag.bootstrap.WitnessBootstrapper.performProjectionBootstrap(WitnessBootstrapper.java:142)

Would this be relatively easy to fix? Henry, given your last answer it doesn't sound like you have the time to get to the bottom of this (Although I'd be very grateful if you could help me). I'll tag Andrew Tausz, who wrote the code in question. @OgDet, do you know what is going on here?

Thanks,
Alex

Edit: zigzagex.m is a file in which I pasted load_javaplex.m above the code in https://github.com/appliedtopology/javaplex/blob/master/src/matlab/experimental/witness_bootstrap/figure8_example.m. Originally the line numbers of the errors above ("Error using zigzagex") pointed to the lines of the modified file (zigzagex.m). I have changed the above line numbers to point to the line number where the error occurred in the unmodified version of the script. The errors occur at line 19 of https://github.com/appliedtopology/javaplex/blob/master/src/matlab/experimental/witness_bootstrap/figure8_example.m. My apologies.

@henryadams
Copy link
Contributor

Hi Alex,
I don't know this part of the code well enough to have much to say. @OgDet or @michiexile may be able to give you some ideas, but @OgDet has largely moved on to other responsibilities.
Best, Henry

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

No branches or pull requests

2 participants