Skip to content

Commit 0701875

Browse files
Clarify that Flux.params updates
I was confused when initally reading the overciew, because I though that `Flux.params` returned a touple of vectors. But it later becomes apparent that it actually returns another data-structure, because it updates when parameters change. I have added a single sentence to clarify this point. Edits on the wording/phrasing are very welcome.
1 parent f8ebead commit 0701875

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/models/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ julia> parameters = Flux.params(predict)
117117
Params([[-0.99009055], [0.0]])
118118
```
119119

120-
These are the parameters Flux will change, one step at a time, to improve predictions. Each of the parameters comes from the `predict` model:
120+
These are the parameters Flux will change, one step at a time, to improve predictions. Each time a parameter in your model changes, the `parameters` variable updates automatically. Each of the parameters comes from the `predict` model:
121121

122122
```
123123
julia> predict.weight in parameters, predict.bias in parameters

0 commit comments

Comments
 (0)