Skip to content

Commit

Permalink
fix typo in code
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Jun 21, 2024
1 parent a24ea9b commit 970f368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/blog/learning-machine-learning-in-elixir.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ dataset =

scaler = Scholar.Preprocessing.StandardScaler.fit(dataset)

normalized = Scholar.Preprocessing.StandardScaler.fit(scaler, dataset)
normalized = Scholar.Preprocessing.StandardScaler.transform(scaler, dataset)
```

What I want to highlight here is the `fit` part generates the `mean` and `standard_deviation` for you based on the dataset you pass in. This will be necessary when you do inference after training the model. It's important to store this state somewhere. With scholar you can also simply use `Scholar.Preprocessing.StandardScaler.fit_transform(dataset)` if you are sure you won't need the scaler.
Expand Down

0 comments on commit 970f368

Please sign in to comment.