pub struct MetadataInspection {
pub model_type_name: String,
pub n_parameters: u64,
pub n_features: u32,
pub n_outputs: u32,
pub hyperparameters: HashMap<String, String>,
pub training_info: Option<TrainingInfo>,
pub license_info: Option<LicenseInfo>,
pub custom: HashMap<String, String>,
}Expand description
Metadata inspection details
Fields§
§model_type_name: StringModel type name
n_parameters: u64Number of parameters
n_features: u32Number of features
n_outputs: u32Number of outputs
hyperparameters: HashMap<String, String>Hyperparameters
training_info: Option<TrainingInfo>Training info
license_info: Option<LicenseInfo>License info
custom: HashMap<String, String>Custom metadata
Implementations§
Source§impl MetadataInspection
impl MetadataInspection
Sourcepub fn has_training_info(&self) -> bool
pub fn has_training_info(&self) -> bool
Check if model has training info
Sourcepub fn is_licensed(&self) -> bool
pub fn is_licensed(&self) -> bool
Check if model is licensed
Trait Implementations§
Source§impl Clone for MetadataInspection
impl Clone for MetadataInspection
Source§fn clone(&self) -> MetadataInspection
fn clone(&self) -> MetadataInspection
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 moreAuto Trait Implementations§
impl Freeze for MetadataInspection
impl RefUnwindSafe for MetadataInspection
impl Send for MetadataInspection
impl Sync for MetadataInspection
impl Unpin for MetadataInspection
impl UnwindSafe for MetadataInspection
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> 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