-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemos_config_small_example.toml
More file actions
134 lines (117 loc) · 3.7 KB
/
demos_config_small_example.toml
File metadata and controls
134 lines (117 loc) · 3.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Global config
random_seed = 100
base_year = 2010
forecast_year = 2019
calibrated_models_dir = "../data/small_example/calibrated_models_coefficients/"
inconsistent_persons_table_behavior = "fix"
modules = [
"aging",
"employment",
"household_reorg",
"kids_moving",
"fatality",
"birth",
"education",
"household_rebalancing",
"income_adjustment"
]
output_tables = [
"persons",
"households",
"run_times"
]
initialize_empty_tables = [
"graveyard",
"rebalanced_persons",
"rebalanced_households"
]
# Data sources
## Synthetic population data
[[tables]]
file_type = "h5"
table_name = "persons"
filepath = "../data/small_example/small_example_tables.h5" # custom_mpo_06197001_model_data_small.h5, minihh.h5, custom_mpo_06197001_model_data_small_stratHH.h5, custom_mpo_06197001_model_data_hh0.05.h5, countyNM.h5
h5_key = "persons"
[[tables]]
file_type = "h5"
table_name = "households"
filepath = "../data/small_example/small_example_tables.h5" # custom_mpo_06197001_model_data_small.h5, minihh.h5, custom_mpo_06197001_model_data_hh0.05.h5, custom_mpo_06197001_model_data_county1, countyNM.h5
h5_key = "households"
## Other static data tables
[[tables]]
file_type = "csv"
table_name = "relational_adjustment_mapping"
filepath = "../data/small_example/relmap_06197001.csv"
index_col = "index"
[[tables]]
file_type = "csv"
table_name = "income_rates"
filepath = "../data/small_example/observed_calibration_values/income_rates_06197001.csv"
index_col = "year"
custom_dtype_casting = {"lcm_county_id" = "object", "year" = "int", "rate" = "float"}
[[tables]]
file_type = "csv"
table_name = "hsize_ct"
filepath = "../data/small_example/observed_calibration_values/hsize_ct_06197001_4155.csv"
index_col = "year"
custom_dtype_casting = {"lcm_county_id" = "object", "year" = "int", "hh_size" = "object", "total_number_of_households" = "int"}
## Simultaneous Calibration data
### For simultaneous calibration, tables need
### to be manually included here
[[tables]]
file_type = "csv"
table_name = "observed_employment"
filepath = "../data/small_example/observed_calibration_values/employment_obs_county.csv"
index_col = "year"
[[tables]]
file_type = "csv"
table_name = "observed_marrital_data"
filepath = "../data/small_example/observed_calibration_values/marrital_status_over_time_obs_county.csv"
index_col = "year"
# Modules configuration
[employment_module_config.simultaneous_calibration_config]
tolerance = 100
max_iter = 20
learning_rate = 2
momentum_weight = 0.3
## Mortality
[mortality_module_config.calibration_procedure]
procedure_type = "rmse_error"
tolerance_type = "absolute"
tolerance = 30
max_iter = 500
[mortality_module_config.calibration_procedure.observed_values_table]
file_type = "csv"
table_name = "observed_fatalities_data"
filepath = "../data/small_example/observed_calibration_values/mortalities_over_time_obs_county2.csv"
index_col = "year"
## Birth
[birth_module_config.calibration_procedure]
procedure_type = "rmse_error"
tolerance_type = "absolute"
tolerance = 60 # lower
max_iter = 1000
[birth_module_config.calibration_procedure.observed_values_table]
file_type = "csv"
table_name = "observed_births_data"
filepath = "../data/small_example/observed_calibration_values/births_over_time_obs_county2.csv"
index_col = "year"
## HH Reorg
[hh_reorg_module_config]
geoid_col = "lcm_county_id"
[hh_reorg_module_config.simultaneous_calibration_config]
tolerance = 5_000
max_iter = 100
learning_rate = 1.5
momentum_weight = 0.3
## HH Rebalancing
[hh_rebalancing_module_config]
control_table = "hsize_ct"
control_col = "hh_size"
geoid_col = "lcm_county_id"
# Kids Moving
[kids_moving_module_config]
geoid_col = "lcm_county_id"
calibration_target_share = 0.12
calibration_tolerance = 0.01
max_iter = 100