Trait linfa::dataset::AsTargetsMut
source · [−]pub trait AsTargetsMut {
type Elem;
fn as_multi_targets_mut(&mut self) -> ArrayViewMut2<'_, Self::Elem>;
fn try_single_target_mut(&mut self) -> Result<ArrayViewMut1<'_, Self::Elem>> { ... }
}
Associated Types
Required methods
fn as_multi_targets_mut(&mut self) -> ArrayViewMut2<'_, Self::Elem>
fn as_multi_targets_mut(&mut self) -> ArrayViewMut2<'_, Self::Elem>
Returns a mutable view on targets as two-dimensional array
Provided methods
fn try_single_target_mut(&mut self) -> Result<ArrayViewMut1<'_, Self::Elem>>
fn try_single_target_mut(&mut self) -> Result<ArrayViewMut1<'_, Self::Elem>>
Convert to single target, fails for more than one target