Commit Graph

2644 Commits

Author SHA1 Message Date
Yao Lu 7d6f711c6f Merge branch 'master' into clip 2020-04-25 22:18:58 +08:00
bors[bot] 9237cdaf5b
Merge #901
901: Add option for "Same" padding to conv and pooling layers r=dhairyagandhi96 a=DrChainsaw

Fixes #813 

This adds the possibility to set "pad=SamePad()" to automatically calculate the amount of padding to apply so that outputsize==inputsize (assuming stide == 1).

Comments on API more than welcome. I considered the following options:

* Call the type just Same and export it, but I was afraid to cause name collisions due to a too generic name
* Call the type Same and not export it
* Dispatch on type instead of instance (so that one can type pad=Same instead of pad=Same())
* Supply a method instead of a type, giving a similar API as above. 

Happy to change to any of the above or to anything else.

I don't think that same padding is common for pooling layers, but I added it just for the sake of consistency. It is a separate commit so it can easily be removed if not wanted.

Co-authored-by: DrChainsaw <Christian.kyril.skarby@gmail.com>
2020-04-25 04:39:18 +00:00
DrChainsaw 4e4f6d9d1f Change next version entry to 0.10.5 2020-04-24 22:07:57 +02:00
DrChainsaw deff98812a Add v0.11.0 entry and added samepadding option 2020-04-24 21:59:02 +02:00
DrChainsaw 1544f84bb9 Fix merge conflicts 2020-04-24 21:56:26 +02:00
Yao Lu 58a72ec879 Merge branch 'master' of https://github.com/FluxML/Flux.jl into clip 2020-04-22 01:29:13 +08:00
Yao Lu c4f5e83697 resolve conflict 2020-04-22 01:24:13 +08:00
Yao Lu 1dfec7f38b add test 2020-04-22 01:22:34 +08:00
Yao Lu def19b058e simplify docstrings 2020-04-21 10:56:38 +08:00
Yao Lu cc1dcd5590 rm requires 2020-04-20 20:02:29 +08:00
Yao Lu 68b84bba36 add LinearAlgebra 2020-04-20 19:54:44 +08:00
Yao Lu ba0fca5a19 remove onehot 2020-04-20 19:45:15 +08:00
Yao Lu b33c4b49be add ClipValue and ClipNorm 2020-04-20 19:41:10 +08:00
Yao Lu 427c55af92 speedup matmul of CuMatrix and OneHotMatrix 2020-04-20 19:11:57 +08:00
bors[bot] cdada06472
Merge #1131
1131: Update glorot_normal doc r=dhairyagandhi96 a=AdarshKumar712

Just a minute correction in glorot_normal function doc.

Co-authored-by: Adarsh Kumar <45385384+AdarshKumar712@users.noreply.github.com>
2020-04-18 00:58:49 +00:00
Adarsh Kumar d53deb9132
Update glorot_normal doc 2020-04-18 03:19:32 +05:30
bors[bot] d49d121a65
Merge #1127
1127: Removed deprecated SGD exports r=dhairyagandhi96 a=bhvieira

Closes #1121 

Co-authored-by: Bruno Hebling Vieira <bruno.hebling.vieira@usp.br>
2020-04-16 13:28:00 +00:00
Bruno Hebling Vieira 2c9881bca6 Merge branch 'master' into removeSGD 2020-04-16 09:56:38 -03:00
Bruno Hebling Vieira db99e41959 Removed SGD exports 2020-04-16 09:50:41 -03:00
Mike J Innes a35335db00 update for functors.jl change 2020-04-14 15:21:45 +01:00
Mike J Innes 6eda279190 split out functor 2020-04-14 13:58:52 +01:00
bors[bot] 32e2435729
Merge #1123
1123: Fix doc indent r=dhairyagandhi96 a=matsueushi

