-
-
Notifications
You must be signed in to change notification settings - Fork 612
Better docs for reexported packages #2046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
111ee92
7b03e51
2fe8c10
82f8d81
5974f30
76902d9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# MLUtils.jl | ||
# Working with data using MLUtils.jl | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't comment below, but https://fluxml.ai/Flux.jl/latest/models/layers/#Flux.flatten Should it be removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, yes! Thanks! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correction: |
||
|
||
Flux re-exports the `DataLoader` type and utility functions for working with | ||
data from [MLUtils](https://github.com/JuliaML/MLUtils.jl). | ||
|
@@ -7,6 +7,8 @@ data from [MLUtils](https://github.com/JuliaML/MLUtils.jl). | |
|
||
`DataLoader` can be used to handle iteration over mini-batches of data. | ||
|
||
`Flux`'s website has a [dedicated tutorial](https://fluxml.ai/tutorials/2021/01/21/data-loader.html) on `DataLoader` for more information. | ||
|
||
```@docs | ||
MLUtils.DataLoader | ||
``` | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
# Functors.jl | ||
# Recursive transformations from Functors.jl | ||
|
||
Flux makes use of the [Functors.jl](https://github.com/FluxML/Functors.jl) to represent many of the core functionalities it provides. | ||
Flux models are deeply nested structures, and [Functors.jl](https://github.com/FluxML/Functors.jl) provides tools needed to explore such objects, apply functions to the parameters they contain, and re-build them. | ||
|
||
Functors.jl is a collection of tools designed to represent a [functor](https://en.wikipedia.org/wiki/Functor_(functional_programming)). Flux makes use of it to treat certain structs as functors. Notable examples include the layers that Flux defines. | ||
New layers should be annotated using the `Functors.@functor` macro. This will enable [`params`](@ref Flux.params) to see the parameters inside, and [`gpu`](@ref) to move them to the GPU. | ||
|
||
`Functors.jl` has its own [notes on basic usage](https://fluxml.ai/Functors.jl/stable/#Basic-Usage-and-Implementation) for more details. | ||
|
||
```@docs | ||
Functors.@functor | ||
Functors.fmap | ||
Functors.isleaf | ||
Functors.children | ||
Functors.fcollect | ||
Functors.functor | ||
Functors.@functor | ||
Functors.fmap | ||
Functors.fmapstructure | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more thought. Should Zygote.jl be among the packages which gets a sidebar heading?