pub struct MockExtractor {}Expand description
Mock feature extractor for testing
Implementations§
Source§impl MockExtractor
impl MockExtractor
Trait Implementations§
Source§impl Debug for MockExtractor
impl Debug for MockExtractor
Source§impl Default for MockExtractor
impl Default for MockExtractor
Source§impl PipelinePredictor for MockExtractor
impl PipelinePredictor for MockExtractor
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 predict(&self, x: &ArrayView2<'_, Float>) -> SklResult<Array1<f64>>
fn predict(&self, x: &ArrayView2<'_, Float>) -> SklResult<Array1<f64>>
Predict on the transformed 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 MockExtractor
impl RefUnwindSafe for MockExtractor
impl Send for MockExtractor
impl Sync for MockExtractor
impl Unpin for MockExtractor
impl UnwindSafe for MockExtractor
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> 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