Struct treerite::DMatrix [−][src]
pub struct DMatrix<F> { /* fields omitted */ }
Expand description
Data matrix used in Treerite.
Implementations
pub fn from_2darray<'a, A>(array: A) -> Result<DMatrix<F>, TreeRiteError> where
A: AsArray<'a, F, Ix2>,
F: 'a,
pub fn from_2darray<'a, A>(array: A) -> Result<DMatrix<F>, TreeRiteError> where
A: AsArray<'a, F, Ix2>,
F: 'a,
Create a DMatrix from any type that can be converted to a 2d ndarray::ArrayView. This function is zero copy.
Create a single row DMatrix from a slice of floats. Useful for prediction for a single instance. This function is zero copy.
Number of rows in this DMatrix
Number of columns in this DMatrix