- Newest
- Most votes
- Most comments
The error you're encountering suggests that the pipeline is unable to access the property you're trying to reference from the tuning step. This issue can occur for a few reasons:
-
Timing: The ConditionStep might be trying to access the property before it's available. The tuning step needs to complete before its properties can be accessed.
-
Property reference: The way you're referencing the property might not be correct for your specific use case.
-
Step dependency: Ensure that your ConditionStep explicitly depends on the tuning step.
To address this, try the following:
-
Double-check that your ConditionStep has a dependency on the tuning step. You've included this in your code snippet, which is good.
-
Instead of using the direct property reference, try using a JsonGet function to retrieve the property. This approach is more robust and can handle cases where the property might not be immediately available. For example:
JsonGet( step_name=step_tuning.name, property_file=step_tuning.properties.TrainingJobSummary, json_path="TrainingJobName" )
-
If you're still encountering issues, you might need to use a Lambda step to retrieve the best training job name after the tuning step completes. This ensures that the property is available before the condition is evaluated.
-
Verify that your tuning step is configured correctly and is actually producing the expected outputs.
-
Check the logs of your tuning step to ensure it's completing successfully and generating the expected properties.
If these suggestions don't resolve the issue, you may need to examine the full pipeline definition and the exact configuration of your tuning step to identify any potential misconfigurations or timing issues.
Sources
Troubleshooting Amazon SageMaker Pipelines - Amazon SageMaker
Workflows for Machine Learning - Amazon SageMaker Pipelines
PipelineExecution - Amazon SageMaker
Relevant content
- AWS OFFICIALUpdated 10 months ago
This answer is not helpful. I have checked my configuration and it is correct, to the best of my knowledge.