Skip to content
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

Better BPINN ode Solver #853

Merged
merged 20 commits into from
Sep 8, 2024
Merged

Conversation

AstitvaAggarwal
Copy link
Contributor

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

@AstitvaAggarwal
Copy link
Contributor Author

@ChrisRackauckas @Vaibhavdixit02 for the new formulations, merging of this PR first and PR #842 later is recommended.

Copy link
Member

@Vaibhavdixit02 Vaibhavdixit02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -0,0 +1,140 @@
using Test, MCMCChains
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this new test file is not actually ran.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, fixed

@test abs(param1 - p) < abs(0.3 * p)

#-------------------------- solve() call
# (lux chain)
@test mean(abs.(physsol2 .- sol3lux_pestim.ensemblesol[1])) < 0.15
@test mean(abs.(physsol2 .- pmean(sol3lux_pestim.ensemblesol[1]))) < 0.15
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pmean typo?

Copy link
Contributor Author

@AstitvaAggarwal AstitvaAggarwal Sep 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, the mean is required as the solution's standard deviation are different at domain points, sometimes these uncertainties can be large enough for the tests to fail. so i just take the means for testing.

@@ -0,0 +1,46 @@
# suggested extra loss function for ODE solver case
function L2loss2(Tar::LogTargetDensity, θ)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this a separate file/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@ChrisRackauckas
Copy link
Member

My understanding is that the proposed changes from the last review were not implemented and this was just rebased? Is there a plan to finish this?

@AstitvaAggarwal
Copy link
Contributor Author

This is ready @ChrisRackauckas the other test failures seem unrelated. Let me know if changes are needed.

@ChrisRackauckas ChrisRackauckas merged commit e3ee467 into SciML:master Sep 8, 2024
19 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants