Discover “Brain.js”: GPU-accelerated neural networks in JavaScript for browsers and Node.js


Neural networks will now also be available for your browser. Check out this JavaScript library called ‘Brain.js‘ which allows you to deploy a neural network in the browser or on node.js. It uses the computer’s GPU or pure javascript if the GPU is not available to do the calculations. Brain.js has a key advantage: it builds a neural network on top of the most popular web language, which also builds a neural network with surprisingly little code.

While the Creator of brain.js (Robert Plummer) claims it can have unlimited applications. It has been suggested to use the neural network to predict the weather or the stock market or to use it to manage seeds in a farming community. Another note is that Brain.js only works on supervised data and the function for unsupervised data is currently not available. According TheNewStack’s article, Robert also commented that javascript is about as powerful as Python or R in terms of computing power because they use GPU through GLSL, a subset of C++. For this reason, they work very similarly to Python or R.

Brain.js was created in 2016 as an extension of a library known as Brain created in 2014 by Heather Brian, who had to abandon the project due to the effort and complexity it took to maintain it. Where Robert took on the project because he felt like he had never seen neural networks developed in such a simple and understandable way and also states that there is no reason javascript shouldn’t be performative compared to other languages. Since its original release, a lot has changed in the domain of Brain.js, such as the addition of a GPU to help in the calculation types of number calculations. Robert, like Heather, suffers from lack of support and spends what little time he has outside of daily work fixing bugs. He is currently working on reinforcement neural networks that aim to automatically improve by learning over time.


Github link:


A machine learning enthusiast who enjoys researching and learning about new and latest technologies like AlphaFold, DeepMind AlphaZero, etc. daily life

Previous postLawrence Livermore National Laboratory researchers have created an open-source toolkit to perform machine learning on the energy grid


Comments are closed.