pub fn as_f32(&self) -> NdArrayD {
        let values = self
            .inner
            .as_slice()
            .iter()
            .map(|x| if *x { 1.0 } else { 0.0 })
            .collect();
        let res = NdArray::new_with_values(self.inner.shape().clone(), values).unwrap();
        NdArrayD { inner: res }
    }
/// Convert self into float representation, where True becomes 1.0 and False becomes 0.0
Convert self into float representation, where True becomes 1.0 and False becomes 0.0
Convert self into float representation where True becomes 1 . 0 and False becomes 0 . 0
pub fn as_f32(&self) -> NdArrayD {
        let values = self
            .inner
            .as_slice()
            .iter()
            .map(|x| if *x { 1.0 } else { 0.0 })
            .collect();
        let res = NdArray::new_with_values(self.inner.shape().clone(), values).unwrap();
        NdArrayD { inner: res }
    }
pub fn as_f32 ( & self ) -> NdArrayD { let values = self . inner . as_slice ( ) . iter ( ) . map ( | x | if * x { 1.0 } else { 0.0 } ) . collect ( ) ; let res = NdArray :: new_with_values ( self . inner . shape ( ) . clone ( ) , values ) . unwrap ( ) ; NdArrayD { inner : res } }
Convert self into float representation, where True becomes 1.0 and False becomes 0.0
Convert self into float representation where True becomes 1 . 0 and False becomes 0 . 0
&self