@Generated(value="software.amazon.awssdk:codegen") public class StoppingCondition extends Object implements StructuredPojo, ToCopyableBuilder<StoppingCondition.Builder,StoppingCondition>
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
).
Modifier and Type | Class and Description |
---|---|
static interface |
StoppingCondition.Builder |
Modifier and Type | Method and Description |
---|---|
static StoppingCondition.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
Integer |
maxRuntimeInSeconds()
The maximum length of time, in seconds, that the training job can run.
|
static Class<? extends StoppingCondition.Builder> |
serializableBuilderClass() |
StoppingCondition.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Integer maxRuntimeInSeconds()
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 5 days.
public StoppingCondition.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<StoppingCondition.Builder,StoppingCondition>
public static StoppingCondition.Builder builder()
public static Class<? extends StoppingCondition.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.