pub struct Model<M, F>where
M: Glm,
F: Float,{
pub data: Dataset<F>,
pub use_intercept: bool,
/* private fields */
}
Expand description
Holds the data and configuration settings for a regression.
Fields§
§data: Dataset<F>
The dataset
use_intercept: bool
Whether the intercept term is used (commonly true)
Implementations§
Source§impl<M, F> Model<M, F>where
M: Glm,
F: Float,
impl<M, F> Model<M, F>where
M: Glm,
F: Float,
Sourcepub fn fit(&self) -> RegressionResult<Fit<'_, M, F>>
pub fn fit(&self) -> RegressionResult<Fit<'_, M, F>>
Perform the regression and return a fit object holding the results.
Sourcepub fn fit_options(&self) -> FitConfig<'_, M, F>
pub fn fit_options(&self) -> FitConfig<'_, M, F>
Fit options builder interface
Sourcepub fn with_options(&self, options: FitOptions<F>) -> FitConfig<'_, M, F>
pub fn with_options(&self, options: FitOptions<F>) -> FitConfig<'_, M, F>
An experimental interface that would allow fit options to be set externally.
Auto Trait Implementations§
impl<M, F> !Freeze for Model<M, F>
impl<M, F> !RefUnwindSafe for Model<M, F>
impl<M, F> Send for Model<M, F>
impl<M, F> !Sync for Model<M, F>
impl<M, F> Unpin for Model<M, F>where
M: Unpin,
impl<M, F> UnwindSafe for Model<M, F>where
M: UnwindSafe,
F: RefUnwindSafe,
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