update docstring

This commit is contained in:
Lyndon White 2019-03-11 18:40:29 -03:00
parent 025d9b678d
commit 7d247ea25b

View File

@ -150,15 +150,16 @@ end
Maxout(f, n_alts, args...; kwargs...) Maxout(f, n_alts, args...; kwargs...)
Constructs a Maxout layer over `n_alts` instances of the layer given by `f`. Constructs a Maxout layer over `n_alts` instances of the layer given by `f`.
All other arguements (`args` & `kwargs`) are passed to the constructor `f`. The function takes no arguement and should return some callable layer.
Conventionally this is a linear dense layer.
For example the following example which For example the following example which
will construct a `Maxout` layer over 4 dense linear layers, will construct a `Maxout` layer over 4 internal dense linear layers,
each identical in structure (784 inputs, 128 outputs). each identical in structure (784 inputs, 128 outputs).
```julia ```julia
insize = 784 insize = 784
outsie = 128 outsie = 128
Maxout(Dense, 4, insize, outsize) Maxout(()->Dense(insize, outsize), 4)
``` ```
""" """
function Maxout(f, n_alts, args...; kwargs...) function Maxout(f, n_alts, args...; kwargs...)