File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 471
471
"from sagemaker.processing import (\n",
472
472
" ProcessingInput,\n",
473
473
" ProcessingOutput,\n",
474
- " FrameworkProcessor,\n",
475
474
" ScriptProcessor,\n",
476
475
")\n",
477
476
"\n",
478
- "\n",
479
- "\n",
480
477
"eval_steps = dict()\n",
481
478
"eval_reports = dict()\n",
482
479
"\n",
599
596
"outputs": [],
600
597
"source": [
601
598
"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",
606
601
"\n",
607
602
"condition_steps = dict()\n",
608
603
"\n",
612
607
" # Models with a test accuracy lower than the condition will not be registered with the model registry.\n",
613
608
" cond_gte = ConditionGreaterThanOrEqualTo(\n",
614
609
" left=JsonGet(\n",
615
- " step =eval_steps[t],\n",
610
+ " step_name =eval_steps[t].name ,\n",
616
611
" property_file=eval_reports[t],\n",
617
612
" json_path=\"multiclass_classification_metrics.accuracy.value\",\n",
618
613
" ),\n",
You can’t perform that action at this time.
0 commit comments