pub fn same(dv: &DataVec, len: usize) -> bool
Expand description

Return whether the first n data in data vector have same target values.

Panic

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