File tree 1 file changed +6
-2
lines changed
pymc_experimental/distributions/multivariate
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
16
+ from collections import namedtuple
16
17
from typing import Sequence , Tuple , Union
17
18
18
19
import numpy as np
@@ -222,6 +223,9 @@ def _phi(
222
223
return phi
223
224
224
225
226
+ R2D2M2CPOut = namedtuple ("R2D2M2CPOut" , ["eps" , "beta" ])
227
+
228
+
225
229
def R2D2M2CP (
226
230
name : str ,
227
231
output_sigma : pt .TensorLike ,
@@ -236,7 +240,7 @@ def R2D2M2CP(
236
240
positive_probs : Union [pt .TensorLike , None ] = 0.5 ,
237
241
positive_probs_std : Union [pt .TensorLike , None ] = None ,
238
242
centered : bool = False ,
239
- ) -> tuple [ pt . TensorVariable , pt . TensorVariable ] :
243
+ ) -> R2D2M2CPOut :
240
244
"""R2D2M2CP Prior.
241
245
242
246
Parameters
@@ -441,4 +445,4 @@ def R2D2M2CP(
441
445
psi_mask = mask ,
442
446
)
443
447
resid_sigma = (1 - r2 ) ** 0.5 * output_sigma
444
- return resid_sigma , beta
448
+ return R2D2M2CPOut ( resid_sigma , beta )
You can’t perform that action at this time.
0 commit comments