Chapter 1 error in Machine Learning in Elixir: [warning] passing parameter map to initialization is deprecated

Hi, I’m pretty sure this is because of the Axon version.

You can fix the actual version like this (described here):

Mix.install([
  {:axon, "== 0.5.1"},
  {:nx, "~> 0.5"},
  {:explorer, "~> 0.5"},
  {:kino, "~> 0.8"}
])

Note that you must specify the exact version this way.
Can you try that and report back if it works?

In case you’re wondering, there are some changes in Axon from time to time since it’s pre 1.0 but the basic ideas remain the same, so I think it’s still worth following the examples in version 0.5, you can catch up afterwards.

6 Likes