Class: Datasets::CIFAR::Record10

Inherits:
Struct
  • Object
show all
Includes:
Pixelable
Defined in:
lib/datasets/cifar.rb

Instance Attribute Summary collapse

Method Summary

Methods included from Pixelable

#pixels, #to_h

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



20
21
22
# File 'lib/datasets/cifar.rb', line 20

def data
  @data
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



20
21
22
# File 'lib/datasets/cifar.rb', line 20

def label
  @label
end