Skip to content

Commit

Permalink
ניסיון 400 איטרציות
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Aug 1, 2023
1 parent b5bcbd6 commit 1e4a516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions machine-learn/create_ner_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ def convert_to_spacy_format(data):
nlp.begin_training()

# Training loop
for itn in range(1000):
for itn in range(400):
losses = {}
for example in training_data:
nlp.update([example], drop=0.35, losses=losses)
if int(losses['ner']) <= 100: break
if int(losses['ner']) <= 150: break
print(str(itn) + ": " + str(losses))


Expand Down

0 comments on commit 1e4a516

Please sign in to comment.