Renaming MNIST eval set to test set for consistency with slides.

This commit is contained in:
Matt Graham 2016-10-14 03:36:16 +01:00
parent 4c4cf2cf27
commit 2e5a1a4c4f
2 changed files with 4 additions and 4 deletions

View File

@ -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}'