aws / aws/sagemaker-python-sdk

[Bug Report] Unable to use Join with pipeline parameters within ConditionGreaterThanOrEqualTo

Offen
#4,418 4 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @nargokul Auf GitHub ansehen
component: pipelines type: feature request
Vorherrschende Sprache
Python
Sterne
2.3k
Forks
1.3k
Ø Merge
1 T. 22 Std.
Gemergte PRs (30 T.)
35

Beschreibung

**Describe the bug**
When defining a condition step like in the code snippet below, if one is using a parameter for the evaluation metric (commented out line) to enable switching model evaluation metric at pipeline execution creation, the pipeline upsert fails since it expects the json_path to be valid json.
Should it not be supported to have this evaluation metric be a parameter?
I am already running everything using pipeline sessions, though there does not seem to be a way to specify that in the ConditionStep.

```
cond_gte = ConditionGreaterThanOrEqualTo(
left=JsonGet(
step_name=step_evaluate_model.name,
property_file=evaluation_report,
# json_path = Join(on=".", values=["binary_classification_metrics", param_eval_metric, "value"]), # this doesnt work! json_path must be json serializable
json_path=f"binary_classification_metrics.{eval_metric}.value"
),
right=param_eval_threshold,
)

step_condition_check = ConditionStep(
name="evaluation-greater-than-threshold-condition",
conditions=[cond_gte],
if_steps=[step_register_model],
else_steps=[step_fail],
)
```

I am using sagemaker 2.207.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.