pub struct ClassificationDataSet<Features, Label> {
pub dataset: Vec<ClassificationRecord<Features, Label>>,
}Expand description
Dataset to feed into classification model for training task
Fields§
§dataset: Vec<ClassificationRecord<Features, Label>>dataset of classification records on which to train
Implementations§
Source§impl<Features, Label> ClassificationDataSet<Features, Label>
impl<Features, Label> ClassificationDataSet<Features, Label>
Sourcepub fn get_labels(&self) -> Vec<&Label>
pub fn get_labels(&self) -> Vec<&Label>
get labels for record
Sourcepub fn get_features(&self) -> Vec<&Features>
pub fn get_features(&self) -> Vec<&Features>
get features
Sourcepub fn get_records(&self) -> &Vec<ClassificationRecord<Features, Label>>
pub fn get_records(&self) -> &Vec<ClassificationRecord<Features, Label>>
get records
Sourcepub fn consume_records(self) -> Vec<ClassificationRecord<Features, Label>>
pub fn consume_records(self) -> Vec<ClassificationRecord<Features, Label>>
consume records of dataset
Trait Implementations§
Source§impl<Input: Estimatable, Label: PartialEq + Clone> Estimator<ClassificationDataSet<Input, Label>> for GaussianNBEstimator
impl<Input: Estimatable, Label: PartialEq + Clone> Estimator<ClassificationDataSet<Input, Label>> for GaussianNBEstimator
Source§type Estimator = GaussianNB<Input, Label>
type Estimator = GaussianNB<Input, Label>
Output model or transformer fitted to input data.
Source§impl<Itr, Record, Features, Label> From<Itr> for ClassificationDataSet<Features, Label>
impl<Itr, Record, Features, Label> From<Itr> for ClassificationDataSet<Features, Label>
Auto Trait Implementations§
impl<Features, Label> Freeze for ClassificationDataSet<Features, Label>
impl<Features, Label> RefUnwindSafe for ClassificationDataSet<Features, Label>where
Features: RefUnwindSafe,
Label: RefUnwindSafe,
impl<Features, Label> Send for ClassificationDataSet<Features, Label>
impl<Features, Label> Sync for ClassificationDataSet<Features, Label>
impl<Features, Label> Unpin for ClassificationDataSet<Features, Label>
impl<Features, Label> UnwindSafe for ClassificationDataSet<Features, Label>where
Features: UnwindSafe,
Label: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more