Machine LearningLesson 18Free preview
ML Brain.js
This lesson is part of A.I. · All levels
Summary
Brain.js is a JavaScript library that makes it easy to create and train neural networks without complicated configuration. Just set up the array of input and output pairs, and then call net.train(). After training, net.run() is used to predict the output of new inputs, both in browsers and in Node.js.
Key points
- It provides a ready-to-use neural network for JavaScript. (Brain.js)
- Training only requires an array containing input and output objects.
- The iteration options control how many times the network views the data during training.
- Net.run() is used to predict the output of new inputs.
- It can run on both the browser and the backend. (Node.js)
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.