pub struct MockPredictor { /* private fields */ }Expand description
Mock predictor for testing and demonstration
Implementations§
Trait Implementations§
Source§impl Clone for MockPredictor
impl Clone for MockPredictor
Source§fn clone(&self) -> MockPredictor
fn clone(&self) -> MockPredictor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MockPredictor
impl Debug for MockPredictor
Source§impl Default for MockPredictor
impl Default for MockPredictor
Source§impl PipelinePredictor for MockPredictor
impl PipelinePredictor for MockPredictor
Source§fn predict(&self, x: &ArrayView2<'_, Float>) -> SklResult<Array1<f64>>
fn predict(&self, x: &ArrayView2<'_, Float>) -> SklResult<Array1<f64>>
Predict on the transformed data
Source§fn fit(
&mut self,
x: &ArrayView2<'_, Float>,
y: &ArrayView1<'_, Float>,
) -> SklResult<()>
fn fit( &mut self, x: &ArrayView2<'_, Float>, y: &ArrayView1<'_, Float>, ) -> SklResult<()>
Fit the predictor to data
Source§fn clone_predictor(&self) -> Box<dyn PipelinePredictor>
fn clone_predictor(&self) -> Box<dyn PipelinePredictor>
Clone the predictor
Auto Trait Implementations§
impl Freeze for MockPredictor
impl RefUnwindSafe for MockPredictor
impl Send for MockPredictor
impl Sync for MockPredictor
impl Unpin for MockPredictor
impl UnwindSafe for MockPredictor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more