pub struct ModelMetadata {
pub total_steps: Option<usize>,
pub total_episodes: Option<usize>,
pub final_performance: Option<f64>,
pub training_time_secs: Option<f64>,
pub device: Option<String>,
pub environment: Option<String>,
pub algorithm: Option<String>,
pub timestamp: Option<String>,
pub notes: Option<String>,
pub hyperparameters: Option<HashMap<String, Value>>,
}Expand description
Training metadata
All fields are optional so older .model.json files (or models exported
without a particular field populated) continue to deserialize cleanly.
None values are skipped during serialization.
Fields§
§total_steps: Option<usize>Total gradient steps the optimizer took during training.
total_episodes: Option<usize>Total environment episodes consumed during training.
final_performance: Option<f64>Final evaluation metric (typically mean episode return) recorded by the trainer at the time of export. Units are algorithm-specific.
training_time_secs: Option<f64>Wall-clock training time in seconds.
device: Option<String>Name of the compute device used (e.g. "cuda:0", "cpu", "mps").
environment: Option<String>Environment identifier (e.g. "snake-10x10", "cartpole").
algorithm: Option<String>Training algorithm identifier (e.g. "ppo").
timestamp: Option<String>ISO-8601 timestamp of export, set by the trainer.
notes: Option<String>Free-form notes captured at export (e.g. “trained on 4xH100”).
hyperparameters: Option<HashMap<String, Value>>Hyperparameter snapshot captured at export. Values are kept as
serde_json::Value so the wire format is open to additional keys
without trainer/inference coupling.
Trait Implementations§
Source§impl Clone for ModelMetadata
impl Clone for ModelMetadata
Source§fn clone(&self) -> ModelMetadata
fn clone(&self) -> ModelMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelMetadata
impl Debug for ModelMetadata
Source§impl<'de> Deserialize<'de> for ModelMetadata
impl<'de> Deserialize<'de> for ModelMetadata
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>,
Auto Trait Implementations§
impl Freeze for ModelMetadata
impl RefUnwindSafe for ModelMetadata
impl Send for ModelMetadata
impl Sync for ModelMetadata
impl Unpin for ModelMetadata
impl UnsafeUnpin for ModelMetadata
impl UnwindSafe for ModelMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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