GitHub
deepbox/ml

Manifold & Projection

Manifold learners, random projection, and embedding-focused transforms for structure discovery.
Embedding

Isomap

Isomap is part of the deepbox/ml public API.

MDS

MDS is part of the deepbox/ml public API.

SpectralEmbedding

SpectralEmbedding is part of the deepbox/ml public API.

TSNE

t-Distributed Stochastic Neighbor Embedding (t-SNE).

GaussianRandomProjection

Gaussian Random Projection.

ml-manifold.ts
import { GaussianRandomProjection, Isomap, MDS, TSNE } from "deepbox/ml";import { tensor } from "deepbox/ndarray";const X = tensor([  [1, 0, 0],  [0.9, 0.1, 0],  [0, 1, 0],  [0, 0.9, 0.1],]);console.log(new GaussianRandomProjection({ nComponents: 2 }).fitTransform(X).toString());console.log(new Isomap({ nComponents: 2 }).fitTransform(X).toString());console.log(new MDS({ nComponents: 2 }).fitTransform(X).toString());console.log(new TSNE({ nComponents: 2 }).fitTransform(X).toString());