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

Bugfix for trip scheduling choice #884

Merged
merged 5 commits into from
Aug 9, 2024
Merged

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: camsys#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
17 checks passed
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