Enum linfa_linear::Link [−][src]
pub enum Link {
Identity,
Log,
Logit,
}Link functions used by GLM
Variants
The identity link function g(x)=x
The log link function g(x)=log(x)
The logit link function g(x)=logit(x)
Implementations
impl Link[src]
impl Link[src]pub fn link<A: Float>(&self, ypred: &Array1<A>) -> Array1<A>[src]
Compute the link function g(ypred)
The link function links the mean ypred=E[y] to the so called
linear predictor, g(ypred)=linear predictor
pub fn link_derivative<A: Float>(&self, ypred: &Array1<A>) -> Array1<A>[src]
Computes the derivative of the link g'(ypred)
pub fn inverse<A: Float>(&self, lin_pred: &Array1<A>) -> Array1<A>[src]
Computes the inverse link function h(linear predictor)
Gives the inverse relationship between the linear predictor and the mean
ypred=E[y], i.e. h(linear predictor)=ypred
pub fn inverse_derviative<A: Float>(&self, lin_pred: &Array1<A>) -> Array1<A>[src]
Computes the derivative of the inverse link function h'(linear predictor)
Trait Implementations
impl<'de> Deserialize<'de> for Link[src]
impl<'de> Deserialize<'de> for Link[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Link
impl RefUnwindSafe for Linkimpl UnwindSafe for Link
impl UnwindSafe for LinkBlanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized, impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,