Struct ndarray_glm::model::Model [−][src]
pub struct Model<M, F> where
M: Glm,
F: Float, { pub model: PhantomData<M>, pub y: Array1<F>, pub x: Array2<F>, pub linear_offset: Option<Array1<F>>, pub use_intercept: bool, }
Expand description
Holds the data and configuration settings for a regression.
Fields
model: PhantomData<M>
y: Array1<F>
the observation of response data by event
x: Array2<F>
the design matrix with events in rows and instances in columns
linear_offset: Option<Array1<F>>
The offset in the linear predictor for each data point. This can be used to fix the effect of control variables.
use_intercept: bool
Whether the intercept term is used (commonly true)
Implementations
Perform the regression and return a fit object holding the results.
Fit options builder interface
An experimental interface that would allow fit options to be set externally.
Returns the linear predictors, i.e. the design matrix multiplied by the regression parameters. Each entry in the resulting array is the linear predictor for a given observation. If linear offsets for each observation are provided, these are added to the linear predictors
Auto Trait Implementations
impl<M, F> RefUnwindSafe for Model<M, F> where
F: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, F> UnwindSafe for Model<M, F> where
F: RefUnwindSafe,
M: UnwindSafe,