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

Update docs remove extra returns from loss and extra args from callback #249

Merged
merged 7 commits into from
Oct 29, 2024

Conversation

Vaibhavdixit02
Copy link
Member

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.

@ChrisRackauckas
Copy link
Member

There's another optimization error in there.

@Vaibhavdixit02
Copy link
Member Author

The error now looks unrelated, it comes from the brusselator example in showcase https://buildkite.com/julialang/scimldocs/builds/5911#019238d1-6fd5-4ab1-85a3-0f43477ebbdc

Comment on lines +108 to +109
newprob = remake(prob, p = state.u)
sol = solve(newprob, saveat = 1)
Copy link
Member

Choose a reason for hiding this comment

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

Don't recompute

Comment on lines +316 to +317
newprob = remake(prob, p = state.u)
sol = solve(newprob, saveat = 1)
Copy link
Member

Choose a reason for hiding this comment

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

don't recompute

push!(losses, l)
#= Disable plotting as it trains since in docs
display(l)
waveform = compute_waveform(dt_data, soln, mass_ratio, model_params)[1]
Copy link
Member

Choose a reason for hiding this comment

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

don't recompute

@ChrisRackauckas
Copy link
Member

The bruss part should be fixed now.

@ChrisRackauckas
Copy link
Member

Since only that linkcheck failed, I'll just merge this.

@ChrisRackauckas ChrisRackauckas merged commit 210ee41 into main Oct 29, 2024
1 of 2 checks passed
@ChrisRackauckas ChrisRackauckas deleted the docsoptv4 branch October 29, 2024 10:14
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.

2 participants