/books/machine-learning-in-elixir
Active Threads This:
Most Active This Week
Most Active This Month
Most Active This Year
![SlowburnAZ](https://forum.devtalk.com/user_avatar/forum.devtalk.com/SlowburnAZ/120/5272_2.png)
Getting an error when installing the dependencies at the start of this chapter:
could not compile dependency :exla, "mix compile&qu...
New
![ahamez](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Hello @seanmor5 ,
When upgrading Axon to 0.7, evaluation fails with:
** (ArgumentError) argument at position 3 is not compatible with c...
New
![simple](https://forum.devtalk.com/user_avatar/forum.devtalk.com/simple/120/5636_2.png)
Page 226
Mix install uses older versins of exla, should 0.6 to work with cuda120
Page 230
targets pipeline in Data module misses |>...
New
![shawn_leong](https://forum.devtalk.com/user_avatar/forum.devtalk.com/shawn_leong/120/5311_2.png)
Hey @seanmor5 ,
Similar to the errata on deprecation on page 44, on page 128:
Nx.random_uniform({})
|> NeuralNetwork.predict(w1, b1,...
New
![pieteeken](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Comments to Chapter 11 version B 3.0
@seanmor5
The dependencies from chapter 11 gave errors on 10 march 2024.
I followed the advices...
New
![sabiwara](https://forum.devtalk.com/user_avatar/forum.devtalk.com/sabiwara/120/5823_2.png)
Hello @seanmor5! Thanks a lot for the amazing book and new chapter :purple_heart:
I got a couple of errors when trying to run the exampl...
New
![dompdv](https://forum.devtalk.com/user_avatar/forum.devtalk.com/dompdv/120/5456_2.png)
I guess the second log should be : 1-y_pred
New
![simple](https://forum.devtalk.com/user_avatar/forum.devtalk.com/simple/120/5636_2.png)
The batch chunking in the CatsAndDogs module in Chapter 8 misses :discard
Should be in two places:
|> Stream.chunk_every(batch_size,...
New
![tma_1](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
@seanmor5
{:scholar, “~> 0.1”} allows Scholar versions greater than 0.1 to be installed. This means that code on page 106 won’t run b...
New
![Christophe](https://forum.devtalk.com/user_avatar/forum.devtalk.com/Christophe/120/5588_2.png)
Hello @seanmor5 !
On page 180 the link to the onnx model is outdated : https://github.com/onnx/models/blob/main/vision/classification/mo...
New
![rparcus](https://forum.devtalk.com/user_avatar/forum.devtalk.com/rparcus/120/5513_2.png)
Not sure if I did something wrong but it seems like the code should instead be
Scholar.Metrics.Classification.accuracy(test_targets, tes...
New
![glappen](https://forum.devtalk.com/user_avatar/forum.devtalk.com/glappen/120/6082_2.png)
@seanmor5
I am enjoying the book so far, but ran into an Elixir error on the last example in chapter 1:
In my last Livebook cell I have...
New
![pieteeken](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Comments on Chapter 12, Version B 3.0
@seanmor5
All the Axon.Optimizers.adam(…) should be replaced by Polaris.Optimizers.adam( learning_...
New
![pieteeken](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
Comments on chapter 13, version B 3.0
@seanmor5
One advice: build the phoenix from scratch, do not use the version from the example code...
New
![nathanl](https://forum.devtalk.com/user_avatar/forum.devtalk.com/nathanl/120/5954_2.png)
@seanmor5
On p. 41 it says:
For now, you’ll use standardization to scale your data…
then the following code is given
cols = ~w(sepa...
New
Most Active Last Three Years
![martincabrera](https://forum.devtalk.com/user_avatar/forum.devtalk.com/martincabrera/120/5234_2.png)
@seanmor5
The mutate macro from the Explorer.DataFrame variable does not like variables:
It works without the variable:
New
![bdarla](https://forum.devtalk.com/user_avatar/forum.devtalk.com/bdarla/120/860_2.png)
Running the code snippet of Chapter 2 on page 44 of version B1.0, I get the following error:
Evaluation process terminated - an exceptio...
New
![jakesgordon](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jakesgordon/120/5252_2.png)
@seanmor5
I don’t know if there’s much you can do about it, but the SSL certificate for the Wine dataset from archive.ics.uci.edu has an...
New
![shawn_leong](https://forum.devtalk.com/user_avatar/forum.devtalk.com/shawn_leong/120/5311_2.png)
Hey @seanmor5,
I’m having great training accuracy but poor evaluation accuracy for the example in Chapter 1 when following the code in t...
New
![haubie](https://forum.devtalk.com/user_avatar/forum.devtalk.com/haubie/120/5238_2.png)
@seanmor5
For Explorer.Query to access variables defined outside of the query ^ must be used.
Updated in the example below:
cols = ~w(...
New
![adamt](https://forum.devtalk.com/user_avatar/forum.devtalk.com/adamt/120/5246_2.png)
@seanmor5
Title: Machine Learning in Elixir (epub so pages different i think)
From book:
Current output:
Diff:
inputs: %{&qu...
New
![adamt](https://forum.devtalk.com/user_avatar/forum.devtalk.com/adamt/120/5246_2.png)
@seanmor5
In book:
Actual
Diff-ish
Polars[150 x 5]
New
![egutter](https://forum.devtalk.com/user_avatar/forum.devtalk.com/egutter/120/5288_2.png)
Version: B1.0
On page 104 the code:
Scholar.Metrics.confusion_matrix(test_targets, test_preds)
throws an error: required :num_classes ...
New
![pieteeken](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
@seanmor5
Title: Machine Learning in elixir: Some problems with chapter 7 in Version B2.0
On 3 january 2024 I downloaded the Cats & ...
New
![eeide](https://forum.devtalk.com/user_avatar/forum.devtalk.com/eeide/120/5298_2.png)
Some minor nits in the beta version:
“but is often considered it’s own type of machine learning.” → should be “its”
“represents a d...
New
![Chris660](/assets/icons/user-a6c72e79442e77e2a4ab2b0f056eac06d29316214c8a3fda1563c8b881da5388.png)
This didn’t seem right to me:
For instance, you can squeeze the values of a feature between 0 and 1 by dividing every individual featur...
New
![shawn_leong](https://forum.devtalk.com/user_avatar/forum.devtalk.com/shawn_leong/120/5311_2.png)
Hey @seanmor5,
The function given in the book
defn profits(trees) do
trees
|> Nx.pow(4)
|> Nx.negate()
|> Nx.add(Nx.mu...
New
![yannvery](https://forum.devtalk.com/user_avatar/forum.devtalk.com/yannvery/120/5279_2.png)
Version: B1.0
On page 100 (epub version) the code:
model = Scholar.Clustering.KMeans.fit(train_inputs, num_clusters: 3)
throws an er...
New
![egutter](https://forum.devtalk.com/user_avatar/forum.devtalk.com/egutter/120/5288_2.png)
Version: B1.0
On page 103 & 104 where the code example is:
Scholar.Linear.LogisticRegression.fit( train_inputs,
train_targets,
num_...
New
![shawn_leong](https://forum.devtalk.com/user_avatar/forum.devtalk.com/shawn_leong/120/5311_2.png)
Machine Learning in Elixir: Scholar.Clustering.KMeans.fit/2 is undefined (B1.0, Chapter 5, Page 109)
Hey @seanmor5,
On page 109:
model = Scholar.Clustering.KMeans.fit(train_inputs, num_clusters: 3)
results in an UndefinedFunctionError....
New
Most Active Over Three Years
![etnt](https://forum.devtalk.com/user_avatar/forum.devtalk.com/etnt/120/5268_2.png)
Title: Machine Learning in Elixir: Learning to Learn with Nx and Axon (6)
“You will sometimes see surprising due to precision issues.”
...
New
![egutter](https://forum.devtalk.com/user_avatar/forum.devtalk.com/egutter/120/5288_2.png)
Version: B1.0
TL;DR: In page 98 should say two instead of three tensors:
Where it says
Next, you create three random normal tensors: ...
New
![froucoux](https://forum.devtalk.com/user_avatar/forum.devtalk.com/froucoux/120/2526_2.png)
“You will sometimes see surprising … due to precision issues.”
Missing word, maybe “consequences” or “effects” ?
Thanks for the great j...
New
![bobek](https://forum.devtalk.com/user_avatar/forum.devtalk.com/bobek/120/5285_2.png)
Examples in GradFun module will show the following warning with Nx 0.5.3
warning: Nx.Defn.Kernel.inspect_expr/1 is deprecated. Use print...
New
![behe](https://forum.devtalk.com/user_avatar/forum.devtalk.com/behe/120/5384_2.png)
@seanmor5
In the example:
Nx.tensor(0.0000000000000000000000000000000000000000000001)
is said to be 1.0e-45 but it is actually 1.0e-46
New
![Christophe](https://forum.devtalk.com/user_avatar/forum.devtalk.com/Christophe/120/5588_2.png)
@seanmor5
Title: Manchine learning with elixir: description page 106
Scholar.Metrics.accuracy(test_targets, test_preds)
do not work, ...
New
![superchrisnelson](https://forum.devtalk.com/user_avatar/forum.devtalk.com/superchrisnelson/120/5459_2.png)
@seanmor5
When running the code on page 16 to create the one hot encoded tensors, I get an Nx error I am not able to make sense of:
** ...
New
![svarlet](https://forum.devtalk.com/user_avatar/forum.devtalk.com/svarlet/120/5530_2.png)
Hi @seanmor5 ,
I’m reading the book and editing a livebook in parallel as suggested. I’m facing an error while executing the last code s...
New
![baskint](https://forum.devtalk.com/user_avatar/forum.devtalk.com/baskint/120/5632_2.png)
@seanmor5
Looks like the Nx.Random.uniform_split has been changed with /3 and /4 arity, so the current /2 arity call does not work.
How...
New
![raulintosh](https://forum.devtalk.com/user_avatar/forum.devtalk.com/raulintosh/120/5571_2.png)
@seanmor5
In page 66
you don’t need to have an intimiate under-
standing of these concepts.
Must be intimate
New
![baskint](https://forum.devtalk.com/user_avatar/forum.devtalk.com/baskint/120/5632_2.png)
@seanmor5
On Page 294, cannot run the training loop. I think the Axon.Loop.handle signature has changed. Getting this error:
step_fn
|&...
New
![f0rest8](https://forum.devtalk.com/user_avatar/forum.devtalk.com/f0rest8/120/2321_2.png)
@seanmor5
Use of Nx.Random.uniform_split/2 I think should be Nx.Random.uniform_split/4, e.g.:
Nx.Random.uniform_split(new_key, 0, 1, sh...
New
![zacksiri](https://forum.devtalk.com/user_avatar/forum.devtalk.com/zacksiri/120/5127_2.png)
@seanmor5
When I try the
Nx.Random.uniform_split(new_key, split: {}) function in page 130 I got an undefined function error
** (Undefin...
New
![cadebward](https://forum.devtalk.com/user_avatar/forum.devtalk.com/cadebward/120/5872_2.png)
@seanmor5
While you might see some tasks thrown into it distinct categories
I think we’re missing something here, like “it[s] own dis...
New
![jshprentz](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jshprentz/120/5389_2.png)
The model training loop on page 273 should visualize the model output after each epoch. Instead, an argument error is reported after the ...
New
Book Info
Publisher:
Pragmatic Bookshelf
Are you this book's author? To be notified of all posts made about it, sign up an account then click here, then select 'watching' from the bell icon in the top right corner.
Get money off!
![](/assets/discounts/logo-pragprog-e2f9c555cf054b1bd6bf9875d757a13d9eb4abb8313ffa439feabaf3ed463947.png)
The Pragmatic Bookshelf
35% off any eBook
Simply use coupon code "devtalk.com" at checkout. See full details here.