[][src]Trait linfa::dataset::Targets

pub trait Targets {
    type Elem;
    pub fn as_slice(&self) -> &[Self::Elem];
}

Targets

Associated Types

Loading content...

Required methods

pub fn as_slice(&self) -> &[Self::Elem][src]

Loading content...

Implementations on Foreign Types

impl<L> Targets for Vec<L>[src]

A vector can act as targets

type Elem = L

impl<L, '_> Targets for &'_ [L][src]

A slice can act as targets

type Elem = L

impl<L, S: Data<Elem = L>> Targets for ArrayBase<S, Ix1>[src]

A NdArray can act as targets

type Elem = L

impl Targets for ()[src]

Empty targets for datasets with just observations

type Elem = ()

impl<T: Targets, '_> Targets for &'_ T[src]

type Elem = T::Elem

Loading content...

Implementors

Loading content...