https://github.com/GPflow/GPflow
Raw File
Tip revision: 00073d8dfa0c4cee80597fe8adb0324a7f72e7a5 authored by Sergio Diaz on 16 September 2019, 10:10:17 UTC
Merge branch 'awav/gpflow-2.0' into sergio_pasc/gpflow-2.0/ordinal_regression
Tip revision: 00073d8
test_examples.py
import sys
import pytest

sys.path.append('./examples')


# from train_mnist import ex

@pytest.mark.examples
def test_train_mnist():
    """
    Just check whether the train_mist script still runs...

    NB: This script will fail if you test twice within the same minute, due to
    the name where output files are dumped being the same. Not a problem IRL.
    """
    # TODO: Run this test! Currently this doesn't run on CI, due to a bug in some metadata that TF should be giving
    #       as part of importing itself. This makes it not work with sacred. A PR has been merged into TF, but this
    #       hasn't made it into a release yet. https://github.com/tensorflow/tensorflow/issues/30028
    # ex.run(None, config_updates={"iterations": 2, "hz": {"short": 1}, "float_type": "float32", "jitter_level": 1e-4,
    #                              "num_inducing_points": 100, "dataset": "mnist-small-subset-for-test"})
back to top