history
2 minute read
module wandb.apis.public
W&B Public API for Run History.
This module provides classes for efficiently scanning and sampling run history data. Classes include:
HistoryScan: Iterator for scanning complete run history
- Paginated access to all metrics
- Configure step ranges and page sizes
- Raw access to all logged data
SampledHistoryScan: Iterator for sampling run history data
- Efficient access to downsampled metrics
- Filter by specific keys
- Control sample size and step ranges
Note:
This module is part of the W&B Public API and provides methods to access run history data. It handles pagination automatically and offers both complete and sampled access to metrics logged during training runs.
class HistoryScan
Iterator for scanning complete run history.
Args:
client
: (wandb.apis.internal.Api
) The client instance to userun
: (wandb.sdk.internal.Run
) The run object to scan history formin_step
: (int) The minimum step to start scanning frommax_step
: (int) The maximum step to scan up topage_size
: (int) Number of samples per page (default is 1000)
method HistoryScan.__init__
__init__(client, run, min_step, max_step, page_size=1000)
class SampledHistoryScan
Iterator for sampling run history data.
Args:
client
: (wandb.apis.internal.Api
) The client instance to userun
: (wandb.sdk.internal.Run
) The run object to sample history fromkeys
: (list) List of keys to sample from the historymin_step
: (int) The minimum step to start sampling frommax_step
: (int) The maximum step to sample up topage_size
: (int) Number of samples per page (default is 1000)
method SampledHistoryScan.__init__
__init__(client, run, keys, min_step, max_step, page_size=1000)
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.