wandb¶
W&B utilities for Neuroevolution fitting.
- cneuromax.fitting.neuroevolution.utils.wandb.setup_wandb(logger, output_dir)[source]¶
Sets up W&B logging for all MPI processes.
- Parameters:
output_dir (
str
) – Seeoutput_dir
.
- Return type:
- cneuromax.fitting.neuroevolution.utils.wandb.terminate_wandb()[source]¶
Terminates W&B logging.
- Return type:
- cneuromax.fitting.neuroevolution.utils.wandb.gather(logged_score, curr_gen, agent_total_num_steps)[source]¶
Gathers logged scores from all MPI processes.
- Parameters:
logged_score (
float
|None
) – A value logged during evaluation. IfNone
, then no value was logged during evaluation.agent_total_num_steps (
int
) – Seetotal_num_steps
.
- Return type: