class Datasets::MNIST::Record

Public Instance Methods

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