Skip to content

Files

Latest commit

55987d5 · Mar 9, 2025

History

History

tsne

@thi.ng/tsne

npm version npm downloads Mastodon Follow

Note

This is one of 203 standalone projects, maintained as part of the @thi.ng/umbrella monorepo and anti-framework.

🚀 Please help me to work full-time on these projects by sponsoring me on GitHub. Thank you! ❤️

About

Highly configurable t-SNE implementation for arbitrary dimensions.

Current implementation (as of 07/2021) is based in principle on:

Most key functionality has been refactored/rewritten to use pre-existing functionality provided by other thi.ng packages.

Furthermore, this implementation has been extended to use https://thi.ng/geom-accel to optimize spatial lookups. (FIXME currently disabled/removed again)

Status

ALPHA - bleeding edge / work-in-progress

Search or submit any issues for this package

Installation

yarn add @thi.ng/tsne

ESM import:

import * as tsne from "@thi.ng/tsne";

Browser ESM import:

<script type="module" src="https://esm.run/@thi.ng/tsne"></script>

JSDelivr documentation

For Node.js REPL:

const tsne = await import("@thi.ng/tsne");

Package sizes (brotli'd, pre-treeshake): ESM: 1.46 KB

Dependencies

Note: @thi.ng/api is in most cases a type-only import (not used at runtime)

Usage examples

One project in this repo's /examples directory is using this package:

Screenshot Description Live demo Source
Animated t-SNE visualization of 4D data Demo Source

API

Generated API docs

TODO

Authors

If this project contributes to an academic publication, please cite it as:

@misc{thing-tsne,
  title = "@thi.ng/tsne",
  author = "Karsten Schmidt",
  note = "https://thi.ng/tsne",
  year = 2021
}

License

© 2021 - 2025 Karsten Schmidt // Apache License 2.0