Skip to content

Added basic tree BPE implementation.#152

Open
AMS-Hippo wants to merge 2 commits into
TutteInstitute:masterfrom
AMS-Hippo:master
Open

Added basic tree BPE implementation.#152
AMS-Hippo wants to merge 2 commits into
TutteInstitute:masterfrom
AMS-Hippo:master

Conversation

@AMS-Hippo

Copy link
Copy Markdown

Edited the BPE implementation from STAMP to match the input/output of other tree/compression methods in the library.

I don't include the example notebook in this push, because it doesn't seem very important. I'll add it to my own fork soon, so it will be accessible if we decide we want it.

I tested the STAMP version quite a bit. I tested this rewrite less, since the basic algorithm is the same. It seems to do OK on small examples, and overall run-time was similar (roughly ~2 seconds to do ~30 contractions on a million nodes for my computer). There is a lot of room for acceleration if we decide to use this for larger examples, and especially for very large numebrs of contractions.

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.

1 participant