trinity.utils.monitor module
Monitor
- class trinity.utils.monitor.Monitor(project: str, name: str, role: str, config: Config | None = None)[source]
Bases:
ABC
- class trinity.utils.monitor.TensorboardMonitor(project: str, group: str, name: str, role: str, config: Config | None = None)[source]
Bases:
Monitor
- class trinity.utils.monitor.WandbMonitor(project: str, group: str, name: str, role: str, config: Config | None = None)[source]
Bases:
Monitor
Monitor with Weights & Biases.
- Parameters:
base_url (Optional[str]) – The base URL of the W&B server. If not provided, use the environment variable WANDB_BASE_URL.
api_key (Optional[str]) – The API key for W&B. If not provided, use the environment variable WANDB_API_KEY.
- class trinity.utils.monitor.MlflowMonitor(project: str, group: str, name: str, role: str, config: Config | None = None)[source]
Bases:
Monitor
Monitor with MLflow.
- Parameters:
uri (Optional[str]) – The tracking server URI. If not provided, the default is http://localhost:5000.
username (Optional[str]) – The username to login. If not provided, the default is None.
password (Optional[str]) – The password to login. If not provided, the default is None.