Module: Datasets::CIFAR::Pixelable
Instance Method Summary collapse
Instance Method Details
#pixels ⇒ Object
9 10 11 |
# File 'lib/datasets/cifar.rb', line 9 def pixels data.unpack("C*") end |
#to_h ⇒ Object
13 14 15 16 17 |
# File 'lib/datasets/cifar.rb', line 13 def to_h hash = super hash[:pixels] = pixels hash end |