-
Notifications
You must be signed in to change notification settings - Fork 19
Update HSSM class for choice-only models #920
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
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
b42e4f1
feat: added softmax likelihood
digicosmos86 85f928c
Update src/hssm/likelihoods/analytical.py
digicosmos86 a2c8fbc
Update src/hssm/likelihoods/analytical.py
digicosmos86 3b5349a
feat: added a general function for creating softmax family of models
digicosmos86 6fa01e1
feat: added 2 modelconfigs for softmax family of models
digicosmos86 b685fa3
feat: added softmax family of models with 2 and 3 logits to Supported…
digicosmos86 3684230
test: testing updated model configs
digicosmos86 ce64257
fix: failing tests
digicosmos86 c91a557
fix: incorporated PR feedback
digicosmos86 2ea683e
fix: tests for `softmax_inv_temperature_config`
digicosmos86 8194f3b
fix: update softmax configuration to use n_choices instead of n_logits
digicosmos86 378b02c
Merge pull request #909 from lnccbrown/908-implement-a-general-softma…
digicosmos86 7905116
Merge pull request #911 from lnccbrown/910-add-config-files-for-softmax
digicosmos86 b635889
Merge branch '908-implement-a-general-softmax-likelihood' into 906-up…
digicosmos86 ec55838
Merge branch 'main' into 906-update-config-for-choice-only-models
digicosmos86 71dc8bf
merge main
AlexanderFengler ab45781
fix: make `make_distribution` and `make_hssm_rv` compatible with choi…
digicosmos86 02d7eed
fix: update DataValidatorMixin to be compatible with choice only models
digicosmos86 c486e35
feat: update HSSM class to be compatible with choice-only models
digicosmos86 e469cfb
tests: added tests for compatibility with choice-only and missing dat…
digicosmos86 cefdfb7
fix: a dummy formula in regression_param.py
digicosmos86 0711a5f
tests: added simple sampling tests for choice-only models
digicosmos86 943e263
feat: added softmax likelihood
digicosmos86 738dd33
Update src/hssm/likelihoods/analytical.py
digicosmos86 1aeb8a8
Update src/hssm/likelihoods/analytical.py
digicosmos86 f1d5dab
fix: make `make_distribution` and `make_hssm_rv` compatible with choi…
digicosmos86 ba31e9f
fix: update DataValidatorMixin to be compatible with choice only models
digicosmos86 e24cd95
feat: update HSSM class to be compatible with choice-only models
digicosmos86 9ca3a24
tests: added tests for compatibility with choice-only and missing dat…
digicosmos86 1153b0f
fix: a dummy formula in regression_param.py
digicosmos86 1302d3a
tests: added simple sampling tests for choice-only models
digicosmos86 5b4a66c
Merge branch '919-update-hssm-class-for-choice-only' of https://githu…
digicosmos86 6a9584b
fix: apply stricter missing data check
digicosmos86 d10aaf1
fix: type in docstrings
digicosmos86 a2f1db8
fix: revert the docstring for params_only argument
digicosmos86 86155df
fix: added a separate default lapse distribution for choice-only models
digicosmos86 60abaea
fix: stop cuda from being installed in CI
digicosmos86 c632dd4
fix: stop cuda from being installed on CI
digicosmos86 f2a9055
fix: add no-sync tags to avoid cuda installation
digicosmos86 dc954b2
fix: update fast test command to include bayesflow and cuda12 options
digicosmos86 6b6be36
fix: adjust test commands to ensure proper execution order and includ…
digicosmos86 7695ce8
fix: dependencies
digicosmos86 8c39e50
fix: remove pre-commit from notebook dependency group
digicosmos86 a49c2ea
fix: move onnx-runtime to dev
digicosmos86 6570991
fix: how lapse is specified
digicosmos86 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be careful here.
The lapse function logic we have is based around
rtlapses, so somethine likeUniform(0, 20), which then evaluates to1/20for each rt, makes sense.If a model is
choice_onlywe want a different default lapse distribution, I would suggest simply1/n_choices.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AlexanderFengler I have made the updates to fix this. Can you take another look?
BTW: this is an important implementation detail. In the future, can this type of details be communicated to us early? It's much easier to plan for these details early
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@digicosmos86 the truth is that I didn't think about lapse distributions in this context before that's why I didn't mention it earlier.
When I saw it I realized this needs to be figured out correctly.