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 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