You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove selector stuff from VarInfo tests and link/invlink (#780)
* Remove selector stuff from varinfo tests
* Implement link and invlink for varnames rather than samplers
* Replace set_retained_vns_del_by_spl! with set_retained_vns_del!
* Make linking tests more extensive
* Remove sampler indexing from link methods (but not invlink)
* Remove indexing by samplers from invlink
* Work towards removing sampler indexing with StaticTransformation
* Fix invlink/link for TypedVarInfo and StaticTransformation
* Fix a test in models.jl
* Move some functions to utils.jl, add tests and docstrings
* Fix a docstring typo
* Various simplification to link/invlink
* Improve a docstring
* Style improvements
* Fix broken link/invlink dispatch cascade for VectorVarInfo
* Fix some more broken dispatch cascades
* Apply suggestions from code review
Co-authored-by: Xianda Sun <[email protected]>
* Remove comments that messed with docstrings
* Apply suggestions from code review
Co-authored-by: Penelope Yong <[email protected]>
* Fix issues surfaced in code review
* Simplify link/invlink arguments
* Fix a bug in unflatten VarNamedVector
* Rename VarNameCollection -> VarNameTuple
* Remove test of a removed varname_namedtuple method
* Apply suggestions from code review
Co-authored-by: Penelope Yong <[email protected]>
* Respond to review feedback
* Remove _default_sampler and a dead argument of maybe_invlink_before_eval
* Fix a typo in a comment
* Add HISTORY entry, fix one set_retained_vns_del! method
---------
Co-authored-by: Xianda Sun <[email protected]>
Co-authored-by: Penelope Yong <[email protected]>
Copy file name to clipboardExpand all lines: HISTORY.md
+9
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,15 @@
4
4
5
5
**Breaking**
6
6
7
+
### Remove indexing by samplers
8
+
9
+
This release removes the feature of `VarInfo` where it kept track of which variable was associated with which sampler. This means removing all user-facing methods where `VarInfo`s where being indexed with samplers. In particular,
10
+
11
+
-`link` and `invlink`, and their `!!` versions, no longer accept a sampler as an argument to specify which variables to (inv)link. The `link(varinfo, model)` methods remain in place, and as a new addition one can give a `Tuple` of `VarName`s to (inv)link only select variables, as in `link(varinfo, varname_tuple, model)`.
12
+
-`set_retained_vns_del_by_spl!` has been replaced by `set_retained_vns_del!` which applies to all variables.
13
+
14
+
### Reverse prefixing order
15
+
7
16
- For submodels constructed using `to_submodel`, the order in which nested prefixes are applied has been changed.
8
17
Previously, the order was that outer prefixes were applied first, then inner ones.
0 commit comments