######################################################################
def vocabulary_size(self):
- # warnings.warn("hack +4 to keep the vocabulary size unchanged", RuntimeWarning)
- # return self.nb_colors + 4
return self.nb_colors
def grid2img(self, x, scale=15, grids=True):
parser.add_argument("--nb_train_samples", type=int, default=50000)
+
parser.add_argument("--nb_test_samples", type=int, default=10000)
parser.add_argument("--nb_c_quizzes", type=int, default=5000)
one_epoch(model, n_epoch, test_c_quizzes, train=False, local_device=local_device)
- # Compute the test accuracy
+ # Compute the test accuracy *WITHOUT C QUIZZES*
+ warnings.warn("test_accuracy does not consider c quizzes", RuntimeWarning)
quizzes = generate_quiz_set(
args.nb_test_samples,