pub struct MockTransformer { /* private fields */ }Expand description
Mock transformer for testing transformation pipelines
Implementations§
Source§impl MockTransformer
impl MockTransformer
Sourcepub fn new(transform_type: MockTransformType) -> Self
pub fn new(transform_type: MockTransformType) -> Self
Create a new mock transformer
Sourcepub fn builder() -> MockTransformerBuilder
pub fn builder() -> MockTransformerBuilder
Create a mock transformer builder
Trait Implementations§
Source§impl Clone for MockTransformer
impl Clone for MockTransformer
Source§fn clone(&self) -> MockTransformer
fn clone(&self) -> MockTransformer
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 MockTransformer
impl Debug for MockTransformer
Source§impl<'a> Fit<ArrayBase<ViewRepr<&'a f64>, Dim<[usize; 2]>>, ArrayBase<ViewRepr<&'a f64>, Dim<[usize; 1]>>> for MockTransformer
impl<'a> Fit<ArrayBase<ViewRepr<&'a f64>, Dim<[usize; 2]>>, ArrayBase<ViewRepr<&'a f64>, Dim<[usize; 1]>>> for MockTransformer
Source§type Fitted = MockTransformer
type Fitted = MockTransformer
The fitted model type
Source§fn fit(
self,
x: &ArrayView2<'a, f64>,
_y: &ArrayView1<'a, f64>,
) -> Result<Self::Fitted>
fn fit( self, x: &ArrayView2<'a, f64>, _y: &ArrayView1<'a, f64>, ) -> Result<Self::Fitted>
Fit the model to the provided data with validation
Auto Trait Implementations§
impl Freeze for MockTransformer
impl RefUnwindSafe for MockTransformer
impl Send for MockTransformer
impl Sync for MockTransformer
impl Unpin for MockTransformer
impl UnwindSafe for MockTransformer
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