Struct ModelBuilderData

Source
pub struct ModelBuilderData<'a, M, Y, F>
where M: Glm, Y: Response<M>, F: 'static + Float,
{ /* private fields */ }
Expand description

Holds the data and all the specifications for the model and provides functions to adjust the settings.

Implementations§

Source§

impl<'a, M, Y, F> ModelBuilderData<'a, M, Y, F>
where M: Glm, Y: Response<M> + Copy, F: Float,

A builder to generate a Model object

Source

pub fn linear_offset(self, linear_offset: Array1<F>) -> Self

Represents an offset added to the linear predictor for each data point. This can be used to control for fixed effects or in multi-level models.

Source

pub fn no_constant(self) -> Self

Do not add a constant term to the design matrix

Source

pub fn colinear_tol(self, tol: F) -> Self

Set the tolerance for the co-linearity check. The check can be effectively disabled by setting the tolerance to a negative value.

Source

pub fn build(self) -> RegressionResult<Model<M, F>>
where M: Glm, F: Float,

Auto Trait Implementations§

§

impl<'a, M, Y, F> Freeze for ModelBuilderData<'a, M, Y, F>
where F: Freeze,

§

impl<'a, M, Y, F> RefUnwindSafe for ModelBuilderData<'a, M, Y, F>

§

impl<'a, M, Y, F> Send for ModelBuilderData<'a, M, Y, F>
where F: Send + Sync, M: Send, Y: Sync,

§

impl<'a, M, Y, F> Sync for ModelBuilderData<'a, M, Y, F>
where F: Sync, M: Sync, Y: Sync,

§

impl<'a, M, Y, F> Unpin for ModelBuilderData<'a, M, Y, F>
where F: Unpin, M: Unpin,

§

impl<'a, M, Y, F> UnwindSafe for ModelBuilderData<'a, M, Y, F>

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, 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