pub struct TrainRouterResult {
pub epochs_run: u32,
pub train_loss: f64,
pub train_accuracy: f64,
pub val_accuracy: f64,
pub model_path: String,
pub model_bytes: u32,
}Expand description
Result of trainRouter.
Fields§
§epochs_run: u32§train_loss: f64§train_accuracy: f64§val_accuracy: f64§model_path: String§model_bytes: u32Trait Implementations§
Source§impl FromNapiValue for TrainRouterResult
impl FromNapiValue for TrainRouterResult
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for TrainRouterResult
impl ToNapiValue for TrainRouterResult
Source§unsafe fn to_napi_value(
env: napi_env,
val: TrainRouterResult,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: TrainRouterResult, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for TrainRouterResult
impl TypeName for TrainRouterResult
Source§impl ValidateNapiValue for TrainRouterResult
impl ValidateNapiValue for TrainRouterResult
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for TrainRouterResult
impl RefUnwindSafe for TrainRouterResult
impl Send for TrainRouterResult
impl Sync for TrainRouterResult
impl Unpin for TrainRouterResult
impl UnsafeUnpin for TrainRouterResult
impl UnwindSafe for TrainRouterResult
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