[][src]Struct randomforest::table::Table

pub struct Table<'a> { /* fields omitted */ }

A table.

Implementations

impl<'a> Table<'a>[src]

pub fn rows<'b>(&'b self) -> impl 'b + Iterator<Item = Vec<f64>>[src]

Returns an iterator over all rows of the table.

The last element of each row is the target value.

pub fn train_test_split<R: Rng + ?Sized>(
    self,
    rng: &mut R,
    test_rate: f64
) -> (Self, Self)
[src]

Splits the table into train and test datasets.

Trait Implementations

impl<'a> Clone for Table<'a>[src]

impl<'a> Debug for Table<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Table<'a>

impl<'a> Send for Table<'a>

impl<'a> Sync for Table<'a>

impl<'a> Unpin for Table<'a>

impl<'a> UnwindSafe for Table<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,