ActivitySim / activitysim

An Open Platform for Activity-Based Travel Modeling
https://activitysim.github.io
BSD 3-Clause "New" or "Revised" License
189 stars 96 forks source link

Explicit chunking on all interaction simulate models #870

Closed dhensle closed 1 month ago

dhensle commented 1 month ago

Adds the option of explicit chunking to all interaction simulate models that were not already hooked-up. These include destination choice, location choice, and scheduling.

Also implemented a feature where the explicit_chunk setting can be less than 1. If less than one, it specifies the fraction. So explicit_chunk: 0.1 would mean that there would be 10 chunks. If greater than 1, explicit_chunk remains the total number of rows in the chooser table.

dhensle commented 1 month ago

Sharing some testing results for posterity.

Used TransLink's model at a 10% sample size. No chunking looks like this: translink_10pct_no_chunk

I then set chunk_training to explicit with the following explicit_chunk settings for submodels:

(notice the y-axis scale difference from the above plot) translink_10pct_exp_chunk

Run time for no chunking was 113.9 minutes and for explicit chunking was 115 minutes -- very minimal increase in runtime.