https://github.com/GPflow/GPflow
Revision bb3d1f44865b73b4fd8ad7e98410bac073a57202 authored by st-- on 19 September 2018, 13:48:08 UTC, committed by GitHub on 19 September 2018, 13:48:08 UTC
Minor code changes: - adds rich representation to Parameter(ized) objects so `m.as_pandas_table()` can be replaced by `m` for pretty-printing in jupyter notebooks - updates priors to have prettier printing (and more value checks) Notebooks - coreg_demo.ipynb: clean-up, typo fixes - models.ipynb: clean-up, now actually consistent with current (gpflow-1.0) architecture - kernels.ipynb: clean-up Documentation - updates various links in README.md (JH's webpage, readthedocs, tensorflow installation) - adds all currently existing notebooks to the documentation (under new section "advanced tutorials") Stand-alone .py demo scripts in doc/source/notebooks/ - makes them runnable with current gpflow version - adds "unmaintained" warning header
1 parent 83631b7
Tip revision: bb3d1f44865b73b4fd8ad7e98410bac073a57202 authored by st-- on 19 September 2018, 13:48:08 UTC
Clean up notebooks and documentation (#849)
Clean up notebooks and documentation (#849)
Tip revision: bb3d1f4
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 ...