https://github.com/GPflow/GPflow
Revision 69364c2b79e1e6dd0fe7419377a044c0bdedb4f5 authored by Mark van der Wilk on 04 October 2017, 18:13:22 UTC, committed by GitHub on 04 October 2017, 18:13:22 UTC
* Clean up kullback_leiblers: a single function for whitened/unwhitened and diagonal/full-covariance. Deprecate the rest. * Update VGP and SVGP models to use new `gauss_kl` * clean up test_conditionals * Improve documentation * tidy up gauss_kl code * Add dedicated tests for Gaussian KL divergence * Bumped version. * Added encoding hint for python2.7. * @ to .dot() * change encoding to utf-8 * Added coding for `test_kldiv.py` + PEP8. * I'm all for high test coverage, but this seems a bit overzealous :P
1 parent 4d8b552
Tip revision: 69364c2b79e1e6dd0fe7419377a044c0bdedb4f5 authored by Mark van der Wilk on 04 October 2017, 18:13:22 UTC
Clean up kullback_leiblers (#514)
Clean up kullback_leiblers (#514)
Tip revision: 69364c2
run_tests.sh
#!/bin/bash
# Script for running GPflow tests in sequential and parallel modes.
# Running tensorflow based tests in distinct processes prevents
# bad memory accumulations which can lead to crashes or slow runs
# on resource limited hardware.
# Written by Artem Artemev, 06/08/2017
set -e
mode=${1:-"--sequential"}
case "$mode" in
-p|--parallel)
numproc=$([[ $(uname) == 'Darwin' ]] && sysctl -n hw.physicalcpu_max || nproc)
echo ">>> Parallel mode. Number of processes = $numproc"
echo testing/test_*.py | xargs -n 1 -P "$numproc" bash -c 'nosetests -v --nologcapture $0 || exit 255'
;;
-s|--sequential)
for test_file in testing/test_*.py; do
echo ">>> Run $test_file"
nosetests -v --nologcapture "$test_file"
rc=$?
if [ "$rc" != "0" ]; then
echo ">>> $test_file failed"
exit $rc
fi
done
;;
*)
;;
esac
Computing file changes ...