Public
Edited
Mar 9, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
resetMlp = () => {
mutable _predictions = [];
mutable _losses = [];
mutable _sum = [];
mutable mlp = new MLP(3, [4, 4, 1]);
}
Insert cell
{
let trigger = iteration;
const { predictions, sum, losses } = trainingLoop(mlp);
mutable _predictions.push(predictions);
mutable _losses.push(losses);
mutable _sum.push(sum);
mutable _predictions = mutable _predictions;
mutable _losses = mutable _losses;
mutable _sum = mutable _sum;
}
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