no_more_samples = False
batch_number = 0
if verbose:
sys.stdout.write(b"Batches: ")
sys.stdout.flush()
while not no_more_samples:
batch_number += 1
After Change
metrics = batch_test(model=model, ontology=ontology, verbose=False)
for k, v in metrics.iteritems():
print("{0}: {1}".format(k, v))
if metrics["f1"] > previous_best:
previous_best = metrics["f1"]