I am trying to make a neural network in node it keeps giving me the error
const brain = require('brain.js') const data = require('./trump.json') const net = new brain.recurrent.LSTM(); const trainingData = data.map(item => ({ input: item.text, output0: item.retweet_count, output1: item.favorite_count })); const trainRes = net.train(trainingData, { iterations: 1000, errorThresh: 0.05, callback: step => console.log(step) }); const output1 = net.run('Barrack Obama's sexy ass'); console.log(`Favorites: ${output1}`);
1.4m articles
1.4m replys
5 comments
56.9k users