pub struct Logit {}
Expand description
The canonical link function for logistic regression is the logit function g(p) = log(p/(1-p)).
Trait Implementations§
Source§impl Link<Logistic> for Logit
impl Link<Logistic> for Logit
impl Canonical for Logit
Auto Trait Implementations§
impl Freeze for Logit
impl RefUnwindSafe for Logit
impl Send for Logit
impl Sync for Logit
impl Unpin for Logit
impl UnwindSafe for Logit
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
Source§impl<T> Transform for Twhere
T: Canonical,
impl<T> Transform for Twhere
T: Canonical,
Source§fn nat_param<F>(
lin_pred: ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>,
) -> ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>where
F: Float,
fn nat_param<F>(
lin_pred: ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>,
) -> ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>where
F: Float,
By defintion this function is the identity function for canonical links.
Source§fn adjust_errors_variance<F>(
errors: ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>,
variance: ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>,
_lin_pred: &ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>,
) -> (ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>)where
F: Float,
fn adjust_errors_variance<F>(
errors: ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>,
variance: ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>,
_lin_pred: &ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>,
) -> (ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>, ArrayBase<OwnedRepr<F>, Dim<[usize; 1]>>)where
F: Float,
The canonical link function requires no transformation of the error and variance terms.