This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor tree combining logic (#863)
Summary: Pull Request resolved: #863 The tree-combining logics in `_build_tree` and the main `propose` methods are almost identical except that one weighted both subtree equally and the other is biased toward the new tree. The goal of this refactoring is to make subsequent changes to the tree combining logic easier (e.g., changes like D28735950 doesn't need to be repeat twice). The refactored `_combine_tree` method is more or less analogous to the [`_combine_tree` method in Numpyro](https://github.com/pyro-ppl/numpyro/blob/master/numpyro/infer/hmc_util.py#L762-L843). Other than refactoring, there is no change to the algorithm in this diff. Reviewed By: neerajprad Differential Revision: D28817142 fbshipit-source-id: 87814af96d28506ea4fd5ae55ec949f3dfc296fb
- Loading branch information
1 parent
7117e12
commit 1182236
Showing
1 changed file
with
68 additions
and
60 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