Default Configuration File¶
This page shows the default demos_config_ref.toml
Default configuration (demos_config_ref.toml)¶
1# Global config
2random_seed = 100
3base_year = 2010
4forecast_year = 2019
5calibrated_models_dir = "../data/sf_bay_example/calibrated_models_coefficients/"
6inconsistent_persons_table_behavior = "fix"
7modules = [
8 "aging",
9 "employment",
10 "household_reorg",
11 "kids_moving",
12 "fatality",
13 "birth",
14 "education",
15 "household_rebalancing",
16 "income_adjustment"
17]
18output_tables = [
19 "persons",
20 "households",
21 "run_times"
22]
23initialize_empty_tables = [
24 "graveyard",
25 "rebalanced_persons",
26 "rebalanced_households"
27]
28
29# Data sources
30## Synthetic population data
31[[tables]]
32file_type = "h5"
33table_name = "persons"
34filepath = "../data/sf_bay_example/custom_mpo_06197001_model_data.h5"
35h5_key = "persons"
36
37[[tables]]
38file_type = "h5"
39table_name = "households"
40filepath = "../data/sf_bay_example/custom_mpo_06197001_model_data.h5"
41h5_key = "households"
42
43## Other static data tables
44[[tables]]
45file_type = "csv"
46table_name = "relational_adjustment_mapping"
47filepath = "../data/sf_bay_example/relmap_06197001.csv"
48index_col = "index"
49
50[[tables]]
51file_type = "csv"
52table_name = "income_rates"
53filepath = "../data/sf_bay_example/observed_calibration_values/income_rates_06197001.csv"
54index_col = "year"
55custom_dtype_casting = {"lcm_county_id" = "object", "year" = "int", "rate" = "float"}
56
57[[tables]]
58file_type = "csv"
59table_name = "hsize_ct"
60filepath = "../data/sf_bay_example/observed_calibration_values/hsize_ct_06197001.csv"
61index_col = "year"
62custom_dtype_casting = {"lcm_county_id" = "object", "year" = "int", "hh_size" = "object", "total_number_of_households" = "int"}
63
64## Simultaneous Calibration data
65### For simultaneous calibration, tables need
66### to be manually included here
67[[tables]]
68file_type = "csv"
69table_name = "observed_employment"
70filepath = "../data/sf_bay_example/observed_calibration_values/employment_obs.csv"
71index_col = "year"
72
73[[tables]]
74file_type = "csv"
75table_name = "observed_marrital_data"
76filepath = "../data/sf_bay_example/observed_calibration_values/marrital_status_over_time_obs.csv"
77index_col = "year"
78
79
80# Modules configuration
81[employment_module_config.simultaneous_calibration_config]
82tolerance = 100
83max_iter = 20
84learning_rate = 2
85momentum_weight = 0.3
86
87## Mortality
88[mortality_module_config.calibration_procedure]
89procedure_type = "rmse_error"
90tolerance_type = "absolute"
91tolerance = 1000
92max_iter = 1000
93[mortality_module_config.calibration_procedure.observed_values_table]
94file_type = "csv"
95table_name = "observed_fatalities_data"
96filepath = "../data/sf_bay_example/observed_calibration_values/mortalities_over_time_obs.csv"
97index_col = "year"
98
99## Birth
100[birth_module_config.calibration_procedure]
101procedure_type = "rmse_error"
102tolerance_type = "absolute"
103tolerance = 1000
104max_iter = 1000
105[birth_module_config.calibration_procedure.observed_values_table]
106file_type = "csv"
107table_name = "observed_births_data"
108filepath = "../data/sf_bay_example/observed_calibration_values/births_over_time_obs.csv"
109index_col = "year"
110
111## HH Reorg
112[hh_reorg_module_config]
113geoid_col = "lcm_county_id"
114
115[hh_reorg_module_config.simultaneous_calibration_config]
116tolerance = 5_000
117max_iter = 100
118learning_rate = 2.5
119momentum_weight = 0.3
120
121## HH Rebalancing
122[hh_rebalancing_module_config]
123control_table = "hsize_ct"
124control_col = "hh_size"
125geoid_col = "lcm_county_id"
126
127# Kids Moving
128[kids_moving_module_config]
129geoid_col = "lcm_county_id"
130calibration_target_share = 0.12
131calibration_tolerance = 0.001