Type Definition corgi::cost::CostFunction[][src]

pub type CostFunction = Box<dyn Fn(&Array, &Array) -> Array>;
Expand description

A cost function, which computes the loss given a target. The cost function takes in the output as the first argument, and the target as the second.