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

pub struct Log;

The log link function.

Used primarily as the canonical link in Poisson Regression.

Trait Implementations

impl Debug for Log
[src]

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

Formats the value using the given formatter.

impl Copy for Log
[src]

impl Clone for Log
[src]

fn clone(&self) -> Log

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 Log
[src]

The log link function.

g(u) = ln(u)

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