Public
Edited
Feb 26
Insert cell
Insert cell
bird = FileAttachment("bird.jpg").image()
Insert cell
cat = FileAttachment("cat.jpg").image()
Insert cell
classifier = ml5.imageClassifier("MobileNet")
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
classifier.classify(bird)
Insert cell
function promisify(foo) {
return (...params) => {
const promise = new Promise((resolve) => foo(...params, resolve));
return promise;
};
}
Insert cell
ml5 = require("ml5")
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