Description of changes:1. fix: environment variables are overwritten and not passed through to SageMaker ModelStep
The environment variables are not passed from the model to ModelStep parameters (they are overwritten here) for models without instance type (models other than sagemake.model.FrameworkModel)
With this change, the Model env parameters are passed to the ModelStep.
New bug uncovered:
2. fix: env variables defined in the Estimator are not translated to Model when calling TrainingStep.get_expected_model()
Fixed by passing the env from the estimator to the expected Model
Added a new estimator (pca_estimator_with_env) with defined env parameters to use in test and confirm that the env variables are passed through to the Model
With this change, the env variables defined in the estimator are passed to the expected Model when calling TrainingStep.get_expected_model()
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available: #82
Description of changes: 1. fix: environment variables are overwritten and not passed through to SageMaker ModelStep
New bug uncovered: 2. fix: env variables defined in the Estimator are not translated to Model when calling
TrainingStep.get_expected_model()
pca_estimator_with_env
) with defined env parameters to use in test and confirm that the env variables are passed through to the ModelTrainingStep.get_expected_model()
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.