Class: Datasets::Adult::Record
- Inherits:
-
Struct
- Object
- Struct
- Datasets::Adult::Record
- Defined in:
- lib/datasets/adult.rb
Instance Attribute Summary collapse
-
#age ⇒ Object
Returns the value of attribute age.
-
#capital_gain ⇒ Object
Returns the value of attribute capital_gain.
-
#capital_loss ⇒ Object
Returns the value of attribute capital_loss.
-
#education ⇒ Object
Returns the value of attribute education.
-
#final_weight ⇒ Object
Returns the value of attribute final_weight.
-
#hours_per_week ⇒ Object
Returns the value of attribute hours_per_week.
-
#label ⇒ Object
Returns the value of attribute label.
-
#marital_status ⇒ Object
Returns the value of attribute marital_status.
-
#n_education_years ⇒ Object
Returns the value of attribute n_education_years.
-
#native_country ⇒ Object
Returns the value of attribute native_country.
-
#occupation ⇒ Object
Returns the value of attribute occupation.
-
#race ⇒ Object
Returns the value of attribute race.
-
#relationship ⇒ Object
Returns the value of attribute relationship.
-
#sex ⇒ Object
Returns the value of attribute sex.
-
#work_class ⇒ Object
Returns the value of attribute work_class.
Instance Attribute Details
#age ⇒ Object
Returns the value of attribute age
7 8 9 |
# File 'lib/datasets/adult.rb', line 7 def age @age end |
#capital_gain ⇒ Object
Returns the value of attribute capital_gain
7 8 9 |
# File 'lib/datasets/adult.rb', line 7 def capital_gain @capital_gain end |
#capital_loss ⇒ Object
Returns the value of attribute capital_loss
7 8 9 |
# File 'lib/datasets/adult.rb', line 7 def capital_loss @capital_loss end |
#education ⇒ Object
Returns the value of attribute education
7 8 9 |
# File 'lib/datasets/adult.rb', line 7 def education @education end |
#final_weight ⇒ Object
Returns the value of attribute final_weight
7 8 9 |
# File 'lib/datasets/adult.rb', line 7 def final_weight @final_weight end |
#hours_per_week ⇒ Object
Returns the value of attribute hours_per_week
7 8 9 |
# File 'lib/datasets/adult.rb', line 7 def hours_per_week @hours_per_week end |
#label ⇒ Object
Returns the value of attribute label
7 8 9 |
# File 'lib/datasets/adult.rb', line 7 def label @label end |
#marital_status ⇒ Object
Returns the value of attribute marital_status
7 8 9 |
# File 'lib/datasets/adult.rb', line 7 def marital_status @marital_status end |
#n_education_years ⇒ Object
Returns the value of attribute n_education_years
7 8 9 |
# File 'lib/datasets/adult.rb', line 7 def n_education_years @n_education_years end |
#native_country ⇒ Object
Returns the value of attribute native_country
7 8 9 |
# File 'lib/datasets/adult.rb', line 7 def native_country @native_country end |
#occupation ⇒ Object
Returns the value of attribute occupation
7 8 9 |
# File 'lib/datasets/adult.rb', line 7 def occupation @occupation end |
#race ⇒ Object
Returns the value of attribute race
7 8 9 |
# File 'lib/datasets/adult.rb', line 7 def race @race end |
#relationship ⇒ Object
Returns the value of attribute relationship
7 8 9 |
# File 'lib/datasets/adult.rb', line 7 def relationship @relationship end |
#sex ⇒ Object
Returns the value of attribute sex
7 8 9 |
# File 'lib/datasets/adult.rb', line 7 def sex @sex end |
#work_class ⇒ Object
Returns the value of attribute work_class
7 8 9 |
# File 'lib/datasets/adult.rb', line 7 def work_class @work_class end |