create_experiment_tracker¶
gepa.logging.experiment_tracker.create_experiment_tracker(use_wandb: bool = False, wandb_api_key: str | None = None, wandb_init_kwargs: dict[str, Any] | None = None, wandb_attach_existing: bool = False, wandb_step_metric: str | None = None, use_mlflow: bool = False, mlflow_tracking_uri: str | None = None, mlflow_experiment_name: str | None = None, mlflow_attach_existing: bool = False, key_prefix: str = '') -> ExperimentTracker
¶
Create an experiment tracker based on the specified backends.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
use_wandb
|
bool
|
Whether to use wandb |
False
|
use_mlflow
|
bool
|
Whether to use mlflow |
False
|
wandb_api_key
|
str | None
|
API key for wandb |
None
|
wandb_init_kwargs
|
dict[str, Any] | None
|
Additional kwargs for wandb.init() |
None
|
wandb_attach_existing
|
bool
|
When True, skip wandb.init() and wandb.finish() and log into the already-active run. |
False
|
wandb_step_metric
|
str | None
|
Custom x-axis metric name for wandb. When set,
GEPA uses |
None
|
mlflow_tracking_uri
|
str | None
|
Tracking URI for mlflow |
None
|
mlflow_experiment_name
|
str | None
|
Experiment name for mlflow |
None
|
mlflow_attach_existing
|
bool
|
When True, skip mlflow.start_run() and mlflow.end_run() and log into the already-active run. |
False
|
Returns:
| Type | Description |
|---|---|
ExperimentTracker
|
ExperimentTracker instance |
Note
Both wandb and mlflow can be used simultaneously if desired.