Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TrainingStep's hyperparameters does not work on v2.2.0 #152

Closed
Assignees
@ohbuchim

Description

I cannot set TrainingStep's 'hyperparameters' parameter using ExecutionInput on v2.2.0. v2.1.0 works well.

When I used v2.1.0 this code worked, and I was able to set hyperparameters when I executed workflow.

training_step = steps.TrainingStep(
 "SageMaker Training Step",
 estimator=sklearn,
 data={"train": sagemaker.TrainingInput(execution_input["PreprocessingOutputDataTrain"], content_type="text/csv")},
 job_name=execution_input["TrainingJobName"],
 hyperparameters=execution_input["TrainingParameters"],
 wait_for_completion=True,
)

When I used v2.2.0 I needed to add get_schema_as_dict() to ExecutionInput. After that, 'hyperparameters' was not updated by ExecutionInput. It seems that the estimator's 'hyperparameters' setting only is set (ExecutionInput is ignored).

training_step = steps.TrainingStep(
 "SageMaker Training Step",
 estimator=sklearn,
 data={"train": sagemaker.TrainingInput(execution_input["PreprocessingOutputDataTrain"], content_type="text/csv")},
 job_name=execution_input["TrainingJobName"],
 hyperparameters=execution_input["TrainingParameters"].get_schema_as_dict(),
 wait_for_completion=True,
)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /