Struct ndarray_glm::model::ModelBuilder
source · [−]pub struct ModelBuilder<M: Glm> { /* private fields */ }
Expand description
Provides an interface to create the full model option struct with convenient type inference.
Implementations
sourceimpl<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> where
Y: Response<M>,
F: Float,
YD: Data<Elem = Y>,
XD: Data<Elem = 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> where
Y: Response<M>,
F: Float,
YD: Data<Elem = Y>,
XD: Data<Elem = 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> 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> UnwindSafe for ModelBuilder<M> where
M: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more