Published
Edited
Apr 12, 2022
Insert cell
Insert cell
{
try {
const net = new brain.NeuralNetworkGPU();
return net.train([
{ input: [1, 0], output: [1], },
{ input: [0, 0], output: [0], },
{ input: [1, 1], output: [0], },
{ input: [0, 1], output: [1], },
]);
} catch (e) {
return e;
}
}
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