We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe048f7 commit 9deda9dCopy full SHA for 9deda9d
bayesflow/adapters/transforms/as_set.py
@@ -4,6 +4,12 @@
4
5
6
class AsSet(ElementwiseTransform):
7
+ """
8
+ The `.as_set(["x", "y"])` transform indicates that both `x` and `y` are treated as sets.
9
+ That is, their values will be treated as *exchangable* such that they will imply the same inference regardless of the values' order.
10
+ This would be useful in a linear regression context where we can index the observations in arbitrary order and always get the same regression line.
11
12
+
13
def forward(self, data: np.ndarray, **kwargs) -> np.ndarray:
14
return np.atleast_3d(data)
15
0 commit comments