Published
Edited
May 24, 2020
Insert cell
Insert cell
{
const obj1 = {xyz: 1, a1: 0, a2: 1};
const obj2 = {xyz: 1, a1: 0, a2: 1};
const obj3 = {xyz: 1, a1: 0, a2: 0};
const trainingData = [obj1,obj2,obj3];
const lstm = new brain.recurrent.LSTMTimeStep();
const result = lstm.train(trainingData, {
iterations: 100,
log: true,
errorThresh: 0.011
});
return result;
}
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