FluxML / Optimisers.jl

Optimisers.jl defines many standard optimisers and utilities for learning loops.
https://fluxml.ai/Optimisers.jl
MIT License
72 stars 20 forks source link

Don't use `state` anywhere for the whole state tree #136

Closed mcabbott closed 1 year ago

mcabbott commented 1 year ago

Doc-only change.

We use state for what init returns, so should probably never use it for what setup returns. That's called tree in code, and this calls it state_tree more places in the docs.

Unsure if we should change headings like Optimisers.update!(tree, model, gradient) -> (tree, model) to the more verbose Optimisers.update!(state_tree, model, gradient) -> (state_tree, model).

Another possibility for docs is to call the whole thing states plural.