Skip to content

Use Barnes-Hut t-SNE in the node classification tutorials - #753

Merged
CarloLucibello merged 1 commit into
masterfrom
cl/docs-tsne-barneshut
Nov 29, 2026
Merged

CarloLucibello merged 1 commit into
masterfrom
cl/docs-tsne-barneshut

Conversation

@CarloLucibello

Copy link
Copy Markdown
Member

The docs job has taken 1.5–2 h since July, up from ~40 min. About an hour of that goes into the two tsne calls 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 requires TSne = "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

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>
@CarloLucibello
CarloLucibello merged commit 9789546 into master Nov 29, 2026
10 of 11 checks passed
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