pub struct Bernoulli;Expand description
The Bernoulli regression family.
This is equivalent to logistic regression.
Trait Implementations§
Source§impl Criterion for Bernoulli
impl Criterion for Bernoulli
Source§fn model_variance(&self, mu: f64) -> f64
fn model_variance(&self, mu: f64) -> f64
The variance of the regression family.
Source§fn compute_working_weight(&self, mu: &[f64]) -> Vec<f64>
fn compute_working_weight(&self, mu: &[f64]) -> Vec<f64>
Computes the working weights that make up the diagonal
of the
W matrix used in the iterative reweighted least squares
algorithm. Read moreSource§fn compute_y_bar(&self, y: &[f64], mu: &[f64]) -> Vec<f64>
fn compute_y_bar(&self, y: &[f64], mu: &[f64]) -> Vec<f64>
Computes the adjustment to the fitted values used during
fitting. Read more
Source§fn apply_link_func(&self, vec: Vector<f64>) -> Vector<f64>
fn apply_link_func(&self, vec: Vector<f64>) -> Vector<f64>
Applies the link function to a vector.
impl Copy for Bernoulli
Auto Trait Implementations§
impl Freeze for Bernoulli
impl RefUnwindSafe for Bernoulli
impl Send for Bernoulli
impl Sync for Bernoulli
impl Unpin for Bernoulli
impl UnwindSafe for Bernoulli
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