You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/advancedHMC_MCMC.jl
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -430,12 +430,14 @@ function ahmc_bayesian_pinn_ode(
430
430
error("Invalid dataset for Inverse solve. The dataset would be a timeseries (x̂,t) with type: Vector{Vector{AbstractFloat}}")
431
431
end
432
432
433
-
# if the above error is not triggered (this means atleast L2 is valid).
433
+
# if the above errors is not triggered -> (this means atleast L2 is valid: we have x, t in the dataset) && (if estim_collocate was true then W is also present)
434
434
# We must pad the dataset with a dummy W column (this ensures correct dataset
435
435
# index referencing in all methods except the Data Quadrature loss).
436
-
if (length(dataset) <2||!(dataset isa Vector{<:Vector{<:AbstractFloat}}))
437
-
@info"Padding the dataset with a uniform W = 1 weights column"
436
+
# do the below only if estim_collocate is false, so that L2 loss dataset access is correct.
437
+
if (length(dataset) <3||!(dataset isa Vector{<:Vector{<:AbstractFloat}})) &&
0 commit comments