activitysim icon indicating copy to clipboard operation
activitysim copied to clipboard

BayDAG Contribution #7: Sampling in EDB for Location Choice

Open dhensle opened this issue 1 year ago • 0 comments

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 avatar Dec 18 '23 19:12 dhensle