Expand description
Run Struct with Renacer Integration (ENT-002)
Provides the Run struct which wraps experiment tracking with
distributed tracing via Renacer spans.
§Example
use std::sync::{Arc, Mutex};
use entrenar::storage::{InMemoryStorage, ExperimentStorage};
use entrenar::run::{Run, TracingConfig};
let mut storage = InMemoryStorage::new();
let exp_id = storage.create_experiment("my-exp", None)?;
let storage = Arc::new(Mutex::new(storage));
let config = TracingConfig::default();
let mut run = Run::new(&exp_id, storage.clone(), config)?;
// Log metrics - auto-increments step
run.log_metric("loss", 0.5)?;
run.log_metric("loss", 0.4)?;
// Or log with explicit step
run.log_metric_at("accuracy", 0, 0.85)?;
// Complete the run
run.finish(entrenar::storage::RunStatus::Success)?;Structs§
- Run
- A training run with integrated distributed tracing
- Tracing
Config - Configuration for distributed tracing