Relax! Flux is the ML library that doesn't make you tensor
Go to file
bors[bot] 0287abbf66
Merge #1166
1166: Fix crossentropy when some probabilities are zero r=dhairyagandhi96 a=cossio

Use a function `xlogy(x,y) = x * log(y)` that has the correct limit at `x=0`.

Before this PR:

```julia
julia> Flux.crossentropy([0.1,0.0,0.9], [0.1,0.0,0.9])
NaN
```

After this PR:

```julia
julia> Flux.crossentropy([0.1,0.0,0.9], [0.1,0.0,0.9])
0.3250829733914482
```

Co-authored-by: cossio <j.cossio.diaz@gmail.com>
2020-05-08 11:14:31 +00:00
.github Merge pull request #1030 from JuliaTagBot/master 2020-02-19 21:47:31 +05:30
docs add correct overload for apply in docs 2020-05-03 16:56:39 +05:30
paper use https instead of http for web links 2019-04-25 11:04:03 +00:00
src NaN 2020-05-07 12:44:32 +02:00
test NaN 2020-05-07 12:44:32 +02:00
.gitattributes Restore purity 2019-09-08 16:15:35 +01:00
.gitignore modernize documentation 2019-01-10 15:06:11 +01:00
.gitlab-ci.yml test on julia 1.3+ 2020-01-13 13:45:40 +05:30
.travis.yml yaml syntax fix 2020-05-04 18:01:33 +05:30
CITATION.bib Create CITATION.bib 2019-05-04 18:49:19 -04:00
LICENSE.md Update LICENSE.md 2019-04-15 16:59:16 -04:00
Manifest.toml fix tests and new version 2020-04-06 09:26:38 +02:00
NEWS.md Change next version entry to 0.10.5 2020-04-24 22:07:57 +02:00
Project.toml bump version 2020-05-08 12:57:34 +02:00
README.md Update README.md 2019-12-19 09:44:17 -05:00
bors.toml bump version to 10.1 2020-01-13 13:41:25 +05:30

README.md

Build Status DOI

Flux is an elegant approach to machine learning. It's a 100% pure-Julia stack, and provides lightweight abstractions on top of Julia's native GPU and AD support. Flux makes the easy things easy while remaining fully hackable.

] add Flux

See the documentation or the model zoo for examples.

If you use Flux in your research, please cite our work.