Skip to content

Commit 99feba6

Browse files
Merge pull request #832 from sathvikbhagavan/sb/docs2
docs: fix rendering
2 parents 4b44a24 + bfb159c commit 99feba6

File tree

4 files changed

+25
-23
lines changed

4 files changed

+25
-23
lines changed

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ makedocs(sitename = "NeuralPDE.jl",
1313
authors = "#",
1414
modules = [NeuralPDE],
1515
clean = true, doctest = false, linkcheck = true,
16-
warnonly = [:missing_docs, :example_block],
16+
warnonly = [:missing_docs],
1717
format = Documenter.HTML(assets = ["assets/favicon.ico"],
1818
canonical = "https://docs.sciml.ai/NeuralPDE/stable/"),
1919
pages = pages)

docs/src/tutorials/dgm.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ where $\vec{x}$ is the concatenated vector of $(t, x)$ and $L$ is the number of
2828

2929
Let's try to solve the following Burger's equation using Deep Galerkin Method for $\alpha = 0.05$ and compare our solution with the finite difference method:
3030

31-
$$
31+
```math
3232
\partial_t u(t, x) + u(t, x) \partial_x u(t, x) - \alpha \partial_{xx} u(t, x) = 0
33-
$$
33+
```
3434

3535
defined over
3636

37-
$$
37+
```math
3838
t \in [0, 1], x \in [-1, 1]
39-
$$
39+
```
4040

4141
with boundary conditions
4242
```math

src/BPINN_ode.jl

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,19 @@ function BNNODE(chain, Kernel = HMC; strategy = nothing, draw_samples = 2000,
123123
end
124124

125125
"""
126-
Contains ahmc_bayesian_pinn_ode() function output:
127-
1> a MCMCChains.jl chain object for sampled parameters
128-
2> The set of all sampled parameters
129-
3> statistics like:
130-
> n_steps
131-
> acceptance_rate
132-
> log_density
133-
> hamiltonian_energy
134-
> hamiltonian_energy_error
135-
> numerical_error
136-
> step_size
137-
> nom_step_size
126+
Contains `ahmc_bayesian_pinn_ode()` function output:
127+
128+
1. A MCMCChains.jl chain object for sampled parameters.
129+
2. The set of all sampled parameters.
130+
3. Statistics like:
131+
- n_steps
132+
- acceptance_rate
133+
- log_density
134+
- hamiltonian_energy
135+
- hamiltonian_energy_error
136+
- numerical_error
137+
- step_size
138+
- nom_step_size
138139
"""
139140
struct BPINNstats{MC, S, ST}
140141
mcmc_chain::MC
@@ -143,10 +144,11 @@ struct BPINNstats{MC, S, ST}
143144
end
144145

145146
"""
146-
BPINN Solution contains the original solution from AdvancedHMC.jl sampling(BPINNstats contains fields related to that)
147-
> ensemblesol is the Probabilistic Estimate(MonteCarloMeasurements.jl Particles type) of Ensemble solution from All Neural Network's(made using all sampled parameters) output's.
148-
> estimated_nn_params - Probabilistic Estimate of NN params from sampled weights,biases
149-
> estimated_de_params - Probabilistic Estimate of DE params from sampled unknown DE parameters
147+
BPINN Solution contains the original solution from AdvancedHMC.jl sampling (BPINNstats contains fields related to that).
148+
149+
1. `ensemblesol` is the Probabilistic Estimate (MonteCarloMeasurements.jl Particles type) of Ensemble solution from All Neural Network's (made using all sampled parameters) output's.
150+
2. `estimated_nn_params` - Probabilistic Estimate of NN params from sampled weights, biases.
151+
3. `estimated_de_params` - Probabilistic Estimate of DE params from sampled unknown DE parameters.
150152
"""
151153
struct BPINNsolution{O <: BPINNstats, E, NP, OP, P}
152154
original::O

src/advancedHMC_MCMC.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ end
344344
345345
!!! warn
346346
347-
Note that ahmc_bayesian_pinn_ode() only supports ODEs which are written in the out-of-place form, i.e.
348-
`du = f(u,p,t)`, and not `f(du,u,p,t)`. If not declared out-of-place, then the ahmc_bayesian_pinn_ode()
347+
Note that `ahmc_bayesian_pinn_ode()` only supports ODEs which are written in the out-of-place form, i.e.
348+
`du = f(u,p,t)`, and not `f(du,u,p,t)`. If not declared out-of-place, then the `ahmc_bayesian_pinn_ode()`
349349
will exit with an error.
350350
351351
## Example

0 commit comments

Comments
 (0)