Beispiel #1
0
 def draw_history(self, file_path='./result.png'):
     print('\nvisualize results : \"{}\"'.format(file_path))
     draw_result(self.history.history,
                 self.use_validation,
                 file_path=file_path)
     result = '\n\nAccuracy: {}\nLoss: {}\n'.format(
         self.history.history['acc'][len(self.history.history['acc']) - 1],
         self.history.history['loss'][len(self.history.history['loss']) -
                                      1])
     f.write(result)
     print('\nLast Accuracy: {}'.format(
         self.history.history['acc'][len(self.history.history['acc']) - 1]))
     print('\nValid error: {}'.format(
         self.history.history['val_loss'][
             len(self.history.history['val_loss']) - 1] -
         self.history.history['loss'][len(self.history.history['loss']) -
                                      1]))
Beispiel #2
0
 def draw_history(self, file_path='./result.png'):
     print('\nvisualize results : \"{}\"'.format(file_path))
     draw_result(self.history.history,
                 self.use_validation,
                 file_path=file_path)
Beispiel #3
0
 def draw_history_graph(self, file_path='saves/result.png'):
     ## 학습 데이터에 대한 정확도, 손실값을 그래프(이미지)로 저장해 주는 함수입니다.
     print('\nvisualize results : \"{}\"'.format(file_path))
     draw_result(self.history.history, file_path=file_path)