PragmaticBookshelf

PragmaticBookshelf

Forum Sponsor

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:

Most Liked

josevalim

josevalim

Creator of Elixir

If it is of any help, I am deep into AI in the last 2 years and I still can’t understand most Hugging Face projects. But I think that’s ok: I also don’t understand most of what is on GitHub, except for things written in certain languages, like Elixir or Erlang.

Therefore, the book will give you similar context. It is unlikely you will fully grasp any Hugging Face model, but there are certain models, architectures, and problems that will make a lot more sense once you read it.

Unfortunately there is no quantization at the moment but we are working on it. You can fine-tune models and one of the chapters discuss it, but you will most likely need a GPU and that’s one particular area we want to further improve the UX on.

pragprog

pragprog

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

gbarkhatov

gbarkhatov

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:

cjbottaro

cjbottaro

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!

shawn_leong

shawn_leong

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.

Where Next?

Popular in Books Top

New
meraj_enigma
New book from Packt publication that goes into teaching how to write a web framework using Elixir. About this book Elixir’s functional...
New
PragmaticBookshelf
Frank Hunleth @fhunleth Bruce A. Tate @redrapids edited by Jacquelyn Carter @jkcarter Want to get better at coding Elixir? Write a har...
New
PragmaticBookshelf
Bruce Tate @redrapids edited by Jacquelyn Carter @jkcarter OTP is the heart of the rapidly growing Elixir, the functional language at th...
New
PragmaticBookshelf
Andrea Leopardi @whatyouhide edited by Jacquelyn Carter @jkcarter TCP, UDP, DNS, HTTP, and more: these are the network protocols that ma...
New
AstonJ
https://www.packtpub.com/sites/default/files/B04907_MockupCover_Normal.jpg by Kenny Ballou Elixir, based on Erlang’s virtual machine a...
New
PragmaticBookshelf
Stephen Bussey @sb8244 edited by Jacquelyn Carter @jkcarter Elixir will change the way you think about programming. Use your Ruby experi...
New
AstonJ
By Francesco Cesarini, Simon Thompson This book is an in-depth introduction to Erlang, a programming language ideal for any situation wh...
New
benwilson512
by Bruce Williams and Ben Wilson Your domain is rich and interconnected, and your API should be too. Upgrade your web API to GraphQL, le...
New
AstonJ
by Lance Halvorsen Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web application...
460 27162 124
New

Other popular topics Top

srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 27727 240
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
magnetic
Hey :wave:t3: Elixir community, I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New

We're in Beta

About us Mission Statement