Skip to content

Commit

Permalink
increases order of f1 bijectors
Browse files Browse the repository at this point in the history
  • Loading branch information
MArpogaus committed Sep 15, 2023
1 parent bee520a commit c1a5c3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bernstein_flow/distributions/bernstein_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ def init_bijectors(
bijectors = []

# f1: ŷ = sigma(a1(x)*y - b1(x))
if tf.is_tensor(a1):
f1_scale = tfb.Scale(a1, name="scale1")
bijectors.append(f1_scale)
if tf.is_tensor(b1):
f1_shift = tfb.Shift(b1, name="shift1")
bijectors.append(f1_shift)
if tf.is_tensor(a1):
f1_scale = tfb.Scale(a1, name="scale1")
bijectors.append(f1_scale)

# clip to domain [0, 1]
if clip_to_bernstein_domain:
Expand Down

1 comment on commit c1a5c3f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bimodal Model

Learning Curve

Learning Curve

Metrics

loss: -0.89259272813797
val_loss: -0.938466489315033

Results

Parameter Vector for x = 1

BernsteinFlow:
invert_chain_of_bpoly_of_scale1_of_shift1:
chain_of_bpoly_of_scale1_of_shift1:
bpoly: [-3.0000417e+00 -2.1808119e+00 -1.3615819e+00 -1.3305326e+00
-6.8045139e-02 -7.4016601e-03 -7.3861834e-03 -7.3707066e-03
-7.3552299e-03 -7.3397532e-03 -7.3242765e-03 -7.3087998e-03
-7.2933231e-03 -7.2778463e-03 -7.2623696e-03 -7.2468929e-03
-6.3020019e-03 6.5172625e+00 1.3040827e+01]
scale1: 0.46643325686454773
shift1: 0.6817902326583862

Flow



Bijector


Please sign in to comment.