From 2e5a1a4c4fd2e5b236b9e7bedc36b5222d89172d Mon Sep 17 00:00:00 2001 From: Matt Graham Date: Fri, 14 Oct 2016 03:36:16 +0100 Subject: [PATCH] Renaming MNIST eval set to test set for consistency with slides. --- data/{mnist_eval.pkl.gz => mnist_test.pkl.gz} | Bin mlp/data_providers.py | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename data/{mnist_eval.pkl.gz => mnist_test.pkl.gz} (100%) diff --git a/data/mnist_eval.pkl.gz b/data/mnist_test.pkl.gz similarity index 100% rename from data/mnist_eval.pkl.gz rename to data/mnist_test.pkl.gz diff --git a/mlp/data_providers.py b/mlp/data_providers.py index c49e8f3..3868a66 100644 --- a/mlp/data_providers.py +++ b/mlp/data_providers.py @@ -139,7 +139,7 @@ class MNISTDataProvider(DataProvider): """Create a new MNIST data provider object. Args: - which_set: One of 'train', 'valid' or 'eval'. Determines which + which_set: One of 'train', 'valid' or 'test'. Determines which portion of the MNIST data this object should provide. batch_size (int): Number of data points to include in each batch. max_num_batches (int): Maximum number of batches to iterate over @@ -151,8 +151,8 @@ class MNISTDataProvider(DataProvider): rng (RandomState): A seeded random number generator. """ # check a valid which_set was provided - assert which_set in ['train', 'valid', 'eval'], ( - 'Expected which_set to be either train, valid or eval. ' + assert which_set in ['train', 'valid', 'test'], ( + 'Expected which_set to be either train, valid or test. ' 'Got {0}'.format(which_set) ) self.which_set = which_set @@ -279,7 +279,7 @@ class CCPPDataProvider(DataProvider): 'Got {0}'.format(which_set) ) # check input_dims are valid - if not input_dims is not None: + if input_dims is not None: input_dims = set(input_dims) assert input_dims.issubset({0, 1, 2, 3}), ( 'input_dims should be a subset of {0, 1, 2, 3}'