[][src]Function gbdt::fitness::MAE

pub fn MAE(dv: &DataVec, predict: &PredVec, len: usize) -> ValueType

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


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.