-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One of the concepts that made debugging the parameter bindings difficult is that ultimately the parameter bindings refer to the vector of _free parameters_, not the immediate parameters of the model. That is, the presence of frozen parameters could throw off the expected binding resolution. To fix this, we defer adjusting the parameter indices until we construct the fit, and introduce a new function `adjust_free_bindings` which will do the index shuffling and remove frozen parameter bindings. The bindings that are kept in `prob.bindings` are now the expected model => parameter index mappings without the frozen adjustment, which makes reasoning whether a binding is correct or not that bit easier.
- Loading branch information
Showing
3 changed files
with
81 additions
and
11 deletions.
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