Upload folder using huggingface_hub
Browse filesFiles changed (3)
- README.md+10
- assets/logo.svgAdded
- assets/tangle.svgAdded
13 unmodified lines141516171819202122232431 unmodified lines56575859606113 unmodified lines# knot2vecEmbeddings for knot diagrams. Two diagrams of the same knot, however tangled, should land close together; diagrams of different knots should land apart. Part of Weird2Vec, embedding models for data nobody embeds.> [!NOTE]> **What is a knot diagram?** A knot is a closed loop in space. Drawn on paper it becomes a diagram: a curve with crossings, each marked over or under. The same knot has infinitely many diagrams, related by Reidemeister moves. Telling whether two diagrams show the same knot is hard; this model learns a fast, approximate answer.## 🚀 UsageThe repo holds the script that trained the model, so one command embeds a [PD code](https://knotinfo.org/descriptions/pd_notation.html) and names the nearest catalogued knots:31 unmodified linesChance top-1 is 7.7e-05. For an exact answer, use SnapPy's `identify()`.## ⚠️ Limitations- Prime knots up to 13 crossings only, and only the chirality KnotInfo lists; a mirror image is a different input.13 unmodified lines141516171819202122232425262728293031 unmodified lines6263646566676869707113 unmodified lines# knot2vec<p align="center"><img src="assets/logo.svg" alt="Knot2Vec logo: the torus knot T(3,5) in rainbow colours on a dark tile" width="200"></p>Embeddings for knot diagrams. Two diagrams of the same knot, however tangled, should land close together; diagrams of different knots should land apart. Part of Weird2Vec, embedding models for data nobody embeds.> [!NOTE]> **What is a knot diagram?** A knot is a closed loop in space. Drawn on paper it becomes a diagram: a curve with crossings, each marked over or under. The same knot has infinitely many diagrams, related by Reidemeister moves. Telling whether two diagrams show the same knot is hard; this model learns a fast, approximate answer.Two tangles the model names correctly. Results below say how often that happens. Try your own in the [demo](https://huggingface.co/spaces/jgalego/knot2vec-demo).## 🚀 UsageThe repo holds the script that trained the model, so one command embeds a [PD code](https://knotinfo.org/descriptions/pd_notation.html) and names the nearest catalogued knots:31 unmodified linesChance top-1 is 7.7e-05. For an exact answer, use SnapPy's `identify()`.Every catalogued knot's embedding, flattened with UMAP and coloured by signature. The map is ordered by signature, from positive to strongly negative.## ⚠️ Limitations- Prime knots up to 13 crossings only, and only the chirality KnotInfo lists; a mirror image is a different input.
README.md+10
assets/logo.svgAdded
assets/tangle.svgAdded