Skip to content

Commit

Permalink
עדכון לקוד ריצה
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Jul 6, 2024
1 parent 104e4b9 commit d8b097f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update_Training.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
- name: Move prepared file to internal folder
run: |
mv custom_ner_model1 machine-learn/
mv custom_ner_model10git machine-learn/
- name: Commit and push changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add machine-learn/custom_ner_model1
git commit -m "Update custom_ner_model1" || echo "No changes to commit"
git add machine-learn/custom_ner_model10git
git commit -m "Update custom_ner_model10git" || echo "No changes to commit"
git push
2 changes: 1 addition & 1 deletion machine-learn/create_ner_model_git_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def custom_tokenizer(nlp):
for example in training_data:
nlp.update([example], drop=0.5, losses=losses)
print(str(itn) + ": " + str(losses))
if int(losses['ner']) <= 800:
if int(losses['ner']) <= 200:
break

# Save the trained model to disk
Expand Down

0 comments on commit d8b097f

Please sign in to comment.