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

Replace "map do" with Ensemble Simulations for DeepBSDE solver. #44

Open
wants to merge 6 commits into
base: NeuralPDE_integration
Choose a base branch
from

Conversation

ashutosh-b-b
Copy link
Contributor

No description provided.

@ashutosh-b-b
Copy link
Contributor Author

@vboussange can you have a look and merge?

src/DeepBSDE.jl Outdated
(X,u) = (predict_ans[1:(end-1)], predict_ans[end])
output_func(sol,i) = ((sol[end][1:end-1], sol[end][end]),false)
function prob_func(prob,i,repeat)
SDEProblem(prob.f , prob.g , init_cond, prob.tspan , prob.p ,noise_rate_prototype = prob.noise_rate_prototype)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
SDEProblem(prob.f , prob.g , init_cond, prob.tspan , prob.p ,noise_rate_prototype = prob.noise_rate_prototype)
SDEProblem(prob.f , prob.g , init_cond, prob.tspan , prob.p ,noise_rate_prototype = copy(prob.noise_rate_prototype))

Make sure you aren't reusing caches amongst threads. Best would be to just create noise as a vector matching nthreads so you don't collide, but given the cost of a solve here I think it's fine just to copy.

@ChrisRackauckas
Copy link
Member

CI didn't run?

@vboussange
Copy link
Collaborator

@ChrisRackauckas Yes, it looks like only the Documentation action is triggered with PR. Do you have any idea why?

@ChrisRackauckas
Copy link
Member

ChrisRackauckas commented Jun 30, 2022

The CI was set to branch-specific PR checking. Fixed.

@ashutosh-b-b
Copy link
Contributor Author

Why are the MLP.jl tests failing?

@ChrisRackauckas
Copy link
Member

Looks fine, but should probably figure out why tests are failing, and if that was happening before this PR.

@vboussange
Copy link
Collaborator

@ashutosh-b-b, the MLP tests were failing on the original branch NeuralPDE_integration, which I have fixed. Can you update your branch so that we can once again proceed to tests?

@ashutosh-b-b
Copy link
Contributor Author

@vboussange The non linear tests are failing due to a Zygote Error or rather a Tracker error. @ChrisRackauckas I mentioned this error earlier.

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