pub struct ClassificationPipeline<T, M> { /* private fields */ }Expand description
A pipeline combining a transformer and a binary classifier.
Implementations§
Source§impl<T, M> ClassificationPipeline<T, M>where
T: Transformer,
M: OnlineBinaryClassifier,
impl<T, M> ClassificationPipeline<T, M>where
T: Transformer,
M: OnlineBinaryClassifier,
Trait Implementations§
Source§impl<T: Clone, M: Clone> Clone for ClassificationPipeline<T, M>
impl<T: Clone, M: Clone> Clone for ClassificationPipeline<T, M>
Source§fn clone(&self) -> ClassificationPipeline<T, M>
fn clone(&self) -> ClassificationPipeline<T, M>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T, M> OnlineBinaryClassifier for ClassificationPipeline<T, M>where
T: Transformer,
M: OnlineBinaryClassifier,
impl<T, M> OnlineBinaryClassifier for ClassificationPipeline<T, M>where
T: Transformer,
M: OnlineBinaryClassifier,
Source§fn feature_count(&self) -> usize
fn feature_count(&self) -> usize
The number of features the model expects.
Source§fn samples_seen(&self) -> u64
fn samples_seen(&self) -> u64
How many training samples the model has seen so far.
Source§fn predict_proba(&self, features: &[f64]) -> Result<f64, RillError>
fn predict_proba(&self, features: &[f64]) -> Result<f64, RillError>
Predict the probability of the positive class.
Auto Trait Implementations§
impl<T, M> Freeze for ClassificationPipeline<T, M>
impl<T, M> RefUnwindSafe for ClassificationPipeline<T, M>where
T: RefUnwindSafe,
M: RefUnwindSafe,
impl<T, M> Send for ClassificationPipeline<T, M>
impl<T, M> Sync for ClassificationPipeline<T, M>
impl<T, M> Unpin for ClassificationPipeline<T, M>
impl<T, M> UnsafeUnpin for ClassificationPipeline<T, M>where
T: UnsafeUnpin,
M: UnsafeUnpin,
impl<T, M> UnwindSafe for ClassificationPipeline<T, M>where
T: UnwindSafe,
M: 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