aws / aws/aws-step-functions-data-science-sdk-python
ModelDataUrl is incorrect when result_path is defined in TrainingStep
- Lingua principale
- Python
- Stelle
- 299
- Fork
- 84
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
The ModelDataUrl in the Step Functions' defenition is '“ModelDataUrl.$“: “$[‘ModelArtifacts’][‘S3ModelArtifacts’]”' even though the result_path is defined in the TrainingStep, and it causes error like this.
> “An error occurred while executing the state ‘Save Model’ (entered at the event id #8). The JSONPath ’$[‘ModelArtifacts’][‘S3ModelArtifacts’]' specified for the field ‘ModelDataUrl.$’ could not be found in the input ...
It should be '“ModelDataUrl.$“: “$[‘TrainingStepResults’][‘ModelArtifacts’][‘S3ModelArtifacts’]”'.
```
training_step = steps.TrainingStep(
‘Model Training’,
estimator=tf_estimator,
data={
‘training’: inputs
},
job_name=execution_input[‘TrainingJobName’],
result_path=‘$.TrainingStepResults’,
wait_for_completion=True
)
model_step = steps.ModelStep(
‘Save Model’,
model=training_step.get_expected_model(),
model_name=execution_input[‘ModelName’],
instance_type=‘ml.m5.xlarge’,
result_path=‘$.ModelStepResults’
)
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Partire dalle definizioni di TrainingStep e ModelStep che costruiscono la definizione di Step Functions, quindi seguire come result_path viene applicato a ModelDataUrl. Riprodurre la configurazione fornita di training_step e model_step e verificare che il percorso generato sia annidato sotto TrainingStepResults, mentre l'output del modello rimane utilizzabile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, python
- Ambito
- cloud, machine-learning
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100