TypeSafePipeline

Struct TypeSafePipeline 

Source
pub struct TypeSafePipeline<S1, S2, D1, D2, D3>{ /* private fields */ }
Expand description

Type-safe pipeline that chains transformers with compile-time validation

Implementations§

Source§

impl<D1: Dimension, D2: Dimension, D3: Dimension> TypeSafePipeline<Unfitted, Unfitted, D1, D2, D3>

Type-safe pipeline in unfitted state

Source

pub fn new( first: TypeSafeTransformer<Unfitted, D1, D2>, second: TypeSafeTransformer<Unfitted, D2, D3>, ) -> Self

Create a new pipeline by chaining two unfitted transformers

Source§

impl TypeSafePipeline<Unfitted, Unfitted, Dynamic, Dynamic, Dynamic>

Fit pipeline with dynamic dimensions

Source

pub fn fit( self, X: &Array2<f64>, ) -> Result<TypeSafePipeline<Fitted, Fitted, Dynamic, Dynamic, Dynamic>>

Fit the entire pipeline to data

Source§

impl<const D1: usize, const D2: usize, const D3: usize> TypeSafePipeline<Unfitted, Unfitted, Known<D1>, Known<D2>, Known<D3>>

Fit pipeline with known dimensions

Source

pub fn fit( self, X: &Array2<f64>, ) -> Result<TypeSafePipeline<Fitted, Fitted, Known<D1>, Known<D2>, Known<D3>>>

Fit the entire pipeline to data with compile-time dimension validation

Source§

impl TypeSafePipeline<Fitted, Fitted, Dynamic, Dynamic, Dynamic>

Transform for fitted pipeline with dynamic dimensions

Source

pub fn transform(&self, X: &Array2<f64>) -> Result<Array2<f64>>

Transform data through the entire pipeline

Source§

impl<const D1: usize, const D2: usize, const D3: usize> TypeSafePipeline<Fitted, Fitted, Known<D1>, Known<D2>, Known<D3>>

Transform for fitted pipeline with known dimensions

Source

pub fn transform(&self, X: &Array2<f64>) -> Result<Array2<f64>>

Transform data through the entire pipeline with compile-time dimension validation

Auto Trait Implementations§

§

impl<S1, S2, D1, D2, D3> Freeze for TypeSafePipeline<S1, S2, D1, D2, D3>

§

impl<S1, S2, D1, D2, D3> RefUnwindSafe for TypeSafePipeline<S1, S2, D1, D2, D3>

§

impl<S1, S2, D1, D2, D3> Send for TypeSafePipeline<S1, S2, D1, D2, D3>
where S1: Send, D1: Send, D2: Send, S2: Send, D3: Send,

§

impl<S1, S2, D1, D2, D3> Sync for TypeSafePipeline<S1, S2, D1, D2, D3>
where S1: Sync, D1: Sync, D2: Sync, S2: Sync, D3: Sync,

§

impl<S1, S2, D1, D2, D3> Unpin for TypeSafePipeline<S1, S2, D1, D2, D3>
where S1: Unpin, D1: Unpin, D2: Unpin, S2: Unpin, D3: Unpin,

§

impl<S1, S2, D1, D2, D3> UnwindSafe for TypeSafePipeline<S1, S2, D1, D2, D3>
where S1: UnwindSafe, D1: UnwindSafe, D2: UnwindSafe, S2: UnwindSafe, D3: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V