# Machine Learning in Elixir (PragProg)

**URL:** <https://forum.devtalk.com/t/machine-learning-in-elixir-pragprog/116850>\
**Category:** Backend Learning Resources\
**Tags:** nx, book-machine-learning-in-elixir, published-book, pragprog, elixir, machine-learning\
**Created:** [18 July 2023 20:09 UTC](https://forum.devtalk.com/t/machine-learning-in-elixir-pragprog/116850 "2023-07-18T20:09:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![PragmaticBookshelf](https://forum.devtalk.com/user_avatar/forum.devtalk.com/pragmaticbookshelf/32/463_2.png) [@PragmaticBookshelf](https://forum.devtalk.com/u/PragmaticBookshelf)\
**Post date:** [18 July 2023 20:09 UTC](https://forum.devtalk.com/t/machine-learning-in-elixir-pragprog/116850/1 "2023-07-18T20:09:33Z")

</div>

Leverage Elixir and the Nx ecosystem to build intelligent applications that solve real-world problems in computer vision, natural language processing, and more.

 ![smelixir-500](https://forum.devtalk.com/uploads/default/original/2X/c/c23adcea34a7411257838d6cf639f90220f0919e.jpeg)

### 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](https://pragprog.com/titles/smgaelixir/genetic-algorithms-in-elixir/), co-creator of the Nx library, and creator of the Axon deep learning framework. Sean’s interests include mathematics, machine learning, and artificial intelligence.

* * *

- Full details: [Machine Learning in Elixir: Learning to Learn with Nx and Axon by Sean Moriarity](https://pragprog.com/titles/smelixir/machine-learning-in-elixir/)
- View this book’s portal and details on how to post errata and suggestions [here](https://devtalk.com/books/machine-learning-in-elixir).

_Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “ **devtalk.com**" at checkout 👍_

---

<div class="post-metadata">

**Author:** ![apsori](https://forum.devtalk.com/user_avatar/forum.devtalk.com/apsori/32/6666_2.png) [@apsori](https://forum.devtalk.com/u/apsori)\
**Post date:** [19 July 2023 11:45 UTC](https://forum.devtalk.com/t/machine-learning-in-elixir-pragprog/116850/2 "2023-07-19T11:45:46Z")

</div>

It is really nice that you can do machine learning in Elixir. I only have experience using Python, so I am really interested in this book.

---

<div class="post-metadata">

**Author:** ![faust](https://forum.devtalk.com/user_avatar/forum.devtalk.com/faust/32/6673_2.png) [@faust](https://forum.devtalk.com/u/faust)\
**Post date:** [19 July 2023 17:43 UTC](https://forum.devtalk.com/t/machine-learning-in-elixir-pragprog/116850/3 "2023-07-19T17:43:52Z")

</div>

Nice one, it’s good to see that Elixir is embracing pretty much every area of development, from web to Machine Learning, passing even by desktop …

---

<div class="post-metadata">

**Author:** ![jkdiaz](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/j/dbc845/32.png) [@jkdiaz](https://forum.devtalk.com/u/jkdiaz)\
**Post date:** [19 July 2023 23:55 UTC](https://forum.devtalk.com/t/machine-learning-in-elixir-pragprog/116850/4 "2023-07-19T23:55:54Z")

</div>

So does mean that training a model with Elixir/Nx/Axon will be much faster compared to Python?

---

<div class="post-metadata">

**Author:** ![redrapids](https://forum.devtalk.com/user_avatar/forum.devtalk.com/redrapids/32/5148_2.png) [@redrapids](https://forum.devtalk.com/u/redrapids)\
**Post date:** [20 July 2023 11:52 UTC](https://forum.devtalk.com/t/machine-learning-in-elixir-pragprog/116850/5 "2023-07-20T11:52:40Z")

</div>

Congratulations, Sean! This accomplishment is so much more than just writing the book.

---

<div class="post-metadata">

**Author:** ![conradwt](https://forum.devtalk.com/user_avatar/forum.devtalk.com/conradwt/32/778_2.png) [@conradwt](https://forum.devtalk.com/u/conradwt)\
**Post date:** [28 August 2023 09:15 UTC](https://forum.devtalk.com/t/machine-learning-in-elixir-pragprog/116850/6 "2023-08-28T09:15:22Z")

</div>

Yes, I’m starting to learn more about the machine learning tooling within the Elixir ecosystem. Thus, this book is definitely on my must-read list.

---

<div class="post-metadata">

**Author:** ![MainKt](https://forum.devtalk.com/user_avatar/forum.devtalk.com/mainkt/32/6485_2.png) [@MainKt](https://forum.devtalk.com/u/MainKt)\
**Post date:** [8 November 2024 16:16 UTC](https://forum.devtalk.com/t/machine-learning-in-elixir-pragprog/116850/7 "2024-11-08T16:16:34Z")

</div>

I started the book few days ago, and it’s amazing 😍. I was never interested in machine learning before, just picked the book out of curiosity and am enjoying it very much.

---

<div class="post-metadata">

**Author:** ![jss](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/j/cdc98d/32.png) [@jss](https://forum.devtalk.com/u/jss)\
**Post date:** [8 November 2024 22:13 UTC](https://forum.devtalk.com/t/machine-learning-in-elixir-pragprog/116850/8 "2024-11-08T22:13:04Z")

</div>

I wish more ML stuff specially related to LLMs will be written in Elixir instead of Python 🙂
