Skip to content

Commit

Permalink
Merge pull request #110 from uber/revert-109-revert-107-pyro-bug-fix2
Browse files Browse the repository at this point in the history
re-run this merge to cover right issues and close those issues
including previous PR it
closes #106,
closes #102 ,
closes #89,
closes #88,
closes #69,
closes #65 and
closes #54
  • Loading branch information
Edwin Ng authored May 6, 2020
2 parents f668808 + fee93bd commit f525a37
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 233 deletions.
307 changes: 74 additions & 233 deletions examples/LGT_Pyro_Example.ipynb

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions orbit/pyro/lgt.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ def __call__(self):

lgt_sum = l + gt_coef * l.abs() ** gt_pow + lt_coef * b
lgt_sum = torch.cat([l[..., :1], lgt_sum[..., :-1]], dim=-1) # shift by 1
# a hack here as well to get rid of the extra "1" in r.shape
if r.dim() >= 2:
r = r.squeeze(-2)
yhat = lgt_sum + s[..., :num_of_obs] + r

with pyro.plate("response_plate", num_of_obs - 1):
Expand Down

0 comments on commit f525a37

Please sign in to comment.