-
-
Notifications
You must be signed in to change notification settings - Fork 218
New loss #937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New loss #937
Conversation
@ChrisRackauckas i think there are some compat issues in the Downgrade Test env. |
Yes don't worry about downgrade |
@ChrisRackauckas the following PR adds the new loss for NNODE and BNNODE (with appropriate tests) and corrects tests erroring out in BPINN_PDE_tests.jl (this started once the repo was completely overhauled). Just to give some insight, BPINN model performance for just 20 training points in t=(0,4) as in the tests added where we solve LV : u2 is our new model. |
Co-authored-by: Christopher Rackauckas <[email protected]>
@ChrisRackauckas GTM? |
@@ -6,7 +6,7 @@ | |||
dataset <: Union{Vector{Nothing}, Vector{<:Vector{<:AbstractFloat}}} | |||
priors <: Vector{<:Distribution} | |||
phystd::Vector{Float64} | |||
phynewstd::Vector{Float64} | |||
phynewstd::Function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specialize?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im not sure how we can specialize functions...
(Im keeping a function for std in BPINNs as selecting the right std can be tricky and usually depends on the problem)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
::F
will
@@ -44,6 +49,7 @@ standard `ODEProblem`. | |||
* `strategy`: The training strategy used to choose the points for the evaluations. | |||
Default of `nothing` means that `QuadratureTraining` with QuadGK is used if no | |||
`dt` is given, and `GridTraining` is used with `dt` if given. | |||
* `estim_collocate`: A boolean value to indicate whether to use the new loss function or not. This is only relevant for ODE parameter estimation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need a more descriptive name than "the new loss function" lol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will change that, im trying to be lowkey as it's all open source haha
The BPINN tests need some tweaking. But this looks fine. Follow up with doc improvements. |
Do you mean the BPINN pde solvers tests? Ive actually corrected the tests as previously tests were erroring out (ever since the overhaul format), now I'll fix the failures. |
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
tutorial on how to use newloss and updated PINO must be added in a New PR