pub struct TrainRouterOptions {
pub output_path: String,
pub input_dim: u32,
pub hidden_dim: Option<u32>,
pub epochs: Option<u32>,
pub learning_rate: Option<f64>,
pub tolerance: Option<f64>,
}Expand description
Options for trainRouter.
Fields§
§output_path: StringWhere to write the trained .safetensors model.
input_dim: u32Input feature dimension (must equal the embedding length).
Hidden dimension (default 12).
epochs: Option<u32>Training epochs (default 40).
learning_rate: Option<f64>Learning rate (default 0.05).
tolerance: Option<f64>DRACO label tolerance: cheap model is “good enough” within this of the best (default 0.05).
Trait Implementations§
Source§impl FromNapiValue for TrainRouterOptions
impl FromNapiValue for TrainRouterOptions
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 TrainRouterOptions
impl ToNapiValue for TrainRouterOptions
Source§unsafe fn to_napi_value(
env: napi_env,
val: TrainRouterOptions,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: TrainRouterOptions, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for TrainRouterOptions
impl TypeName for TrainRouterOptions
Source§impl ValidateNapiValue for TrainRouterOptions
impl ValidateNapiValue for TrainRouterOptions
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 TrainRouterOptions
impl RefUnwindSafe for TrainRouterOptions
impl Send for TrainRouterOptions
impl Sync for TrainRouterOptions
impl Unpin for TrainRouterOptions
impl UnsafeUnpin for TrainRouterOptions
impl UnwindSafe for TrainRouterOptions
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