pub struct ExperimentRun {Show 13 fields
pub run_id: String,
pub experiment_name: String,
pub paradigm: ModelParadigm,
pub device: ComputeDevice,
pub platform: PlatformEfficiency,
pub energy: Option<EnergyMetrics>,
pub cost: Option<CostMetrics>,
pub hyperparameters: HashMap<String, Value>,
pub metrics: HashMap<String, f64>,
pub tags: Vec<String>,
pub started_at: String,
pub ended_at: Option<String>,
pub status: RunStatus,
}Expand description
Experiment run with full tracking metadata
Fields§
§run_id: StringUnique run ID
experiment_name: StringExperiment name
paradigm: ModelParadigmModel paradigm
device: ComputeDeviceCompute device used
platform: PlatformEfficiencyPlatform efficiency class
energy: Option<EnergyMetrics>Energy metrics
cost: Option<CostMetrics>Cost metrics
hyperparameters: HashMap<String, Value>Hyperparameters
metrics: HashMap<String, f64>Metrics collected
Tags for organization
started_at: StringStart time
ended_at: Option<String>End time
status: RunStatusStatus
Implementations§
Source§impl ExperimentRun
impl ExperimentRun
Sourcepub fn new(
run_id: impl Into<String>,
experiment_name: impl Into<String>,
paradigm: ModelParadigm,
device: ComputeDevice,
) -> Self
pub fn new( run_id: impl Into<String>, experiment_name: impl Into<String>, paradigm: ModelParadigm, device: ComputeDevice, ) -> Self
Create a new experiment run
Sourcepub fn log_metric(&mut self, name: impl Into<String>, value: f64)
pub fn log_metric(&mut self, name: impl Into<String>, value: f64)
Log a metric
Trait Implementations§
Source§impl Clone for ExperimentRun
impl Clone for ExperimentRun
Source§fn clone(&self) -> ExperimentRun
fn clone(&self) -> ExperimentRun
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExperimentRun
impl Debug for ExperimentRun
Source§impl<'de> Deserialize<'de> for ExperimentRun
impl<'de> Deserialize<'de> for ExperimentRun
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExperimentRun
impl RefUnwindSafe for ExperimentRun
impl Send for ExperimentRun
impl Sync for ExperimentRun
impl Unpin for ExperimentRun
impl UnwindSafe for ExperimentRun
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more