Skip to content

Commit db84285

Browse files
committed
addressed comments
1 parent 78a998e commit db84285

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

workflows/train_and_deploy_workflow/train-deploy-workflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def deploy_model(run_fqn: str, workspace_fqn: str) -> str:
161161

162162

163163
@task(task_config=task_config)
164-
def do_not_deploy_model(threshold: float) -> str:
164+
def do_nothing(threshold: float) -> str:
165165
return f"Model with threshold greater than {threshold} not found"
166166

167167

@@ -186,7 +186,7 @@ def model_training_workflow(
186186
.if_(does_model_pass_threshold_accuracy == True)
187187
.then(deploy_model(run_fqn=model_version_fqn, workspace_fqn=workspace_fqn))
188188
.else_()
189-
.then(do_not_deploy_model(threshold=accuracy_threshold))
189+
.then(do_nothing(threshold=accuracy_threshold))
190190
)
191191

192192
return message

0 commit comments

Comments
 (0)