AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

StoppingCondition

import "github.com/aws/aws-sdk-go/service/sagemaker"

type StoppingCondition struct { MaxRuntimeInSeconds *int64 `min:"1" type:"integer"` }

Specifies how long model training can run. When model training reaches the limit, Amazon SageMaker ends the training job. Use this API to cap model training cost.

To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays job termination for120 seconds. Algorithms might use this 120-second window to save the model artifacts, so the results of training is not lost.

Training algorithms provided by Amazon SageMaker automatically saves the intermediate results of a model training job (it is best effort case, as model might not be ready to save as some stages, for example training just started). This intermediate data is a valid model artifact. You can use it to create a model (CreateModel).

MaxRuntimeInSeconds

Type: *int64

The maximum length of time, in seconds, that the training job can run. If model training does not complete during this time, Amazon SageMaker ends the job. If value is not specified, default value is 1 day. Maximum value is 28 days.

Method

GoString

func (s StoppingCondition) GoString() string

GoString returns the string representation

SetMaxRuntimeInSeconds

func (s *StoppingCondition) SetMaxRuntimeInSeconds(v int64) *StoppingCondition

SetMaxRuntimeInSeconds sets the MaxRuntimeInSeconds field's value.

String

func (s StoppingCondition) String() string

String returns the string representation

Validate

func (s *StoppingCondition) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: