Published
Edited
Apr 13, 2022
Insert cell
Insert cell
{
const net = new brain.recurrent.LSTMTimeStep({
inputSize: 2,
hiddenLayers: [10],
outputSize: 2,
})
net.train([[1, 3], [2, 2], [3, 1]])
return net.run([[1, 3], [2, 2]]); // [3, 1]
}
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