-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add docstrings to state and stats #657
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #657 +/- ##
======================================
Coverage 8.93% 8.93%
======================================
Files 31 31
Lines 2506 2506
======================================
Hits 224 224
Misses 2282 2282 ☔ View full report in Codecov by Sentry. |
src/stats_state.jl
Outdated
- `objective`: current objective value | ||
- `gradient`: current gradient | ||
- `hessian`: current hessian | ||
- `solver_state`: if the solver has its own state object then it is stored here |
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.
- `solver_state`: if the solver has its own state object then it is stored here | |
- `original`: if the solver has its own state object then it is stored here |
for uniformity.
src/stats_state.jl
Outdated
and is passed to the callback function as the first argument. | ||
|
||
## Fields | ||
- `iteration`: current iteration |
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.
- `iteration`: current iteration | |
- `iter`: current iteration |
- `gradient`: current gradient | ||
- `hessian`: current hessian |
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.
- `gradient`: current gradient | |
- `hessian`: current hessian | |
- `gradient`: current gradient | |
- `hessian`: current hessian |
grad, hes
Make the naming match everything else, we can't just have one thing different.
@@ -117,7 +117,7 @@ function SciMLBase.__solve(cache::Optimization.OptimizationCache{ | |||
else | |||
n_steps = BlackBoxOptim.num_steps(trace) | |||
curr_u = decompose_trace(trace, cache.progress) | |||
opt_state = Optimization.OptimizationState(iteration = n_steps, u = curr_u, objective = x[1], solver_state = trace) | |||
opt_state = Optimization.OptimizationState(; iteration = n_steps, u = curr_u, objective = x[1], original = trace) |
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.
and iter?
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
Add any other context about the problem here.