https://github.com/GPflow/GPflow
Revision e59ff2f3880c16927446830344b4a1c763f7e372 authored by st-- on 30 April 2018, 10:44:40 UTC, committed by Mark van der Wilk on 30 April 2018, 10:44:40 UTC
* add check of lengthscales shape to Stationary kernel * refactor to _validate_ard_shape * add casts to float * fix ArcCosine test * add None to ARD test * remove deprecated num_gauss_hermite_points from kernel * Clean up docstrings & make code a bit shorter. * Typo ARG => ARD. * update docstring * more dtype=float_type
1 parent 3ff6110
Tip revision: e59ff2f3880c16927446830344b4a1c763f7e372 authored by st-- on 30 April 2018, 10:44:40 UTC
add shape check for ARD hyperparameters to Kernel classes (#694)
add shape check for ARD hyperparameters to Kernel classes (#694)
Tip revision: e59ff2f
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 ...