Skip to content

Commit b8b229b

Browse files
committed
minor ed on docs
1 parent ae53100 commit b8b229b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

docs/src/api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ By maximizing the ELBO, it is equivalent to minimizing the reverse KL divergence
6363
\begin{aligned}
6464
&\min _{\theta} \mathbb{E}_{q_{\theta}}\left[\log q_{\theta}(Z)-\log p(Z)\right] \quad \text{(Reverse KL)}\\
6565
& = \max _{\theta} \mathbb{E}_{q_0}\left[ \log p\left(T_N \circ \cdots \circ
66-
T_1(Z_0)\right)-\log q_0(X)+\sum_{n=1}^N \log J_n\left(F_n \circ \cdots \circ
67-
F_1(X)\right)\right] \quad \text{(ELBO)}
66+
T_1(Z_0)\right)-\log q_0(X)+\sum_{n=1}^N \log J_n\left(T_n \circ \cdots \circ
67+
T_1(X)\right)\right] \quad \text{(ELBO)}
6868
\end{aligned}
6969
```
7070

example/demo_neural_spline_flow.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ flow_trained, stats, _ = train_flow(
4848
flow,
4949
logp,
5050
sample_per_iter;
51-
max_iters=10000, # change to larger number of iterations (e.g., 50_000) for better results
51+
max_iters=10, # change to larger number of iterations (e.g., 50_000) for better results
5252
optimiser=Optimisers.Adam(1e-4),
5353
ADbackend=adtype,
5454
show_progress=true,

src/objectives/elbo.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ end
5050
elbo_batch(flow, logp, xs)
5151
elbo_batch([rng, ] flow, logp, n_samples)
5252
53-
Batched ELBO evaluation that transforms a matrix of samples in one call. This
54-
is more efficient for invertible neural-network flows (RealNVP/NSF) as it leverages
53+
Batched ELBO estimates that transforms a matrix of samples (each column represents a single
54+
sample) in one call.
55+
This is more efficient for invertible neural-network flows (RealNVP/NSF) as it leverages
5556
the batched operation of the neural networks.
5657
5758
Inputs

0 commit comments

Comments
 (0)