Published
Edited
Dec 6, 2019
2 forks
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
UMAP = (await require("umap-js@1.3.1")).UMAP
Insert cell
fixed = new UMAP({
nComponents: 2,
minDist: 0.1,
nNeighbors: 15
}).fit(data)
Insert cell
dynamic = {
if (!show_dynamic) return;
const umap = new UMAP({
nComponents: 2,
minDist: 0.1,
nNeighbors: 15
}),
nEpochs = umap.initializeFit(data);

for (let i = 0; i < nEpochs; i++) {
umap.step();
if (i % 5 === 0) yield umap.getEmbedding();
}
yield umap.getEmbedding();
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more