# Machine Learning in Elixir: Chapter 1 doesn't work with Axon 0.7 (page 26)

**URL:** <https://forum.devtalk.com/t/machine-learning-in-elixir-chapter-1-doesnt-work-with-axon-0-7-page-26/173984>\
**Category:** PragProg Customers\
**Tags:** book-machine-learning-in-elixir, errata\
**Created:** [15 October 2024 16:31 UTC](https://forum.devtalk.com/t/machine-learning-in-elixir-chapter-1-doesnt-work-with-axon-0-7-page-26/173984 "2024-10-15T16:31:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nunez](https://forum.devtalk.com/user_avatar/forum.devtalk.com/nunez/32/6696_2.png) [@nunez](https://forum.devtalk.com/u/nunez)\
**Post date:** [29 October 2024 18:05 UTC](https://forum.devtalk.com/t/machine-learning-in-elixir-chapter-1-doesnt-work-with-axon-0-7-page-26/173984/3 "2024-10-29T18:05:04Z")

</div>

Cool! I updated it at the dataframe level since Nx still scares me.

```auto
cols = ~w(sepal_width sepal_length petal_length petal_width)

normalized_iris =
  DF.mutate(
    iris,
    for col <- across(^cols) do
      {col.name, Explorer.Series.cast((col - mean(col)) / standard_deviation(col), :f32)}
    end
  )

```

---

_[View the full topic](https://forum.devtalk.com/t/machine-learning-in-elixir-chapter-1-doesnt-work-with-axon-0-7-page-26/173984)._
