pub struct ExperimentRun {Show 14 fields
pub run_id: RunId,
pub recipe: Option<RecipeReference>,
pub hyperparameters: Hyperparameters,
pub started_at: DateTime<Utc>,
pub finished_at: Option<DateTime<Utc>>,
pub status: RunStatus,
pub hardware: HardwareInfo,
pub metrics: Vec<MetricRecord>,
pub artifacts: Vec<ArtifactReference>,
pub log_uri: Option<String>,
pub git_commit: Option<String>,
pub git_dirty: bool,
pub error_message: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
An experiment run tracking a training execution.
Fields§
§run_id: RunIdUnique run identifier.
recipe: Option<RecipeReference>Recipe used for this run.
hyperparameters: HyperparametersActual hyperparameters used (may override recipe).
started_at: DateTime<Utc>When the run started.
finished_at: Option<DateTime<Utc>>When the run finished.
status: RunStatusCurrent status.
hardware: HardwareInfoHardware used.
metrics: Vec<MetricRecord>Metrics recorded during training.
artifacts: Vec<ArtifactReference>Artifacts produced.
log_uri: Option<String>Log URI.
git_commit: Option<String>Git commit hash.
git_dirty: boolWhether the git working directory was dirty.
error_message: Option<String>Error message if failed.
extra: HashMap<String, Value>Additional metadata.
Implementations§
Source§impl ExperimentRun
impl ExperimentRun
Sourcepub fn new(hyperparameters: Hyperparameters) -> Self
pub fn new(hyperparameters: Hyperparameters) -> Self
Create a new experiment run.
Sourcepub fn from_recipe(
recipe: RecipeReference,
hyperparameters: Hyperparameters,
) -> Self
pub fn from_recipe( recipe: RecipeReference, hyperparameters: Hyperparameters, ) -> Self
Create a run from a recipe.
Sourcepub fn get_metric(&self, name: &str) -> Option<f64>
pub fn get_metric(&self, name: &str) -> Option<f64>
Get the latest value for a metric.
Sourcepub fn duration_secs(&self) -> Option<i64>
pub fn duration_secs(&self) -> Option<i64>
Get duration in seconds.
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Check if the run is finished.
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 (const: unstable) · Source§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 UnsafeUnpin for ExperimentRun
impl UnwindSafe for ExperimentRun
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more