-
Notifications
You must be signed in to change notification settings - Fork 54
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
Callback system to the optimisation #21
Comments
Sorry. I did not follow up back then. Are you still interested in this? |
I would need to raise PRs on both biogeme + biogeme_optimization |
Well, I need to understand better what you would need. |
There are 2 things:
|
Most functions have a logger. They start with statements such as |
Thanks, yeah that's what I actually did for that example, I redifined logmessage: def logmessage() -> None:
"""Send messages to the logger"""
values_to_report = [k]
if variable_names is not None:
values_to_report += list(iterate)
values_to_report += [
current_function.function,
the_function.relative_gradient_norm,
float(radius),
rho,
status,
]
import wandb
wandb.log({"current_function": current_function.function,
"relgrad": the_function.relative_gradient_norm,
"radius": float(radius),
"rho": rho})
logger.info(the_formatter.formatted_row(values_to_report)) To stream the metrics real time, we need to call |
Hello Michel,
I am curious how easy it would be to add a callback system to the optimization in biogeme.
The idea would be to be able to add experiment tracking like W&B, so we can keep track of the different experiments in a central place.
Basically, you would need to be able to call:
log(config)
with the different initial hyperparamslog(metric)
at the end of each iteration/step, so we get nice training curves and visual metrics on the workspace.PD: I am trying to convert my friend Ricardo, so he stops staring at the terminal logs...
The text was updated successfully, but these errors were encountered: