pub struct EnsembleTensorOps { /* private fields */ }Expand description
Ensemble tensor operations
Implementations§
Source§impl EnsembleTensorOps
impl EnsembleTensorOps
Sourcepub fn new(config: TensorConfig) -> Self
pub fn new(config: TensorConfig) -> Self
Create new ensemble tensor operations
Sourcepub fn train_ensemble_tensors(
&mut self,
x: &Array2<Float>,
y: &Array1<Int>,
n_estimators: usize,
) -> Result<Vec<Tensor>>
pub fn train_ensemble_tensors( &mut self, x: &Array2<Float>, y: &Array1<Int>, n_estimators: usize, ) -> Result<Vec<Tensor>>
Train ensemble with tensor operations
Sourcepub fn predict_ensemble_tensors(
&mut self,
models: &[Tensor],
x: &Array2<Float>,
) -> Result<Tensor>
pub fn predict_ensemble_tensors( &mut self, models: &[Tensor], x: &Array2<Float>, ) -> Result<Tensor>
Predict with ensemble using tensor operations
Sourcepub fn context_mut(&mut self) -> &mut TensorOpsContext
pub fn context_mut(&mut self) -> &mut TensorOpsContext
Get mutable context
Sourcepub fn context(&self) -> &TensorOpsContext
pub fn context(&self) -> &TensorOpsContext
Get context
Auto Trait Implementations§
impl Freeze for EnsembleTensorOps
impl RefUnwindSafe for EnsembleTensorOps
impl Send for EnsembleTensorOps
impl Sync for EnsembleTensorOps
impl Unpin for EnsembleTensorOps
impl UnwindSafe for EnsembleTensorOps
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> 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