[−][src]Struct crabsformer::MatrixLoaderForCSV
Matrix loader for CSV formatted file.
See also: Matrix::from_csv
.
Methods
impl<T, P> MatrixLoaderForCSV<T, P> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
pub fn has_headers(self, yes: bool) -> MatrixLoaderForCSV<T, P>
[src]
Set to true to treat the first row as a special header row. By default, it is set to false.
Examples
use crabsformer::*; let dataset: Matrix<f32> = Matrix::from_csv("tests/dataset.csv") .has_headers(true) .load() .unwrap();
pub fn load(self) -> Result<Matrix<T>, LoadError> where
T: FromPrimitive + Num + Copy + TypeName,
[src]
T: FromPrimitive + Num + Copy + TypeName,
Load Matrix from CSV file. You need to explicitly annotate the numeric type.
Examples
use crabsformer::*; let dataset: Matrix<f32> = Matrix::from_csv("tests/weight.csv").load().unwrap();
Trait Implementations
Auto Trait Implementations
impl<T, P> Send for MatrixLoaderForCSV<T, P> where
P: Send,
T: Send,
P: Send,
T: Send,
impl<T, P> Sync for MatrixLoaderForCSV<T, P> where
P: Sync,
T: Sync,
P: Sync,
T: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,