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

pub struct Identity;

The Identity link function.

Used primarily as the canonical link in Linear Regression.

Trait Implementations

impl Debug for Identity
[src]

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

Formats the value using the given formatter.

impl Copy for Identity
[src]

impl Clone for Identity
[src]

fn clone(&self) -> Identity

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

The Identity link function.

g(u) = u

fn func(x: f64) -> f64

The link function.

fn func_grad(_: 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