Keep track of number of function / gradient evaluations
Open
enhancement
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 76
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 1
Description
Some methods, such as line-search based methods, require more function / gradient evaluations than others. It would be great to keep track of the number of such calls in the state. For instance, we could include `state.num_fun_calls` and `state.num_grad_calls`. This would allow to plot objective value as a function of these numbers and therefore compare various methods objectively.
Contributor guide
Assessment
This issue has not been assessed yet.