Published
Edited
Nov 5, 2019
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
nn = (ml5.neuralNetwork(config))
Insert cell
Insert cell
Insert cell
{
if (nn.ready) {
nn.normalizeData();
nn.train();
let result = nn.predict(input, x=> console.log(x));
return(result);
} else {
return('waiting for model ready');
}
}
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