Published
Edited
Jun 6, 2019
8 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
UMAP = await require("https://unpkg.com/umap-js@1.3.0/lib/umap-js.js").catch(
() => window.UMAP
)
Insert cell
solution = {
const umap = new UMAP({
nComponents: 1,
minDist: 0,
nNeighbors: 20
}),
nEpochs = umap.initializeFit(points.map(projection));

for (let i = 0; i < nEpochs; i++) {
umap.step();
if (i % 10 === 0) yield { solution: umap.getEmbedding() };
}
yield { solution: umap.getEmbedding() };
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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