pub fn to_denormalized(
        &self,
        som: &Som,
        data: &DataFrame,
        layer_index: usize,
    ) -> Result<DataFrame, DataTypeError> {
        let layer = &self.layers[layer_index];
        let start_col = som.params().start_columns()[layer_index];
        let range = start_col..(start_col + layer.ncols());
        Ok(norm::denormalize_columns(
            data,
            &range.collect::<Vec<_>>(),
            &self.denorm()[start_col..(start_col + layer.ncols())],
        ))
    }
/// De-normalizes a SOM layer.
De-normalizes a SOM layer.
De - normalizes a SOM layer .
pub fn to_denormalized(
        &self,
        som: &Som,
        data: &DataFrame,
        layer_index: usize,
    ) -> Result<DataFrame, DataTypeError> {
        let layer = &self.layers[layer_index];
        let start_col = som.params().start_columns()[layer_index];
        let range = start_col..(start_col + layer.ncols());
        Ok(norm::denormalize_columns(
            data,
            &range.collect::<Vec<_>>(),
            &self.denorm()[start_col..(start_col + layer.ncols())],
        ))
    }
pub fn to_denormalized ( & self , som : & Som , data : & DataFrame , layer_index : usize , ) -> Result < DataFrame , DataTypeError > { let layer = & self . layers [ layer_index ] ; let start_col = som . params ( ) . start_columns ( ) [ layer_index ] ; let range = start_col .. ( start_col + layer . ncols ( ) ) ; Ok ( norm :: denormalize_columns ( data , & range . collect :: < Vec < _ > > ( ) , & self . denorm ( ) [ start_col .. ( start_col + layer . ncols ( ) ) ] , ) ) }
De-normalizes a SOM layer.
De - normalizes a SOM layer .
&self
som
&Som
data
&DataFrame
layer_index
usize
&self
som
&Som
data
&DataFrame
layer_index
usize