pub fn draw(&mut self, som: &Som, data: Option<(&DataFrame, &[(usize, String)])>) {
        let params = som.params();
        if (self.layers.len() == 1 && params.layers()[self.layers[0]].categorical())
            || (self.layers.is_empty()
                && params.layers().len() == 1
                && params.layers()[0].categorical())
        {
            self.draw_classes(som, data);
        } else {
            self.draw_columns(som);
        }
    }
/// Draws the given SOM. Should be called only for the same SOM repeatedly, not for different SOMs!
Draws the given SOM. Should be called only for the same SOM repeatedly, not for different SOMs!
Draws the given SOM . Should be called only for the same SOM repeatedly not for different SOMs!
pub fn draw(&mut self, som: &Som, data: Option<(&DataFrame, &[(usize, String)])>) {
        let params = som.params();
        if (self.layers.len() == 1 && params.layers()[self.layers[0]].categorical())
            || (self.layers.is_empty()
                && params.layers().len() == 1
                && params.layers()[0].categorical())
        {
            self.draw_classes(som, data);
        } else {
            self.draw_columns(som);
        }
    }
pub fn draw ( & mut self , som : & Som , data : Option < ( & DataFrame , & [ ( usize , String ) ] ) > ) { let params = som . params ( ) ; if ( self . layers . len ( ) == 1 && params . layers ( ) [ self . layers [ 0 ] ] . categorical ( ) ) || ( self . layers . is_empty ( ) && params . layers ( ) . len ( ) == 1 && params . layers ( ) [ 0 ] . categorical ( ) ) { self . draw_classes ( som , data ) ; } else { self . draw_columns ( som ) ; } }
Draws the given SOM.
Draws the given SOM .
&mut self
som
&Som
data
Option<(&DataFrame, &[(usize, String)])>
&mut self
som
&Som
data
Option<(&DataFrame, &[(usize, String)])>