@Generated(value="software.amazon.awssdk:codegen") public final class StoppingCondition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StoppingCondition.Builder,StoppingCondition>
Specifies how long a model training or compilation job can run. When the job reaches the limit, Amazon SageMaker ends the training job. Use this API to cap model processing cost.
To stop a job, Amazon SageMaker sends the algorithm the SIGTERM
signal, which delays job termination for
120 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() |
Integer |
maxRuntimeInSeconds()
The maximum length of time, in seconds, that the training or compilation job can run.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends StoppingCondition.Builder> |
serializableBuilderClass() |
StoppingCondition.Builder |
toBuilder() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public Integer maxRuntimeInSeconds()
The maximum length of time, in seconds, that the training or compilation job can run. If the job 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()
toBuilder
in interface ToCopyableBuilder<StoppingCondition.Builder,StoppingCondition>
public static StoppingCondition.Builder builder()
public static Class<? extends StoppingCondition.Builder> serializableBuilderClass()
Copyright © 2018. All rights reserved.