Skip to content

Commit

Permalink
changes to train file
Browse files Browse the repository at this point in the history
  • Loading branch information
trivedikaushal committed Mar 9, 2021
1 parent 71bee36 commit 439739c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions container/bert/train
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ def train():
optimizer_type=hyperparameters["optimizer_type"],
)

results = learner.validate(return_preds=True)
logger.info("y_pred: {}".format(json.dumps(results["y_pred"].tolist())))
logger.info("y_true: {}".format(json.dumps(results["y_true"].tolist())))

# save model and tokenizer artefacts
learner.save_model()

Expand Down

0 comments on commit 439739c

Please sign in to comment.