https://github.com/GPflow/GPflow
Revision 5f2a6d406184cfd64e4add305f03f2b3090234f4 authored by Adrià Garriga on 16 January 2018, 12:01:37 UTC, committed by Mark van der Wilk on 16 January 2018, 12:01:37 UTC
* Gradient of `sqrt(RBF(Z, Z))` no longer NaN Before this commit, `Kmms = sqrt(exp(-1/x)) = exp(-1/(2x))`. These two expressions are equivalent mathematically. However, they are not equivalent when it comes to computing finite-precision gradients (dKmms/dx) via backpropagation when `Kmms**2 == 0.0`. Thus, we change sqrt(exp(-1/x)) to exp(-1/(2x)). This solves #595 in the expectations framework. * Removed test for NaN gradients of eKxzKz
1 parent a75f24a
Tip revision: 5f2a6d406184cfd64e4add305f03f2b3090234f4 authored by Adrià Garriga on 16 January 2018, 12:01:37 UTC
Gradient of `sqrt(RBF(Z, Z))` no longer NaN (#615)
Gradient of `sqrt(RBF(Z, Z))` no longer NaN (#615)
Tip revision: 5f2a6d4
File | Mode | Size |
---|---|---|
doc | ||
gpflow | ||
notebooks | ||
tests | ||
.coveragerc | -rw-r--r-- | 261 bytes |
.coveralls.yml | -rw-r--r-- | 23 bytes |
.gitignore | -rw-r--r-- | 811 bytes |
.pylintrc | -rw-r--r-- | 14.6 KB |
.travis.yml | -rw-r--r-- | 641 bytes |
Dockerfile | -rw-r--r-- | 1.1 KB |
LICENSE | -rw-r--r-- | 11.1 KB |
MANIFEST.in | -rw-r--r-- | 166 bytes |
README.md | -rw-r--r-- | 4.6 KB |
RELEASE.md | -rw-r--r-- | 5.3 KB |
codecov.yml | -rw-r--r-- | 268 bytes |
contributing.md | -rw-r--r-- | 4.1 KB |
docs_require.txt | -rw-r--r-- | 404 bytes |
roadmap.md | -rw-r--r-- | 506 bytes |
run_tests.sh | -rwxr-xr-x | 896 bytes |
setup.py | -rw-r--r-- | 2.3 KB |
Computing file changes ...