Machine Learning in Elixir (PragProg)

Sean Moriarity @seanmor5

edited by Tammy Coron @Paradox927

Stable Diffusion, ChatGPT, Whisper—these are just a few examples of incredible applications powered by developments in machine learning. Despite the ubiquity of machine learning applications running in production, there are only a few viable language choices for data science and machine learning tasks. Elixir’s Nx project seeks to change that. With Nx, you can leverage the power of machine learning in your applications, using the battle-tested Erlang VM in a pragmatic language like Elixir. In this book, you’ll learn how to leverage Elixir and the Nx ecosystem to solve real-world problems in computer vision, natural language processing, and more.

The Elixir Nx project aims to make machine learning possible without the need to leave Elixir for solutions in other languages. And even if concepts like linear models and logistic regression are new to you, you’ll be using them and much more to solve real-world problems in no time.

Start with the basics of the Nx programming paradigm—how it differs from the Elixir programming style you’re used to and how it enables you to write machine learning algorithms. Use your understanding of this paradigm to implement foundational machine learning algorithms from scratch. Go deeper and discover the power of deep learning with Axon. Unlock the power of Elixir and learn how to build and deploy machine learning models and pipelines anywhere. Learn how to analyze, visualize, and explain your data and models.

Discover how to use machine learning to solve diverse problems from image recognition to content recommendation—all in your favorite programming language.


Sean Moriarity is author of Genetic Algorithms in Elixir: Solve Problems using Evolution, co-creator of the Nx library, and creator of the Axon deep learning framework. Sean’s interests include mathematics, machine learning, and artificial intelligence.


Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “devtalk.com" at checkout :+1:

43 Likes

Oh man. I just spent my book budget without knowing this was on the way. I’m going to be following up the Genetic Algorithms book with Mazes for Programmers, thinking that might be training ground for some genetic algorithm practice. But this book looks really great. Maybe Santa Claus will think I’ve been a good boy this year.

4 Likes

The site says: Not currently available for purchase
Am I missing anything?

1 Like

Now it is available…

2 Likes

Perfect timing for me - just picked it up. Thanks! Love all the PragProg books I’ve read thus far.

1 Like

Great timing of the summer vacations!

1 Like

This is incredible! Instabuy

2 Likes

My 3090 arrived today too, a good combination. That’s my weekend sorted.

1 Like

Can I steal this for promotion? And can I use your name? What attribution would you like?

2 Likes

Sure you can! :+1:
Govard Barkhatov, front-end developer :sunglasses:

2 Likes

Awesome! Got

1 Like

It is from scratch or it needs to be expert in another language and main concept of ml?
thanks

1 Like

Hey @shahryarjb, I haven’t made it through the Preface yet but it does write the following here. Hope it helps

This book is for programmers interested in learning machine learning in Elixir
and programmers with prior Elixir or machine learning experience.

Elixir programmers can pick up and read this book with no prerequisite
knowledge of machine learning, mathematics, or numerical computing, as
this book will teach you everything you need to know from the basics on.

Programmers with machine learning experience but no Elixir experience will
be able to follow along, but some syntactic details and functional concepts
might seem unfamiliar. If you fit into this category, I recommend keeping the
Elixir documentation handy to reference some language details that this book
omits.

If you have no machine learning or Elixir experience, then learning both Elixir
and machine learning at the same time will be a difficult task. Therefore, I
recommend getting familiar with Elixir first and then returning to this book
to learn machine learning in Elixir.

6 Likes

Can’t tell you how much kind words mean to both the author and to helping the book. Thank you!

The social media with this will go live in a few hours

8 Likes

You guys are the best publisher in the whole code world. No matter what book I choose. The content, edits and overall stuff is awesome :sunglasses:

8 Likes

Purchased this book last night. Can’t wait to dive into the world of ML with Elixir.

1 Like

This is really amazing, to do machine learning other than Python. :slight_smile:

1 Like

Hi, I was wondering, is there any coverage of using Apple Silicon for GPU training here? Or ML model conversion Axon/Nx ↔ CoreML or Axon/Nx ↔ TensorFlow?

2 Likes

Congrats Sean, looks like this is going to be another hit.

A spotlight with Sean has just gone up on Devtalk as well - if you comment or ask a question you get a chance to win one of his books!

4 Likes

I’ve been doing software development for 25 years now and have never before felt so lost and behind as when it comes to AI. I tried poking around Hugging Face and just have absolutely no idea what is going on.

Will this book help navigate that world? Also, is it possible to quantize and fine tune foundation models using Elixir and these libraries like Nx and Axon (I’m not even sure I’m using the proper terminology here)?

Thanks for the info!

7 Likes