Repository navigation
Commit 8dc8ca4
committed
Support explicit_chunk for mode-choice components
Location, destination, and scheduling components already honor the
`explicit_chunk` setting (a fixed chunk size, used when
chunk_training_mode: explicit), but mode-choice components did not:
the setting was never plumbed from the component settings into
simple_simulate's chunk loop.
This wires it through: add `explicit_chunk` to
TemplatedLogitComponentSettings (the base for mode-choice settings),
and pass it via mode_choice_simulate -> simple_simulate ->
adaptive_chunked_choosers. Defaults to 0 (unchanged behavior).
This lets tour_mode_choice and trip_mode_choice run with a fixed,
bounded per-chunk memory footprint, which is what makes large samples
fit on memory-constrained machines under chunk_training_mode: explicit.1 parent aa1a3ff commit 8dc8ca4
4 files changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
| 181 | + | |
179 | 182 | | |
180 | 183 | | |
181 | 184 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
203 | 211 | | |
204 | 212 | | |
205 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1719 | 1719 | | |
1720 | 1720 | | |
1721 | 1721 | | |
| 1722 | + | |
1722 | 1723 | | |
1723 | 1724 | | |
1724 | 1725 | | |
| |||
1737 | 1738 | | |
1738 | 1739 | | |
1739 | 1740 | | |
1740 | | - | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
1741 | 1744 | | |
1742 | 1745 | | |
1743 | 1746 | | |
| |||
0 commit comments