Skip to content

Commit e35f420

Browse files
committed
hopefully everything resolved
1 parent ec5df13 commit e35f420

File tree

3 files changed

+7
-19
lines changed

3 files changed

+7
-19
lines changed

bayesflow/adapters/transforms/as_set.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,11 @@
66
class AsSet(ElementwiseTransform):
77
"""
88
The `.as_set(["x", "y"])` transform indicates that both `x` and `y` are treated as sets.
9-
<<<<<<< HEAD
10-
That is, their values will be treated as *exchangable* such that they will imply the same inference regardless of
11-
the values' order. This would be useful in a linear regression context where we can index the observations in
12-
arbitrary order and always get the same regression line.
13-
=======
149
That is, their values will be treated as *exchangable* such that they will imply
1510
the same inference regardless of the values' order.
1611
This is useful, for example, in a linear regression context where we can index
1712
the observations in arbitrary order and always get the same regression line.
18-
>>>>>>> b8b68757b0ae1a5f34bf656a837abbeb77e2ec62
19-
13+
2014
Useage:
2115
2216
adapter = (

bayesflow/adapters/transforms/constrain.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,18 @@ class Constrain(ElementwiseTransform):
3232
3333
3434
Examples:
35-
Let sigma be the standard deviation of a normal distribution,
35+
1) Let sigma be the standard deviation of a normal distribution,
3636
then sigma should always be greater than zero.
3737
38-
Useage:
3938
Useage:
4039
adapter = (
4140
bf.Adapter()
4241
.constrain("sigma", lower=0)
4342
)
4443
45-
Suppose p is the parameter for a binomial distribution where p must be in [0,1]
46-
then we would constrain the neural network to estimate p in the following way.
44+
2 ) Suppose p is the parameter for a binomial distribution where p must be in
45+
[0,1] then we would constrain the neural network to estimate p in the following way.
4746
48-
Usage:
4947
Usage:
5048
adapter = (
5149
bf.Adapter()

bayesflow/adapters/transforms/keep.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,9 @@ class Keep(Transform):
2525
2626
adapter = (
2727
bf.adapters.Adapter()
28-
<<<<<<< HEAD
29-
30-
# drop data from unneeded priors alpha, and r
31-
=======
32-
# only keep theta and x
33-
>>>>>>> b8b68757b0ae1a5f34bf656a837abbeb77e2ec62
34-
.keep(("theta", "x"))
28+
# drop data from unneeded priors alpha, and r
29+
# only keep theta and x
30+
.keep(("theta", "x"))
3531
)
3632
3733
Example:

0 commit comments

Comments
 (0)