module Datasets::CIFAR::Pixelable

Public Instance Methods

pixels() click to toggle source
# File lib/datasets/cifar.rb, line 9
def pixels
  data.unpack("C*")
end
to_h() click to toggle source
Calls superclass method
# File lib/datasets/cifar.rb, line 13
def to_h
  hash = super
  hash[:pixels] = pixels
  hash
end