pub enum LinkConfig {
Auto,
Log,
Identity,
}Expand description
Configuration of the GLM link function, resolved to a concrete Link at
fit time.
Mirrors sklearn’s TweedieRegressor(link={'auto','identity','log'})
(glm.py:861, :889-903). Auto selects the link from the Tweedie power:
identity for power <= 0 (Normal), log otherwise (Poisson/Gamma/etc.).
Variants§
Auto
Resolve the link from the Tweedie power at fit time
(power <= 0 → identity, power > 0 → log). The default.
Log
Force the log link regardless of power.
Identity
Force the identity link regardless of power.
Trait Implementations§
Source§impl Clone for LinkConfig
impl Clone for LinkConfig
Source§fn clone(&self) -> LinkConfig
fn clone(&self) -> LinkConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LinkConfig
Source§impl Debug for LinkConfig
impl Debug for LinkConfig
impl Eq for LinkConfig
Source§impl PartialEq for LinkConfig
impl PartialEq for LinkConfig
Source§fn eq(&self, other: &LinkConfig) -> bool
fn eq(&self, other: &LinkConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LinkConfig
Auto Trait Implementations§
impl Freeze for LinkConfig
impl RefUnwindSafe for LinkConfig
impl Send for LinkConfig
impl Sync for LinkConfig
impl Unpin for LinkConfig
impl UnsafeUnpin for LinkConfig
impl UnwindSafe for LinkConfig
Blanket Implementations§
impl<T> Boilerplate for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more