pub struct GenLinearModel<C: Criterion> { /* private fields */ }Expand description
The Generalized Linear Model
The model is generic over a Criterion which specifies the distribution family and the link function.
Implementations§
Source§impl<C: Criterion> GenLinearModel<C>
impl<C: Criterion> GenLinearModel<C>
Sourcepub fn new(criterion: C) -> GenLinearModel<C>
pub fn new(criterion: C) -> GenLinearModel<C>
Constructs a new Generalized Linear Model.
Takes a Criterion which fully specifies the family and the link function used by the GLM.
use rusty_machine::learning::glm::GenLinearModel;
use rusty_machine::learning::glm::Bernoulli;
let glm = GenLinearModel::new(Bernoulli);Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for GenLinearModel<C>where
C: Freeze,
impl<C> RefUnwindSafe for GenLinearModel<C>where
C: RefUnwindSafe,
impl<C> Send for GenLinearModel<C>where
C: Send,
impl<C> Sync for GenLinearModel<C>where
C: Sync,
impl<C> Unpin for GenLinearModel<C>where
C: Unpin,
impl<C> UnwindSafe for GenLinearModel<C>where
C: 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