зеркало из https://github.com/mozilla/bugbug.git
Fix command to train defect/enhancement/task model (#476)
* Fix command to train defect/enhancement/task model Fixes #475 * Add more logging in the trainer script, and assert the model is generated
This commit is contained in:
Родитель
4bb5518a56
Коммит
025e3f4da2
|
@ -1,3 +1,3 @@
|
|||
FROM mozilla/bugbug-base:latest
|
||||
|
||||
CMD bugbug-train defect
|
||||
CMD bugbug-train defectenhancementtask
|
||||
|
|
|
@ -43,9 +43,14 @@ class Trainer(object):
|
|||
model = model_class()
|
||||
model.train()
|
||||
|
||||
logger.info(f"Training done")
|
||||
|
||||
model_file_name = f"{model_name}model"
|
||||
assert os.path.exists(model_file_name)
|
||||
self.compress_file(model_file_name)
|
||||
|
||||
logger.info(f"Model compressed")
|
||||
|
||||
|
||||
def main():
|
||||
description = "Train the models"
|
||||
|
|
Загрузка…
Ссылка в новой задаче