Google’s Deeplearn.js comes to the rescue of machine learning aficionados
© Shutterstock / Holmlund
It’s a machine learning’s world! Kevlin Henney, independent consultant and trainer told JAXenter earlier this year that “machine learning is taking us in a new direction.” You may or may not agree with him but one thing’s sure: machine learning is here to stay and we’ve only scratched the surface.
Earlier this month, IBM released Watson Machine Learning for a general audience and, before that, Tensorflow brought machine learning to mobile devices. Stack Overflow did some digging and found that DevOps and machine learning specialists are the best paid so it goes without saying that those with machine learning skills hold the power — and the money.
Deeplearn.js brings machine learning into the browser
Thorat and Smilkov, both software engineers in the Big Picture team at Google revealed in a blog post announcing deeplearn.js 0.1.0 that “a client-side ML library can be a platform for interactive explanations, for rapid prototyping and visualization, and even for offline computation. And if nothing else, the browser is one of the world’s most popular programming platforms.”
The software engineers explained that the API imitates the structure of TensorFlow and NumPy, with a delayed execution model for training (like TensorFlow), and an immediate execution model for inference (like NumPy).
We have also implemented versions of some of the most commonly-used TensorFlow operations. With the release of deeplearn.js, we will be providing tools to export weights from TensorFlow checkpoints, which will allow authors to import them into web pages for deeplearn.js inference.
If you’d like to see what this library can do, you’ll be happy to learn that you can train a convolutional neural network to recognize photos and handwritten digits. The best part? Everything is done in the comfort of your browser without writing a single line of code.
The library can be used for everything from education, to model understanding, to art projects. Head on over to the deeplearn.js website to look at the demos that show this library in action.