Published
Edited
Apr 2, 2019
1 fork
Importers
6 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Algorithmia = require("https://algorithmia.com/v1/clients/js/algorithmia-0.2.0.js").catch(
() => window.Algorithmia
)
// Could be Algorithmia = require("algorithmia") but… CORS
// See [issue #12](https://github.com/algorithmiaio/algorithmia-nodejs/issues/12#issuecomment-441799477)
Insert cell
options = ({
n_components: 2,
min_dist: 1,
n_neighbors: 15,
metric: "euclidean"
})
Insert cell
res = token
? Algorithmia.query("fil/UMAP", token, { data, options })
: { error: { message: "No token" } }
Insert cell
ERROR = res.error && res.error.message
Insert cell
DURATION = res.metadata && res.metadata.duration
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

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