https://github.com/GPflow/GPflow
Revision 7e8dc9fd23745b10db4eb364f041f8200ac3a001 authored by st-- on 05 March 2018, 19:41:14 UTC, committed by Mark van der Wilk on 05 March 2018, 19:41:14 UTC
* (square|euclid)_dist -> scaled_(square|euclid)_dist to make clear that it is already divided by lengthscale

* add RationalQuadratic kernel

* SquaredExponential

* add test case

* reoder

* add DeprecationWarnings

* improve docstrings

* space

* add no-cover pragmas for deprecated methods
1 parent 8fac3c4
Raw File
Tip revision: 7e8dc9fd23745b10db4eb364f041f8200ac3a001 authored by st-- on 05 March 2018, 19:41:14 UTC
Adds rational-quadratic kernel and minor clean-up of notation (#666)
Tip revision: 7e8dc9f
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
back to top