Function gbdt::fitness::MAE

source · []
pub fn MAE(dv: &DataVec, predict: &PredVec, len: usize) -> ValueType
Expand description

MAE (Mean Absolute Error) calculation for first n element in data vector. See wikipedia for detail for detailed algorithm.

Panic

If the specified length is greater than the length of data vector, it will panic.

If the length of data vector and predicted vector is not same, it will panic.