Class: CrossValidation::Sample
- Inherits:
-
Struct
- Object
- Struct
- CrossValidation::Sample
- Defined in:
- lib/cross_validation/sample.rb
Overview
Represents a datum and its class (e.g., “spam”).
This is an optional data structure that simplifies definining training methods in cross-validation runs.
Instance Attribute Summary collapse
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Attribute Details
#klass ⇒ Object
Returns the value of attribute klass
6 7 8 |
# File 'lib/cross_validation/sample.rb', line 6 def klass @klass end |
#value ⇒ Object
Returns the value of attribute value
6 7 8 |
# File 'lib/cross_validation/sample.rb', line 6 def value @value end |