Exemple #1
0
 def test_accuracy_get_from_history_accuracy():
     history_history = {'accuracy': 'accuracy'}
     result = find_architecture._get_from_history('accuracy',
                                                  history_history)
     assert result == 'accuracy'
Exemple #2
0
 def test_accuracy_get_from_history_none_raise():
     history_history = {}
     with raises(KeyError):
         find_architecture._get_from_history('accuracy', history_history)
Exemple #3
0
 def test_val_loss_get_from_history_accuracy():
     history_history = {'val_loss': 'val_loss'}
     result = find_architecture._get_from_history('val_loss',
                                                  history_history)
     assert result == 'val_loss'