Skip to content

Commit f559fab

Browse files
author
Niklas Palm
committed
Remove unsed processor and fetch JsonGet from functions package
1 parent 8567136 commit f559fab

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

04_training_pipeline/pipeline.ipynb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -471,12 +471,9 @@
471471
"from sagemaker.processing import (\n",
472472
" ProcessingInput,\n",
473473
" ProcessingOutput,\n",
474-
" FrameworkProcessor,\n",
475474
" ScriptProcessor,\n",
476475
")\n",
477476
"\n",
478-
"\n",
479-
"\n",
480477
"eval_steps = dict()\n",
481478
"eval_reports = dict()\n",
482479
"\n",
@@ -599,10 +596,8 @@
599596
"outputs": [],
600597
"source": [
601598
"from sagemaker.workflow.conditions import ConditionGreaterThanOrEqualTo\n",
602-
"from sagemaker.workflow.condition_step import (\n",
603-
" ConditionStep,\n",
604-
" JsonGet,\n",
605-
")\n",
599+
"from sagemaker.workflow.condition_step import ConditionStep\n",
600+
"from sagemaker.workflow.functions import JsonGet\n",
606601
"\n",
607602
"condition_steps = dict()\n",
608603
"\n",
@@ -612,7 +607,7 @@
612607
" # Models with a test accuracy lower than the condition will not be registered with the model registry.\n",
613608
" cond_gte = ConditionGreaterThanOrEqualTo(\n",
614609
" left=JsonGet(\n",
615-
" step=eval_steps[t],\n",
610+
" step_name=eval_steps[t].name,\n",
616611
" property_file=eval_reports[t],\n",
617612
" json_path=\"multiclass_classification_metrics.accuracy.value\",\n",
618613
" ),\n",

0 commit comments

Comments
 (0)