As in any case, I would say that the easiest way, as a rule, is contrailing on someone else's zeal. For this case, this means that you need to look for someone else who has already transformed it. A quick Google search reveals this site (which contains an R image data file) is an excellent candidate for this method.
Alternatively, if you want to directly use the CIFAR-10 data, here the script I just quickly created data from a binary file that Alex contacted with the source page for cifar-10 :
# Read binary file and convert to integer vectors # [Necessary because reading directly as integer() # reads first bit as signed otherwise] # # File format is 10000 records following the pattern: # [label x 1][red x 1024][green x 1024][blue x 1024] # NOT broken into rows, so need to be careful with "size" and "n" # # (See http:
Hope this helps!
source share