Datasets:
Upload pums.py
Browse files
pums.py
CHANGED
@@ -17,48 +17,47 @@ _ENCODING_DICS = {
|
|
17 |
}
|
18 |
}
|
19 |
_BASE_FEATURE_NAMES = [
|
20 |
-
"age",
|
21 |
-
"class_of_worker",
|
22 |
-
"detailed_industry_recode",
|
23 |
-
"detailed_occupation_recode",
|
24 |
-
"education",
|
25 |
-
"wage_per_hour",
|
26 |
-
"enroll_in_edu_inst_last_wk",
|
27 |
-
"marital_stat",
|
28 |
-
"major_industry_code",
|
29 |
-
"major_occupation_code",
|
30 |
-
"race",
|
31 |
-
"hispanic_origin",
|
32 |
-
"sex",
|
33 |
-
"member_of_a_labor_union",
|
34 |
-
"reason_for_unemployment",
|
35 |
-
"full_or_part_time_employment_stat",
|
36 |
-
"capital_gains",
|
37 |
-
"capital_losses",
|
38 |
-
"dividends_from_stocks",
|
39 |
-
"tax_filer_stat",
|
40 |
-
"region_of_previous_residence",
|
41 |
-
"state_of_previous_residence",
|
42 |
-
"detailed_household_and_family_stat",
|
43 |
-
"detailed_household_summary_in_household",
|
44 |
-
"
|
45 |
-
"
|
46 |
-
"
|
47 |
-
"
|
48 |
-
"
|
49 |
-
"
|
50 |
-
"
|
51 |
-
"
|
52 |
-
"
|
53 |
-
"
|
54 |
-
"
|
55 |
-
"
|
56 |
-
"
|
57 |
-
"
|
58 |
-
"
|
59 |
-
"
|
60 |
-
"
|
61 |
-
"class",
|
62 |
]
|
63 |
|
64 |
DESCRIPTION = "Pums dataset."
|
@@ -103,7 +102,6 @@ features_types_per_config = {
|
|
103 |
"state_of_previous_residence": datasets.Value("string"),
|
104 |
"detailed_household_and_family_stat": datasets.Value("string"),
|
105 |
"detailed_household_summary_in_household": datasets.Value("string"),
|
106 |
-
# "instance_weight": datasets.Value("int64"),
|
107 |
"migration_code_change_in_msa": datasets.Value("string"),
|
108 |
"migration_code_change_in_reg": datasets.Value("string"),
|
109 |
"migration_code_move_within_reg": datasets.Value("string"),
|
@@ -115,9 +113,9 @@ features_types_per_config = {
|
|
115 |
"country_of_birth_mother": datasets.Value("string"),
|
116 |
"country_of_birth_self": datasets.Value("string"),
|
117 |
"citizenship": datasets.Value("string"),
|
118 |
-
"own_business_or_self_employed": datasets.Value("
|
119 |
"fill_inc_questionnaire_for_veteran_admin": datasets.Value("string"),
|
120 |
-
"veterans_benefits": datasets.Value("
|
121 |
"weeks_worked_in_year": datasets.Value("int64"),
|
122 |
"year": datasets.Value("int64"),
|
123 |
"class": datasets.ClassLabel(num_classes=2)
|
|
|
17 |
}
|
18 |
}
|
19 |
_BASE_FEATURE_NAMES = [
|
20 |
+
"age",int64,
|
21 |
+
"class_of_worker",string,
|
22 |
+
"detailed_industry_recode",int64,
|
23 |
+
"detailed_occupation_recode",int64,
|
24 |
+
"education",string,
|
25 |
+
"wage_per_hour",int64,
|
26 |
+
"enroll_in_edu_inst_last_wk",string,
|
27 |
+
"marital_stat",string,
|
28 |
+
"major_industry_code",string,
|
29 |
+
"major_occupation_code",string,
|
30 |
+
"race",string,
|
31 |
+
"hispanic_origin",string,
|
32 |
+
"sex",string,
|
33 |
+
"member_of_a_labor_union",string,
|
34 |
+
"reason_for_unemployment",string,
|
35 |
+
"full_or_part_time_employment_stat",string,
|
36 |
+
"capital_gains",int64,
|
37 |
+
"capital_losses",int64,
|
38 |
+
"dividends_from_stocks",int64,
|
39 |
+
"tax_filer_stat",string,
|
40 |
+
"region_of_previous_residence",string,
|
41 |
+
"state_of_previous_residence",string,
|
42 |
+
"detailed_household_and_family_stat",string,
|
43 |
+
"detailed_household_summary_in_household",string,
|
44 |
+
"migration_code_change_in_msa",string,
|
45 |
+
"migration_code_change_in_reg",string,
|
46 |
+
"migration_code_move_within_reg",string,
|
47 |
+
"live_in_this_house_1_year_ago",string,
|
48 |
+
"migration_prev_res_in_sunbelt",string,
|
49 |
+
"num_persons_worked_for_employer",int64,
|
50 |
+
"family_members_under_18",string,
|
51 |
+
"country_of_birth_father",string,
|
52 |
+
"country_of_birth_mother",string,
|
53 |
+
"country_of_birth_self",string,
|
54 |
+
"citizenship",string,
|
55 |
+
"own_business_or_self_employed",int64,
|
56 |
+
"fill_inc_questionnaire_for_veteran_admin",string,
|
57 |
+
"veterans_benefits",int64,
|
58 |
+
"weeks_worked_in_year",int64,
|
59 |
+
"year",int64,
|
60 |
+
"class",string,
|
|
|
61 |
]
|
62 |
|
63 |
DESCRIPTION = "Pums dataset."
|
|
|
102 |
"state_of_previous_residence": datasets.Value("string"),
|
103 |
"detailed_household_and_family_stat": datasets.Value("string"),
|
104 |
"detailed_household_summary_in_household": datasets.Value("string"),
|
|
|
105 |
"migration_code_change_in_msa": datasets.Value("string"),
|
106 |
"migration_code_change_in_reg": datasets.Value("string"),
|
107 |
"migration_code_move_within_reg": datasets.Value("string"),
|
|
|
113 |
"country_of_birth_mother": datasets.Value("string"),
|
114 |
"country_of_birth_self": datasets.Value("string"),
|
115 |
"citizenship": datasets.Value("string"),
|
116 |
+
"own_business_or_self_employed": datasets.Value("int64"),
|
117 |
"fill_inc_questionnaire_for_veteran_admin": datasets.Value("string"),
|
118 |
+
"veterans_benefits": datasets.Value("int64"),
|
119 |
"weeks_worked_in_year": datasets.Value("int64"),
|
120 |
"year": datasets.Value("int64"),
|
121 |
"class": datasets.ClassLabel(num_classes=2)
|