This commit is contained in:
Jialei Chen 2021-12-29 21:15:22 -08:00
Родитель ab4dcf14ae
Коммит 27241746a8
4 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -53,7 +53,7 @@ try:
model = Model(workspace, model_name)
prev_accuracy = model.tags['accuracy']
prev_test_dir = model.tags['test_data']
if prev_test_dir != test_dir or prev_accuracy >= accuracy:
if prev_test_dir != test_dir or prev_accuracy < accuracy:
model = register_model(model_dir, model_name, accuracy, test_dir, workspace)
new_model = True
except WebserviceException:

Просмотреть файл

@ -17,7 +17,7 @@ def deploy_step(model_dir, accuracy_file, test_dir, compute_target):
:param compute_target: The compute target to run the step on
:type compute_target: ComputeTarget
:return: The preprocess step, step outputs dictionary (keys: scoring_url)
:return: The deploy step, step outputs dictionary (keys: scoring_url)
:rtype: PythonScriptStep, dict
'''

Просмотреть файл

@ -18,7 +18,7 @@ def evaluate_step(model_dir, test_dir, compute_target):
:param compute_target: The compute target to run the step on
:type compute_target: ComputeTarget
:return: The preprocess step, step outputs dictionary (keys: accuracy_file)
:return: The evaluate step, step outputs dictionary (keys: accuracy_file)
:rtype: EstimatorStep, dict
'''

Просмотреть файл

@ -19,7 +19,7 @@ def train_step(train_dir, valid_dir, compute_target):
:param compute_target: The compute target to run the step on
:type compute_target: ComputeTarget
:return: The preprocess step, step outputs dictionary (keys: model_dir)
:return: The training step, step outputs dictionary (keys: model_dir)
:rtype: EstimatorStep, dict
'''