Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BayDAG Contribution #7: Sampling in EDB for Location Choice #773

Merged
merged 3 commits into from
Mar 28, 2024

Conversation

dhensle
Copy link
Contributor

@dhensle dhensle commented Dec 18, 2023

Currently, estimation mode will include every single alternative for the location choice models. This can be very onerous for 2-zone systems (SANDAG's workplace location choice estimation ran took multiple hours to run). The code contributed here allows for the user to specify a sample rate to be used in estimation mode. There is an additional logic to ensure that the actual observed alternative is included in the sampled alternatives so that downstream models will be using the correct destination. Using this "shortcut" for SANDAG decreased the runtime for this model to ~10 mins instead of hours.

Note that sampling is not yet supported in the actual model estimation process in larch yet. (Something proposed for future enhancements.) This code just allows the user to run estimation mode much faster so downstream model EDBs can be created in less time.

Required for SANDAG ABM3 production? -- No

@dhensle dhensle self-assigned this Jan 30, 2024
@dhensle dhensle force-pushed the BayDAG_cont7_loc_choice_sample_est branch from 564f07a to 8071068 Compare March 7, 2024 21:52
@jpn--
Copy link
Member

jpn-- commented Mar 19, 2024

This non-trivial PR has not test at all to confirm it works.

@jpn-- jpn-- merged commit bfee887 into ActivitySim:main Mar 28, 2024
18 checks passed
@dhensle dhensle deleted the BayDAG_cont7_loc_choice_sample_est branch April 23, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants