pub struct PreprocessInput<'a> {
pub x: Option<MatRef<'a, f64>>,
pub y: Option<ColRef<'a, f64>>,
pub weights: Option<ColRef<'a, f64>>,
}Expand description
Input for preprocess. All three fields are independently optional.
Fields§
§x: Option<MatRef<'a, f64>>Predictor matrix (n_samples, n_features) if provided.
y: Option<ColRef<'a, f64>>Response vector (n_samples,) if provided.
weights: Option<ColRef<'a, f64>>Length-n observation weights if provided.
Trait Implementations§
Source§impl<'a> Clone for PreprocessInput<'a>
impl<'a> Clone for PreprocessInput<'a>
impl<'a> Copy for PreprocessInput<'a>
Auto Trait Implementations§
impl<'a> Freeze for PreprocessInput<'a>
impl<'a> RefUnwindSafe for PreprocessInput<'a>
impl<'a> Send for PreprocessInput<'a>
impl<'a> Sync for PreprocessInput<'a>
impl<'a> Unpin for PreprocessInput<'a>
impl<'a> UnsafeUnpin for PreprocessInput<'a>
impl<'a> UnwindSafe for PreprocessInput<'a>
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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