Commit a9c7b70
Fix variance shape bug in Riemann posterior (#2939)
Summary:
Pull Request resolved: #2939
Currently, BoundedRiemannPosterior.mean returns a Size([b, 1]) tensor, but BoundedRiemannPosterior.mean_of_square returns a Size([b]) tensor. As a result, when these are combined to get the variance, we end up with a Size([b, b]) variance instead of the correct Size([b, 1]). This fixes the issue.
Reviewed By: SamuelGabriel
Differential Revision: D78911131
fbshipit-source-id: 5ba69604b3c198ddce68b70a4af806e64fdbc0b11 parent 29877b8 commit a9c7b70
File tree
2 files changed
+9
-2
lines changed- botorch_community/posteriors
- test_community/posteriors
2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
151 | 158 | | |
152 | 159 | | |
153 | 160 | | |
| |||
0 commit comments