Exemplo n.º 1
0
 def plot_accuracy(self):
     accuracy = np.vstack((self.out_params['list_train_acc'],
                           self.out_params['list_val_acc']))
     plot.plot_scores(accuracy, legend=['train_accuracy', 'validate_accuarcy'],
                      colors=['blue', 'green'], plot_title='Accuarcy of linear classifier',
                      plot_xlabel='No. of iterations', plot_ylabel='Accuracy',
                      plot_lib='matplotlib', matplotlib_style='default')
     return True
Exemplo n.º 2
0
 def plot_loss(self):
     loss = np.vstack((self.out_params['list_train_loss'],
                       self.out_params['list_val_loss']))
     plot.plot_scores(loss, legend=['train_loss', 'validate_loss'],
                      colors=['blue', 'green'], plot_title='Loss of linear classifier',
                      plot_xlabel='No. of iterations', plot_ylabel='Loss',
                      plot_lib='matplotlib', matplotlib_style='default')
     return True