Skip to content

Conversation

@jpn--
Copy link
Member

@jpn-- jpn-- commented Aug 5, 2024

The trip scheduling model currently was set with allow_zero_probs=True but immediately after running the choice model it includes an assertion that all the choices are valid. Really we want to disallow zero probabilities. By setting this to false we also automatically engage underflow protection on the probabilities when the utility dtype is float32 (as happens with sharrow enabled).

Also this PR temporarily removes a problematic block of code when tracing and sharrow are both enabled.

Copy link
Contributor

@i-am-sijia i-am-sijia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jpn-- I commented out another section in simulate.py that also calls the sh_flow.load() that would cause the model to hang. It's in this pr: https://github.com/camsys/activitysim/pull/15

@i-am-sijia
Copy link
Contributor

@jpn-- I commented out another section in simulate.py that also calls the sh_flow.load() that would cause the model to hang. It's in this pr: camsys#15

It was raised in this issue: #874

@jpn-- jpn-- merged commit c6aa6d7 into ActivitySim:main Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants