[][src]Function gbdt::fitness::RMSE

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

RMSE (Root-Mean-Square deviation) calculation for first n element in data vector. See wikipedia 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.