PragmaticBookshelf
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.
- Full details: Machine Learning in Elixir: Learning to Learn with Nx and Axon by Sean Moriarity
- View this book’s portal and details on how to post errata and suggestions here.
Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “devtalk.com" at checkout ![]()
Trending in Books
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex












Showing Posts 31 to 22- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
kodepett
I found a solution Machine Learning in Elixir: Nx.Random.uniform_split wrong arguments 130 - PragProg Customers - Devtalk
Thank you.
Margaret
@kodepett if you don’t mind, could you copy your message over to the book’s errata page on Devtalk and tag the author @seanmor5?
kodepett
Hi all, not sure if this is the right place to post.
On chapter 6, Deep learning, page 128, the snippet uses
uniform_split/2which is undefined.I checked various versions of
Nxjoelpaulkoch
Hi, I think that’s because you’re using a newer version of
axon. Try pinning it as described here.kodepett
I’m just about finishing chapter 1, I barely understand a thing but that’s fine. It’s a new adventure. I had a runtime exception while evaluating the final snippet. Below is the full source code; note the deprecation of the
map %{}parameter. It looks like the an f64 is being used in place of an f32.Output
gilbertbw
I don’t know if this is the right place to ask for a clarification? In chapter 6, when discussing hidden layers the book says:
Is it common to use hidden widths that are powers of 2, rather than just multiples of 2? For example the answers to this question seem to be discussing using a width of 265, 512 or 1024.
ipnon
I have finished Part 1 of Howard’s course in multiple versions and made it halfway through Part II. They cover the same material really, but in reverse order. Moriarty starts with the primitive foundations and builds up to complex applications, whereas Howard does the reverse by having you create an app with his FastAPI library within 5 to 10 minutes, then works backwards until you are creating your own custom deep learning models. Howard has very convincing reasons for this difference in pedagogy, and I think if you have never learned or used in deep learning it’s the best approach. “Practical Deep Learning for Coders” also only covers machine learning, that is methods that don’t use deep learning, tangentially.
So whether you should first learn deep learning in Python, then relearn everything again in Elixir is a matter of time and preference. Howard, in my humble opinion, is really one of the greatest teachers of programming alive today, so it’s hard to not recommend his course when given the opportunity.
alfredfriedrich
Reads like a breeze and goes also deep (looking at you, Chapter 6 ;-). Thank you, I love the editing and overall writing style of the book and the examples you picked to explain something.
josevalim
This page has a summary: Numerical Elixir (Nx) · GitHub
conradwt
I have been experimenting with ML throughout the years and I have been able to complete a few client projects via Python via TensorFlow, Swift via Create ML, and Wolfram via Mathematica. Thus, I was wondering, are there posts and/or articles for making sense of Elixir’s ML package ecosystem?