Fix [docs for `update!`](https://fluxml.ai/Flux.jl/stable/training/optimisers/#Flux.Optimise.update!).

Co-authored-by: matsueushi <matsueushi@gmail.com>
2020-04-14 04:20:30 +00:00
matsueushi be92618473 Fix doc indent 2020-04-14 00:12:06 -04:00
bors[bot] 7a32a703f0
Merge #853
853: Improve docs r=CarloLucibello a=janEbert

If you disagree with any of the changes, please tell me what to reverse or fix.
I am unsure about the docstrings I added to `src/utils.jl` for `unsqueeze` and
the `[un]stack` functions so please give those a more detailed look.

Update Documenter.jl version for new features, fix deprecation warnings in
`docs/make.jl` and import Flux for all doctests.
Add missing docstrings to `src/utils.jl`, `src/layers/stateless.jl` and `src/data/`; add
these and other missing functions to Markdown docs.

Improve docstrings by...
   - fixing typos,
   - removing trailing or double whitespaces,
   - using `jldoctest` blocks where applicable,
   - fixing, updating or correctly setting up existing doctests,
   - improving consistency (for example, always use "# Examples" instead
     of other variants),
   - removing empty lines between docstrings and functions,
   - instead of mentioning keywords, put them into the docstring,
   - adding some missing but useful keywords,
   - adding references (`@ref`),
   - using LaTeX math where applicable, and
   - linking papers.

Debatable stuff that is untouched:
   - BE/AE s/z irregularities (e.g. "normalise" versus "normalize") since
     most papers use the AE version while the Flux source code was
     written with BE spelling.
   - Names of normalization functions are capitalized
     ("Batch Normalization" instead of "batch normalization").
   - Default values in argument lists have spaces around the equals sign (`arg = x` instead of `arg=x`).

Co-authored-by: janEbert <janpublicebert@posteo.net>
2020-04-06 13:47:42 +00:00
bors[bot] a9f8250b43
Merge #1110
1110: fix tests and new version r=CarloLucibello a=CarloLucibello

Add to set the Boston Housing dataset tests as broken due to as SSL certificate expiration problem wich is not our fault

Co-authored-by: Carlo Lucibello <carlo.lucibello@gmail.com>
2020-04-06 13:27:58 +00:00
janEbert 684570660a Update doctest version guard (1.2 -> 1.4)
And add the same to docs/make.jl
2020-04-06 13:53:36 +02:00
janEbert 0e9bc82626 Loss -> Loss Functions 2020-04-06 13:52:27 +02:00
Carlo Lucibello c54d71ce56 update travis 2020-04-06 13:20:28 +02:00
Carlo Lucibello d6cb9f055d fix housing download 2020-04-06 11:08:20 +02:00
Carlo Lucibello f9e9710446 update travis and bound julia version 2020-04-06 09:35:34 +02:00
Carlo Lucibello 18ea480388 fix tests and new version 2020-04-06 09:26:38 +02:00
janEbert 2a65a30399 Fix doctests in runtests.jl 2020-04-05 13:58:27 +02:00
janEbert 8d2d15aa70 Remove links to OneHot{Vector,Matrix}
Since they aren't documented, we only get a 404 link.
2020-04-04 23:06:56 +02:00
janEbert 73d631f5cd Fix and improve docs
Add missing docstrings, improve existing ones, fix links to functions
or files.
2020-04-04 23:00:34 +02:00
janEbert 2ce5f6d9bf Further docstring improvements in src/
Some had to be re-done after the rebase
2020-04-04 22:59:45 +02:00
janEbert 64ce32ddcf Fix problems due to rebase 2020-04-04 22:55:14 +02:00
janEbert e16c24a9b8 General minuscule improvements 2020-04-04 19:43:28 +02:00
janEbert a614983e0b Improve parameter lists in optimisers.jl 2020-04-04 18:40:20 +02:00
janEbert aaa0a82b74 Slight modifications in `recurrent` docstrings 2020-04-04 18:21:10 +02:00
janEbert 3b913cd501 Fix rebase changes
- Remove `Flux.testmode!` reference (the function no longer exists).
- Change TrackedArray to Array in doctest (Tracker -> Zygote).
2020-04-04 18:21:10 +02:00
janEbert ff9198b939 Add datasets to docs
All the relevant functions. Perhaps discuss a consistent API, describe
it in the docs and then only document the modules.
2020-04-04 18:19:20 +02:00
janEbert 740a59d0a6 Add missing docstrings to `src/data`. 2020-04-04 18:16:46 +02:00
janEbert ba80c2e8ab Improve whitespaces in docs 2020-04-04 18:16:46 +02:00
janEbert ab86e350f2 Improve docstrings
Improvements like...
   - fixing typos,
   - removing trailing and double whitespaces,
   - using `jldoctest` blocks where applicable,
   - fixing, updating or correctly setting up existing doctests,
   - improving consistency (for example, always use "# Examples" instead
     of other variants),
   - removing empty lines between docstrings and functions,
   - instead of mentioning keywords, put them into the docstring,
   - adding some missing but useful keywords,
   - adding references (`@ref`),
   - using LaTeX math where applicable, and
   - linking papers.

Debatable stuff that is untouched:
   - BE/AE s/z irregularities ("normalise" versus "normalize") since
     most papers use the AE version while the Flux source code was
     written with BE spelling.
   - Names of normalization functions are capitalized
     ("Batch Normalization" instead of "batch normalization").
2020-04-04 18:16:46 +02:00
janEbert c76b7315ac Add loss and utility functions to docs 2020-04-04 17:39:19 +02:00
janEbert c222e1b124 Add missing docstrings to `src/utils.jl`
Not sure about the `stack`, `unstack` and `unsqueeze` functions.
2020-04-04 17:38:25 +02:00
janEbert 2f955a33cd `src/layers/stateless.jl`: Add missing docstrings 2020-04-04 17:36:23 +02:00
janEbert 9b68423e64 Import (`using`) Flux for all doctests 2020-04-04 17:22:08 +02:00
janEbert 1bf8dc2d5b Update Documenter version and fix warnings
0.23.2 -> 0.23.3
2020-04-04 17:22:08 +02:00
bors[bot] 6b37ce3986
Merge #1098
1098: Allow CuArrays v2.x r=dhairyagandhi96 a=ararslan



Co-authored-by: Tim Besard <tim.besard@gmail.com>
Co-authored-by: Alex Arslan <ararslan@comcast.net>
Co-authored-by: Dhairya Gandhi <dhairya@juliacopmuting.com>
2020-03-26 09:43:21 +00:00