Skip to content

Commit

Permalink
test(NeuralNetwork): testing for repeatition capabilities in datagene…
Browse files Browse the repository at this point in the history
…rators
  • Loading branch information
muellerdo committed Feb 15, 2023
1 parent 8f1a2e8 commit c70fc4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_neuralnetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ def test_training_pure(self):
epochs=3)
self.assertTrue("loss" in hist)

def test_training_iterations(self):
model = NeuralNetwork(n_labels=4, channels=3, batch_queue_size=1)
hist = model.train(training_generator=self.datagen,
epochs=5, iterations=10)
self.assertTrue("loss" in hist)
self.assertTrue(len(hist["loss"]) == 5)

def test_training_validation(self):
model = NeuralNetwork(n_labels=4, channels=3, batch_queue_size=1)
hist = model.train(training_generator=self.datagen,
Expand Down

0 comments on commit c70fc4c

Please sign in to comment.