Live data from Hacker News

From Python to Elixir Machine Learning

thestackcanary.com

21–30 of 89 posts

Re: From Python to Elixir Machine Learning

#21

I use Elixir for a long time and wouldn't recommend it for ML over Python. Yes, maybe Elixir has some advantages and solutions for pain points because of VM architecture and other subjective reasons but doesn't come close to what Python offers in terms of tooling, support, community. Also, if you juggle more complex data in Elixir, it's something that you need to get used to coming from Python, it will be much much d…

Have you used Numerical Elixir (Nx)?

Re: From Python to Elixir Machine Learning

#23

I use Elixir for a long time and wouldn't recommend it for ML over Python. Yes, maybe Elixir has some advantages and solutions for pain points because of VM architecture and other subjective reasons but doesn't come close to what Python offers in terms of tooling, support, community. Also, if you juggle more complex data in Elixir, it's something that you need to get used to coming from Python, it will be much much d…

So you wouldn’t recommend it because it’s different than Python?

Re: From Python to Elixir Machine Learning

#24

I wish there wouldn’t be such a song and dance about “moving away from Python”. There’s nothing wrong with creating ML tools in Elixir, but it’s always Python is slow, Python has no concurrency support, blah blah

Those are real issues though.

yes but generally they are not that kind make or break type issues like eg Julia correctness problems.

Re: From Python to Elixir Machine Learning

#25

I use Elixir for a long time and wouldn't recommend it for ML over Python. Yes, maybe Elixir has some advantages and solutions for pain points because of VM architecture and other subjective reasons but doesn't come close to what Python offers in terms of tooling, support, community. Also, if you juggle more complex data in Elixir, it's something that you need to get used to coming from Python, it will be much much d…

Nx solves all of the issues you're citing. That is how you do ML in Elixir

Re: From Python to Elixir Machine Learning

#26

I wish there wouldn’t be such a song and dance about “moving away from Python”. There’s nothing wrong with creating ML tools in Elixir, but it’s always Python is slow, Python has no concurrency support, blah blah

This article in particular doesn't feel like there's any song and dance. The very first line is directed at people already using Elixir who are looking to stay in Elixir-land while getting deeper into ML.

Re: From Python to Elixir Machine Learning

#27
post #2

At first I thought what does Nx (nrwl/nx) has to do with machine learning, then I figured context is about Elixir lib named Nx. Naming things is hard.

Agreed, naming things is hard. That and off by one errors are the three hardest things in software development, IMO.

Re: From Python to Elixir Machine Learning

#28

I use Elixir for a long time and wouldn't recommend it for ML over Python. Yes, maybe Elixir has some advantages and solutions for pain points because of VM architecture and other subjective reasons but doesn't come close to what Python offers in terms of tooling, support, community. Also, if you juggle more complex data in Elixir, it's something that you need to get used to coming from Python, it will be much much d…

What ML tooling is better in Python?

Re: From Python to Elixir Machine Learning

#30

Something not mentioned is Explorer ( https://hexdocs.pm/explorer/Explorer.html ) which is a very nice dataframe library backed by Rusts Polars https://www.pola.rs/ with great integrations for Livebook https://livebook.dev/ .

I found explorer quite frustrating. I've used polars in python and loved it, but I brought in some financial data and couldn't strip off "£" from the start of a string so I could go on to cast it to a number.

As far as I could tell I would have to bring that data into elixir, do the text processing and put it back into explorer, which to me defeated the whole point of a dataframe library.

I imagine it's good for precleaned data, using it with the built in datasets has been fine

Post reply on HN