Trait linfa::dataset::FromTargetArray [−][src]
pub trait FromTargetArray<'a, F> { type Owned; type View; fn new_targets(targets: Array2<F>) -> Self::Owned; fn new_targets_view(targets: ArrayView2<'a, F>) -> Self::View; }
Helper trait to construct counted labels
This is implemented for objects which can act as targets and created from a target matrix. For
targets represented as ndarray
matrix this is identity, for counted labels, i.e.
TargetsWithLabels
, it creates the corresponding wrapper struct.
Associated Types
Loading content...Required methods
fn new_targets(targets: Array2<F>) -> Self::Owned
[src]
Create self object from new target array
fn new_targets_view(targets: ArrayView2<'a, F>) -> Self::View
[src]
Implementations on Foreign Types
Loading content...Implementors
impl<'a, L: Label + 'a, T> FromTargetArray<'a, L> for CountedTargets<L, T> where
T: AsTargets<Elem = L> + FromTargetArray<'a, L>,
T::Owned: Labels<Elem = L>,
T::View: Labels<Elem = L>,
[src]
impl<'a, L: Label + 'a, T> FromTargetArray<'a, L> for CountedTargets<L, T> where
T: AsTargets<Elem = L> + FromTargetArray<'a, L>,
T::Owned: Labels<Elem = L>,
T::View: Labels<Elem = L>,
[src]