-
Notifications
You must be signed in to change notification settings - Fork 32
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
More work on VarNameVector
#637
Merged
Merged
Changes from 63 commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
8750255
Merge branch 'master' into torfjelde/transformations
torfjelde ed6ee88
Merge branch 'master' into torfjelde/transformations
torfjelde 607bdb3
Update test/model.jl
torfjelde 55c8098
Apply suggestions from code review
torfjelde cc910d5
Merge remote-tracking branch 'origin/torfjelde/transformations' into …
torfjelde ec9f985
Merge branch 'master' into torfjelde/transformations
torfjelde a079606
Merge remote-tracking branch 'origin/torfjelde/transformations' into …
torfjelde ad959ec
Type-stability tests are now correctly using `rand_prior_true` instead
torfjelde 9f84070
`getindex_internal` now calls `getindex` instead of `view`, as the
torfjelde 7d39934
Removed seemingly unnecessary definition of `getindex_internal`
torfjelde b554504
Fixed references to `newmetadata` which has been replaced by `replace…
torfjelde ddb1dfe
Made implementation of `recombine` more explicit
torfjelde 3b08f1d
Added docstrings for `untyped_varinfo` and `typed_varinfo`
torfjelde 96ccebe
Added TODO comment about implementing `view` for `VarInfo`
torfjelde beaeeaa
Fixed potential infinite recursion as suggested by @mhauru
torfjelde ab2c98b
added docstring to `from_vec_trnasform_for_size
torfjelde f1f7968
Replaced references to `vectorize(dist, x)` with `tovec(x)`
torfjelde 6e57822
Fixed docstring
torfjelde 841215f
Update src/extract_priors.jl
torfjelde 78b2083
Bump minor version since this is a breaking change
torfjelde b6ecf7b
Merge remote-tracking branch 'origin/torfjelde/transformations' into …
torfjelde 7100ce1
Merge branch 'master' into torfjelde/transformations
torfjelde bab63e1
Apply suggestions from code review
sunxd3 6997019
Update src/varinfo.jl
sunxd3 9dc7f02
Apply suggestions from code review
torfjelde c0f9923
Apply suggestions from code review
torfjelde 9056928
Update src/extract_priors.jl
torfjelde e43dd1b
Added fix for product distributions of targets with changing support …
torfjelde a7673fd
Addeed tests for product of distributions with dynamic support
torfjelde e8d4c96
Apply suggestions from code review
torfjelde 2fe7605
Merge remote-tracking branch 'origin/torfjelde/transformations' into …
mhauru ca0c951
Fix typos, improve docstrings
mhauru 60bb054
Use Accessors rather than Setfield
mhauru 32a9ec7
Simplify group_by_symbol
mhauru bc41d82
Add short_varinfo_name(::VectorVarInfo)
mhauru 6900034
Add tests for subset
mhauru e9be160
Export VectorVarInfo
mhauru 2ae8516
Tighter type bound for has_varnamevector
mhauru 524c148
Add some VectorVarName methods
mhauru b076aef
Add todo notes, remove dead code, fix a typo.
mhauru f28b430
Bug fixes and small improvements
mhauru 5f02494
VarNameVector improvements
mhauru 56fac99
Improve generated_quantities and its tests
mhauru c793ada
Improvement to VarNameVector
mhauru ed2d695
Fix a test to work with VectorVarName
mhauru 01935c8
Fix generated_quantities
mhauru f8d0100
Fix type stability issues
mhauru d4ba9f5
Various VarNameVector fixes and improvements
mhauru fef615d
Merge remote-tracking branch 'origin/master' into mhauru/varnamevector
mhauru bd67b38
Bump version number
mhauru 06d9df5
Merge remote-tracking branch 'origin/torfjelde/varnamevector' into mh…
mhauru 9596bea
Improvements to generated_quantities
mhauru b8309d2
Code formatting
mhauru 44fc385
Code style
mhauru ad13acf
Add fallback implementation of findinds for VarNameVector
mhauru d0322b7
Rename VarNameVector to VarNamedVector
mhauru 250010d
More renaming of VNV. Remove unused VarNamedVector.metadata field.
mhauru 02d5187
Rename FromVec to ReshapeTransform
mhauru 94cf179
Progress towards having VarNamedVector as storage for SimpleVarInfo
mhauru 27bac26
Fix unflatten(vnv::VarNamedVector, vals)
mhauru 38147da
More work on SimpleVarInfo{VarNamedVector}
mhauru 3990914
More tests for SimpleVarInfo{VarNamedVector}
mhauru a7a9974
More tests for SimpleVarInfo{VarNamedVector}
mhauru 1937359
Respond to review feedback
mhauru d4120c3
Add float_type_with_fallback(::Type{Union{}})
mhauru ca04666
Move some VNV functions to the correct file
mhauru bb9ae76
Fix push! for VNV
mhauru 536a476
Rename VNV.is_transformed to VNV.is_unconstrained
mhauru 6a029bb
Improve VNV docstring
mhauru d8f8b17
Add VNV inner constructor checks
mhauru 076e478
Reorganise parts of VNV code
mhauru f11f007
Documentation and small fixes for VNV
mhauru f8361f6
Rename loosen_types!! and tighten_types, add docstrings and doctests
mhauru 004c327
Rename VarNameVector to VarNamedVector in docs
mhauru 5291290
Documentation and small fixes to VNV
mhauru 3d472f4
Fix subset(::VarNamedVector, args...) for unconstrained variables.
mhauru 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 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 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 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 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 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 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 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 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.
@mhauru Is it possible to also introduce and test against
VectorSimpleVarInfo
(i.e.SimpleVarInfo
withVarNameVector
as storage format)? If so, can you investigate what might be needed fromVarNameVector
?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.
Working on this, and it seems doable. I got a big chunk of the test suite to pass, still need to add some more tests and see if they fail.