pub struct BatchPredictor { /* private fields */ }Expand description
Batch predictor for processing multiple time series
Implementations§
Source§impl BatchPredictor
impl BatchPredictor
pub fn into_reference( val: BatchPredictor, env: Env, ) -> Result<Reference<BatchPredictor>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<BatchPredictor>>
Source§impl BatchPredictor
impl BatchPredictor
Sourcepub async fn add_model(&self, model: &NeuralModel) -> Result<u32>
pub async fn add_model(&self, model: &NeuralModel) -> Result<u32>
Add a model to the batch
Sourcepub async fn predict_batch(
&self,
inputs: Vec<Vec<f64>>,
) -> Result<Vec<PredictionResult>>
pub async fn predict_batch( &self, inputs: Vec<Vec<f64>>, ) -> Result<Vec<PredictionResult>>
Predict using all models in parallel
Trait Implementations§
Source§impl FromNapiMutRef for BatchPredictor
impl FromNapiMutRef for BatchPredictor
Source§unsafe fn from_napi_mut_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static mut Self>
unsafe fn from_napi_mut_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static mut Self>
Safety Read more
Source§impl FromNapiRef for BatchPredictor
impl FromNapiRef for BatchPredictor
Source§unsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static Self>
unsafe fn from_napi_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static Self>
Safety Read more
Source§impl FromNapiValue for &BatchPredictor
impl FromNapiValue for &BatchPredictor
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 FromNapiValue for &mut BatchPredictor
impl FromNapiValue for &mut BatchPredictor
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 ObjectFinalize for BatchPredictor
impl ObjectFinalize for BatchPredictor
Source§impl ToNapiValue for BatchPredictor
impl ToNapiValue for BatchPredictor
Source§unsafe fn to_napi_value(
env: napi_env,
val: BatchPredictor,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: BatchPredictor, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for &BatchPredictor
impl TypeName for &BatchPredictor
Source§impl TypeName for &mut BatchPredictor
impl TypeName for &mut BatchPredictor
Source§impl TypeName for BatchPredictor
impl TypeName for BatchPredictor
Source§impl ValidateNapiValue for &BatchPredictor
impl ValidateNapiValue for &BatchPredictor
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for &mut BatchPredictor
impl ValidateNapiValue for &mut BatchPredictor
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Auto Trait Implementations§
impl Freeze for BatchPredictor
impl !RefUnwindSafe for BatchPredictor
impl Send for BatchPredictor
impl Sync for BatchPredictor
impl Unpin for BatchPredictor
impl !UnwindSafe for BatchPredictor
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