Data Science And Machine Learning In JavaScript

Subscribe to my newsletter and never miss my upcoming articles

Machine Learning and Data Science in ... JavaScript?! Yes, that's possible. Python is not the only language that you can use to do that.

And here are some JavaScript libraries that will help you to do data science and machine learning with JS. Simply click the images to get to each respective website.

TensorFlow.js

This is TensorFlow, with JS, yep. You'll get the ML TensorFlow experience using your favorite language: JavaScript. It uses some pretty clever tricks, like using WebGL and shader language to make things fast.

TensorFlow.js

ML5js

ML5js is a wrapper around TensorFlow.js that provides an easy-to-use API. It aims at making ML in the browser more accessible to creatives, students, and artists. Definitely worth it if you don't want to deal with low-level details.

ML5js

Danfo.js

Danfo.js is basically Pandas but for JavaScript. It's built on top of TensorFlow and uses tensors under the hood. The experience is pretty great, and if you're comfortable with Pandas, you'll have an easy start here.

Danfo.js

D(anfo)Notebook

Imagine a Jupyter notebook, but for JavaScript, and meant to be used with Danfo.js. That's what DNotebook is.

D(anfo)Notebook

TorchJS

TorchJS provides JS bindings for PyTorch. Its primary purpose is to import and run TorchScripts that have previously been created from Python code, but it also provides an incomplete API to work directly in JavaScript.

TorchJS

ml.js

This is the JavaScript answer to scikit-learn. You'll find anything you could potentially miss from scikit here, as well!

ml.js

Before You Leave

If you liked this article, feel free to visit me on Twitter. I regularly post content there. It is basically the platform where you will find my content first before it lands on my blog or somewhere else.

Comments (3)

Arvind S's photo

Just started learning javascript. Machine learning is far away. First need to get mathematics concepts straight before getting into data science.

Oliver Jumpertz's photo

But if you want to, you'll surely get there! 😊

Arvind S's photo

Oliver Jumpertz

Thank you for your words of inspiration. Yes, with support from the community and hard work, Machine learning should be achievable.