Skip to content

Commit

Permalink
changes-2
Browse files Browse the repository at this point in the history
  • Loading branch information
AstitvaAggarwal committed Jan 16, 2024
1 parent 70933ad commit ee5c1df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/BPINN_ode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ of the physics-informed neural network which is used as a solver for a standard
* `Kernel`: Choice of MCMC Sampling Algorithm. Defaults to `AdvancedHMC.HMC`
## Keyword Arguments
(refer ahmc_bayesian_pinn_ode() keyword arguments.)
(refer `NeuralPDE.ahmc_bayesian_pinn_ode` keyword arguments.)
## Example
Expand Down
13 changes: 4 additions & 9 deletions src/PDE_BPINN.jl
Original file line number Diff line number Diff line change
Expand Up @@ -327,15 +327,10 @@ ahmc_bayesian_pinn_pde(pde_system, discretization;
* `nchains`: number of chains you want to sample
# AdvancedHMC.jl is still developing convenience structs so might need changes on new releases.
* `Kernel`: Choice of MCMC Sampling Algorithm object with appropriat args/kwargs (AdvancedHMC.jl implemenations HMC/NUTS/HMCDA).
* `Adaptorkwargs`: A NamedTuple containing the chosen Adaptor, it's Metric and targetacceptancerate, as follows :
* `Adaptor`: https://turinglang.org/AdvancedHMC.jl/stable/
* `Metric`: https://turinglang.org/AdvancedHMC.jl/stable/
* `targetacceptancerate`: Target percentage(in decimal) of iterations in which the proposals were accepted(0.8 by default)
* `Integratorkwargs`: A NamedTuple containing the chosen integrator and its keyword Arguments, as follows :
* `Integrator`: https://turinglang.org/AdvancedHMC.jl/stable/
* `jitter_rate`: https://turinglang.org/AdvancedHMC.jl/stable/
* `tempering_rate`: https://turinglang.org/AdvancedHMC.jl/stable/
* `Kernel`: Choice of MCMC Sampling Algorithm object HMC/NUTS/HMCDA (AdvancedHMC.jl implemenations ).
* `Adaptorkwargs`: `Adaptor`, `Metric`, `targetacceptancerate`. Refer: https://turinglang.org/AdvancedHMC.jl/stable/
Note: Target percentage(in decimal) of iterations in which the proposals are accepted (0.8 by default)
* `Integratorkwargs`: `Integrator`, `jitter_rate`, `tempering_rate`. Refer: https://turinglang.org/AdvancedHMC.jl/stable/
* `saveats`: Grid spacing for each independant variable for evaluation of ensemble solution, estimated parameters.
* `numensemble`: Number of last samples to take for creation of ensemble solution, estimated parameters.
* `progress`: controls whether to show the progress meter or not.
Expand Down
12 changes: 4 additions & 8 deletions src/advancedHMC_MCMC.jl
Original file line number Diff line number Diff line change
Expand Up @@ -448,20 +448,16 @@ Incase you are only solving the Equations for solution, do not provide dataset
# AdvancedHMC.jl is still developing convenience structs so might need changes on new releases.
* `Kernel`: Choice of MCMC Sampling Algorithm (AdvancedHMC.jl implemenations HMC/NUTS/HMCDA)
* `Integratorkwargs`: A NamedTuple containing the chosen integrator and its keyword Arguments, as follows :
* `Integrator`: https://turinglang.org/AdvancedHMC.jl/stable/
* `jitter_rate`: https://turinglang.org/AdvancedHMC.jl/stable/
* `tempering_rate`: https://turinglang.org/AdvancedHMC.jl/stable/
* `Adaptorkwargs`: A NamedTuple containing the chosen Adaptor, it's Metric and targetacceptancerate, as follows :
* `Adaptor`: https://turinglang.org/AdvancedHMC.jl/stable/
* `Metric`: https://turinglang.org/AdvancedHMC.jl/stable/
* `targetacceptancerate`: Target percentage(in decimal) of iterations in which the proposals were accepted(0.8 by default)
* `Integratorkwargs`: `Integrator`, `jitter_rate`, `tempering_rate`. Refer: https://turinglang.org/AdvancedHMC.jl/stable/
* `Adaptorkwargs`: `Adaptor`, `Metric`, `targetacceptancerate`. Refer: https://turinglang.org/AdvancedHMC.jl/stable/
Note: Target percentage(in decimal) of iterations in which the proposals are accepted (0.8 by default)
* `MCMCargs`: A NamedTuple containing all the chosen MCMC kernel's(HMC/NUTS/HMCDA) Arguments, as follows :
* `n_leapfrog`: number of leapfrog steps for HMC
* `δ`: target acceptance probability for NUTS and HMCDA
* `λ`: target trajectory length for HMCDA
* `max_depth`: Maximum doubling tree depth (NUTS)
* `Δ_max`: Maximum divergence during doubling tree (NUTS)
Refer: https://turinglang.org/AdvancedHMC.jl/stable/
* `progress`: controls whether to show the progress meter or not.
* `verbose`: controls the verbosity. (Sample call args in AHMC)
Expand Down

0 comments on commit ee5c1df

Please sign in to comment.