fn stack_predictions(preds: &[Array1<D>]) -> Array2<D> {
    let views: Vec<ArrayView2<'_, D>> = preds.iter().map(|p|
        p.broadcast((1, p.dim())).unwrap()
    ).collect();
    stack(Axis(0), &views[..]).unwrap()
}
/// Stack slice of predictions into 2D array.
Stack slice of predictions into 2D array.
Stack slice of predictions into 2D array .
fn stack_predictions(preds: &[Array1<D>]) -> Array2<D> {
    let views: Vec<ArrayView2<'_, D>> = preds.iter().map(|p|
        p.broadcast((1, p.dim())).unwrap()
    ).collect();
    stack(Axis(0), &views[..]).unwrap()
}
fn stack_predictions ( preds : & [ Array1 < D > ] ) -> Array2 < D > { let views : Vec < ArrayView2 < ' _ , D > > = preds . iter ( ) . map ( | p | p . broadcast ( ( 1 , p . dim ( ) ) ) . unwrap ( ) ) . collect ( ) ; stack ( Axis ( 0 ) , & views [ .. ] ) . unwrap ( ) }
Stack slice of predictions into 2D array.
Stack slice of predictions into 2D array .
preds
&[Array1<D>]
preds
&[Array1<D>]