Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cd demos
# Create the configuration folder and retrieve an example configuration
mkdir configuration
cd configuration
curl -L -o demos_config.toml https://raw.githubusercontent.com/NatLabRockies/DEMOS/main/configuration/demos_config_sfbay.toml
curl -L -o demos_config.toml https://raw.githubusercontent.com/NatLabRockies/DEMOS/main/configuration/demos_config_small_example.toml

# Create the data folder for the output to be stored
cd ..
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
random_seed = 100
base_year = 2010
forecast_year = 2019
calibrated_models_dir = "../data/sf_bay_example/calibrated_models_coefficients/"
calibrated_models_dir = "../data/small_example/calibrated_models_coefficients/"
inconsistent_persons_table_behavior = "fix"
modules = [
"aging",
Expand All @@ -26,38 +26,40 @@ initialize_empty_tables = [
"rebalanced_households"
]


# Data sources

## Synthetic population data
[[tables]]
file_type = "h5"
table_name = "persons"
filepath = "../data/sf_bay_example/custom_mpo_06197001_model_data.h5"
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/sf_bay_example/custom_mpo_06197001_model_data.h5"
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/sf_bay_example/relmap_06197001.csv"
filepath = "../data/small_example/relmap_06197001.csv"
index_col = "index"

[[tables]]
file_type = "csv"
table_name = "income_rates"
filepath = "../data/sf_bay_example/observed_calibration_values/income_rates_06197001.csv"
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/sf_bay_example/observed_calibration_values/hsize_ct_06197001.csv"
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"}

Expand All @@ -67,13 +69,13 @@ custom_dtype_casting = {"lcm_county_id" = "object", "year" = "int", "hh_size" =
[[tables]]
file_type = "csv"
table_name = "observed_employment"
filepath = "../data/sf_bay_example/observed_calibration_values/employment_obs.csv"
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/sf_bay_example/observed_calibration_values/marrital_status_over_time_obs.csv"
filepath = "../data/small_example/observed_calibration_values/marrital_status_over_time_obs_county.csv"
index_col = "year"


Expand All @@ -88,24 +90,24 @@ momentum_weight = 0.3
[mortality_module_config.calibration_procedure]
procedure_type = "rmse_error"
tolerance_type = "absolute"
tolerance = 1000
max_iter = 1000
tolerance = 30
max_iter = 500
[mortality_module_config.calibration_procedure.observed_values_table]
file_type = "csv"
table_name = "observed_fatalities_data"
filepath = "../data/sf_bay_example/observed_calibration_values/mortalities_over_time_obs.csv"
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 = 1000
tolerance = 60 # lower
max_iter = 1000
[birth_module_config.calibration_procedure.observed_values_table]
file_type = "csv"
table_name = "observed_births_data"
filepath = "../data/sf_bay_example/observed_calibration_values/births_over_time_obs.csv"
filepath = "../data/small_example/observed_calibration_values/births_over_time_obs_county2.csv"
index_col = "year"

## HH Reorg
Expand All @@ -115,7 +117,7 @@ geoid_col = "lcm_county_id"
[hh_reorg_module_config.simultaneous_calibration_config]
tolerance = 5_000
max_iter = 100
learning_rate = 2.5
learning_rate = 1.5
momentum_weight = 0.3

## HH Rebalancing
Expand All @@ -127,5 +129,6 @@ 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
2 changes: 2 additions & 0 deletions data/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
!calibrated_configs/**
!sf_bay_example/
!sf_bay_example/**
!small_example/
!small_example/**
**/.DS_Store
**.h5

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions data/sf_bay_example/observed_calibration_values/employment_obs.csv

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading