Struct rusty_machine::learning::glm::Logit [] [src]

pub struct Logit;

The Logit link function.

Used primarily as the canonical link in Binomial Regression.

Trait Implementations

impl Debug for Logit
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for Logit
[src]

impl Clone for Logit
[src]

fn clone(&self) -> Logit

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl LinkFunc for Logit
[src]

The Logit link function.

g(u) = ln(x / (1 - x))

fn func(x: f64) -> f64

The link function.

fn func_grad(x: f64) -> f64

The gradient of the link function.

fn func_inv(x: f64) -> f64

The inverse of the link function. Often called the 'mean' function. Read more