Repository navigation
Use Barnes-Hut t-SNE in the node classification tutorials - #753
Merged
Merged
Conversation
TSne 1.4.0 made the default exact method ~35x slower (lejon/TSne.jl#37): the two tsne calls in the node classification tutorial took about an hour of the docs build. The Barnes-Hut method added in 1.4 takes a few seconds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The docs job has taken 1.5–2 h since July, up from ~40 min. About an hour of that goes into the two
tsnecalls of the node classification tutorial. TSne 1.4.0 made the default exact method ~35× slower because of a type instability, reported upstream in lejon/TSne.jl#37.This switches the tutorial to
method = :barneshut, added in TSne 1.4, and requiresTSne = "1.4"in the docs environment. Locally on 4 cores, the node classification page now executes in ~1 min instead of ~38 min, and the t-SNE plots still show the class clusters after training.The same change is applied to the GNNLux copy of the tutorial (Literate source and rendered markdown) to keep the two in sync. That one is not executed by the docs build.
🧔♂️🤖 Assisted by Claude Opus 5.5