Class: Datasets::Adult::Record

Inherits:
Struct
  • Object
show all
Defined in:
lib/datasets/adult.rb

Instance Attribute Summary collapse

Instance Attribute Details

#ageObject

Returns the value of attribute age

Returns:

  • (Object)

    the current value of age



7
8
9
# File 'lib/datasets/adult.rb', line 7

def age
  @age
end

#capital_gainObject

Returns the value of attribute capital_gain

Returns:

  • (Object)

    the current value of capital_gain



7
8
9
# File 'lib/datasets/adult.rb', line 7

def capital_gain
  @capital_gain
end

#capital_lossObject

Returns the value of attribute capital_loss

Returns:

  • (Object)

    the current value of capital_loss



7
8
9
# File 'lib/datasets/adult.rb', line 7

def capital_loss
  @capital_loss
end

#educationObject

Returns the value of attribute education

Returns:

  • (Object)

    the current value of education



7
8
9
# File 'lib/datasets/adult.rb', line 7

def education
  @education
end

#final_weightObject

Returns the value of attribute final_weight

Returns:

  • (Object)

    the current value of final_weight



7
8
9
# File 'lib/datasets/adult.rb', line 7

def final_weight
  @final_weight
end

#hours_per_weekObject

Returns the value of attribute hours_per_week

Returns:

  • (Object)

    the current value of hours_per_week



7
8
9
# File 'lib/datasets/adult.rb', line 7

def hours_per_week
  @hours_per_week
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



7
8
9
# File 'lib/datasets/adult.rb', line 7

def label
  @label
end

#marital_statusObject

Returns the value of attribute marital_status

Returns:

  • (Object)

    the current value of marital_status



7
8
9
# File 'lib/datasets/adult.rb', line 7

def marital_status
  @marital_status
end

#n_education_yearsObject

Returns the value of attribute n_education_years

Returns:

  • (Object)

    the current value of n_education_years



7
8
9
# File 'lib/datasets/adult.rb', line 7

def n_education_years
  @n_education_years
end

#native_countryObject

Returns the value of attribute native_country

Returns:

  • (Object)

    the current value of native_country



7
8
9
# File 'lib/datasets/adult.rb', line 7

def native_country
  @native_country
end

#occupationObject

Returns the value of attribute occupation

Returns:

  • (Object)

    the current value of occupation



7
8
9
# File 'lib/datasets/adult.rb', line 7

def occupation
  @occupation
end

#raceObject

Returns the value of attribute race

Returns:

  • (Object)

    the current value of race



7
8
9
# File 'lib/datasets/adult.rb', line 7

def race
  @race
end

#relationshipObject

Returns the value of attribute relationship

Returns:

  • (Object)

    the current value of relationship



7
8
9
# File 'lib/datasets/adult.rb', line 7

def relationship
  @relationship
end

#sexObject

Returns the value of attribute sex

Returns:

  • (Object)

    the current value of sex



7
8
9
# File 'lib/datasets/adult.rb', line 7

def sex
  @sex
end

#work_classObject

Returns the value of attribute work_class

Returns:

  • (Object)

    the current value of work_class



7
8
9
# File 'lib/datasets/adult.rb', line 7

def work_class
  @work_class
end