pub struct MLModel {
pub name: String,
pub model_type: MLModelType,
pub parameters: HashMap<String, f64>,
pub accuracy: f64,
pub last_trained: SystemTime,
pub prediction_count: u64,
}Expand description
ML model abstraction
Fields§
§name: StringModel name
model_type: MLModelTypeModel type
parameters: HashMap<String, f64>Model parameters
accuracy: f64Training accuracy
last_trained: SystemTimeLast training time
prediction_count: u64Prediction count
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MLModel
impl RefUnwindSafe for MLModel
impl Send for MLModel
impl Sync for MLModel
impl Unpin for MLModel
impl UnwindSafe for MLModel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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