Skip to content
Snippets Groups Projects
Commit fd0a9408 authored by Simon Will's avatar Simon Will
Browse files

Fix bug in evaluation after training

parent a9f155f2
No related branches found
No related tags found
No related merge requests found
......@@ -168,10 +168,10 @@ def train_n_rounds(config_basename, min_rounds=10):
if dev:
dev_set = make_dataset_from_feedback(dev, model)
logging.info('Validating on {} feedback pieces.'
.format(len(dev_set)))
.format(len(dev_set)))
results = model.validate(dev_set)
correct = results['score']
total = len(dev_set)
correct = results['score'] * total
logging.info('Got validation result: {}/{} = {}'
.format(correct, total, results['score']))
evr = EvaluationResult(label='changing_dev', correct=correct,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment