Tensorboard
verify_tensorboard_logs(tb_log_dir, expected_metrics, min_steps=1)
Verify that TensorBoard logs exist and contain expected metrics.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tb_log_dir
|
Path
|
Path to the TensorBoard log directory |
required |
expected_metrics
|
list[str]
|
List of metric names expected in the logs |
required |
min_steps
|
int
|
Minimum number of steps expected in the logs |
1
|
Returns:
Type | Description |
---|---|
Optional[str]
|
None if verification succeeds, error message string if it fails |
Source code in bionemo/testing/tensorboard.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|