Trait Features

Source
pub trait Features {
    // Required method
    fn into_matrix(self, bias: bool) -> DMatrix<f64>;
}
Expand description

Represents two dimensional, dense feature data

Required Methods§

Source

fn into_matrix(self, bias: bool) -> DMatrix<f64>

Processes the features into a dense matrix

§Arguments

bias - Whether or not to include a bias term, which results in prepending a column of 1’s

Implementations on Foreign Types§

Source§

impl Features for &Vec<Vec<f64>>

Source§

fn into_matrix(self, bias: bool) -> DMatrix<f64>

Source§

impl Features for &[&[f64]]

Source§

fn into_matrix(self, bias: bool) -> DMatrix<f64>

Source§

impl Features for Vec<Vec<f64>>

Source§

fn into_matrix(self, bias: bool) -> DMatrix<f64>

Implementors§