pub struct ModelBuilder<M: Glm> { /* private fields */ }Expand description
Provides an interface to create the full model option struct with convenient type inference.
Implementations§
Source§impl<M: Glm> ModelBuilder<M>
impl<M: Glm> ModelBuilder<M>
Sourcepub fn data<'a, Y, F, YD, XD>(
data_y: &'a ArrayBase<YD, Ix1>,
data_x: &'a ArrayBase<XD, Ix2>,
) -> ModelBuilderData<'a, M, Y, F>
pub fn data<'a, Y, F, YD, XD>( data_y: &'a ArrayBase<YD, Ix1>, data_x: &'a ArrayBase<XD, Ix2>, ) -> ModelBuilderData<'a, M, Y, F>
Borrow the Y and X data where each row in the arrays is a new observation, and create the full model builder with the data to allow for adjusting additional options.
Auto Trait Implementations§
impl<M> Freeze for ModelBuilder<M>
impl<M> RefUnwindSafe for ModelBuilder<M>where
M: RefUnwindSafe,
impl<M> Send for ModelBuilder<M>where
M: Send,
impl<M> Sync for ModelBuilder<M>where
M: Sync,
impl<M> Unpin for ModelBuilder<M>where
M: Unpin,
impl<M> UnsafeUnpin for ModelBuilder<M>
impl<M> UnwindSafe for ModelBuilder<M>where
M: UnwindSafe,
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 moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.