comment
This commit is contained in:
parent
55b88ce189
commit
b6855337c8
7
train.py
7
train.py
|
@ -127,7 +127,7 @@ def main_train(model):
|
|||
print(' Testing model finished! ')
|
||||
|
||||
# ###################################################
|
||||
# ارزیابی مدل آموزش دیده
|
||||
# ارزیابی مدل آموزش دیده با متد evaluate_model از ماژول do_evaluate
|
||||
try:
|
||||
from evaluate_model import do_evaluate
|
||||
print(' Try to evaluating the trained model! ')
|
||||
|
@ -164,7 +164,7 @@ if __name__ == "__main__":
|
|||
# model = 'HooshvareLab/bert-fa-base-uncased-ner-peyma'
|
||||
# main_train(model)
|
||||
|
||||
# iterate models to train
|
||||
# iterate models to train based on dataset
|
||||
for model in models:
|
||||
if model == '':
|
||||
continue
|
||||
|
@ -175,8 +175,9 @@ if __name__ == "__main__":
|
|||
|
||||
if result:
|
||||
print(f'TRAIN **{model}** Finished successfully')
|
||||
except:
|
||||
except Exception as error:
|
||||
print(f" !!! TRAIN **{model}** Model ERROR !!! ")
|
||||
print(f"Error message: {error}")
|
||||
print('All Models Training Process Finished!')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user