google / google/jaxopt

Keep track of number of function / gradient evaluations

Open
#129 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.