Skip to content
Snippets Groups Projects
Commit 77e2adc4 authored by Frederik Arnold's avatar Frederik Arnold
Browse files

Update

parent 6a0a137d
No related branches found
No related tags found
No related merge requests found
......@@ -74,11 +74,10 @@ def main():
# )
# evaluator = evaluation.EmbeddingSimilarityEvaluator(val_anchor, sen, scores)
evaluator = evaluation.TripletEvaluator(val_anchor, val_positive, val_negative)
# evaluator = evaluation.TripletEvaluator(val_anchor, val_positive, val_negative)
# Tune the model
model.fit(train_objectives=[(train_dataloader, train_loss)], epochs=3, warmup_steps=100, evaluator=evaluator,
evaluation_steps=10000, output_path=output_path)
model.fit(train_objectives=[(train_dataloader, train_loss)], epochs=3, warmup_steps=100, output_path=output_path)
if __name__ == '__main__':
......
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