$ cd $HOME/.node-red$ npm install node-red-contrib-brain
Or globally alongside Node-RED:
sudo npm install -g node-red-contrib-brain
You will need to restart Node-RED for it to pick-up the new nodes.
node-red-contrib-brain is based on brain. You need to see it basic usage at first.
When there is no
brain node will train with
msg.trainData and output
When there is
brain node will not train anymore. Instead, it will directory run
net.run() with your
msg.runData. And output the result in
You could pass a
msg.neuralNetworkOptions to brain node. See brain options doc.