Skip to content

Commit f5ab013

Browse files
Fix documentation build errors
- low_level_2.md, param_estim.md: Replace deprecated `defaults` kwarg with `initial_conditions` for PDESystem constructor (MTK 11 change) - pino_ode.md: Fix get_trainset to return 2D trunk input instead of 3D (NeuralOperators 0.6+ requires 2D) - param_estim.md: Update ComponentArrays.jl link from jonniedie to SciML Fixes makedocs errors: [:linkcheck, :example_block] Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 23e321a commit f5ab013

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/src/tutorials/low_level_2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ discretization = NeuralPDE.BayesianPINN([chain],
116116
[x, t],
117117
[u(x, t)],
118118
[α],
119-
defaults = Dict([α => 0.5]))
119+
initial_conditions = Dict([α => 0.5]))
120120
121121
sol1 = ahmc_bayesian_pinn_pde(pde_system,
122122
discretization;

docs/src/tutorials/param_estim.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ three arguments:
8080
- the hyperparameters `p` .
8181

8282
For a Lux neural network, the composed function will present itself as having θ as a
83-
[`ComponentArray`](https://github.com/jonniedie/ComponentArrays.jl)
83+
[`ComponentArray`](https://github.com/SciML/ComponentArrays.jl)
8484
subsets `θ.x`, which can also be dereferenced like `θ[:x]`. Thus, the additional
8585
loss looks like:
8686

@@ -98,7 +98,7 @@ discretization = NeuralPDE.PhysicsInformedNN([chain1, chain2, chain3],
9898
NeuralPDE.QuadratureTraining(; abstol = 1e-6, reltol = 1e-6, batch = 200), param_estim = true,
9999
additional_loss = additional_loss)
100100
@named pde_system = PDESystem(eqs, bcs, domains, [t], [x(t), y(t), z(t)], [σ_, ρ, β],
101-
defaults = Dict([p .=> 1.0 for p in [σ_, ρ, β]]))
101+
initial_conditions = Dict([p => 1.0 for p in [σ_, ρ, β]]))
102102
prob = NeuralPDE.discretize(pde_system, discretization)
103103
callback = function (p, l)
104104
println("Current loss is: $l")

docs/src/tutorials/pino_ode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function get_trainset(bounds, tspan, number_of_parameters, dt)
5656
p_ = [range(start = b[1], length = number_of_parameters, stop = b[2]) for b in bounds]
5757
p = vcat([collect(reshape(p_i, 1, size(p_i, 1))) for p_i in p_]...)
5858
t_ = collect(tspan[1]:dt:tspan[2])
59-
t = collect(reshape(t_, 1, size(t_, 1), 1))
59+
t = reshape(t_, 1, size(t_, 1))
6060
(p, t)
6161
end
6262

0 commit comments

Comments
 (0)