#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# str_out = 'PCA Vector Model \n - centred:              {}\n - # features:           {}\n - # active components:  {}\n - kept variance:        {:.2}  {:.1%}\n - noise variance:       {:.2}  {:.1%}\n - total # components:   {}\n - components shape:     {}\n' . format ( self . centred , self . n_features , self . n_active_components , self . variance ( ) , self . variance_ratio ( ) , self . noise_variance ( ) , self . noise_variance_ratio ( ) , self . n_components , self . components . shape ) #NEWLINE# return str_out