This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nn' | |
-- Uncomment if you do have not yet downloaded this dataset | |
-- os.execute('wget -c https://s3.amazonaws.com/torch7/data/cifar10torchsmall.zip') | |
-- os.execute('unzip cifar10torchsmall.zip') | |
trainset = torch.load('cifar10-train.t7') | |
trainset.data = trainset.data:double() | |
testset = torch.load('cifar10-test.t7') | |
classes = {'airplane', 'automobile', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck'} |