@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StoppingCondition extends Object implements Serializable, Cloneable, StructuredPojo
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
).
Constructor and Description |
---|
StoppingCondition() |
Modifier and Type | Method and Description |
---|---|
StoppingCondition |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaxRuntimeInSeconds()
The maximum length of time, in seconds, that the training job can run.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaxRuntimeInSeconds(Integer maxRuntimeInSeconds)
The maximum length of time, in seconds, that the training job can run.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
StoppingCondition |
withMaxRuntimeInSeconds(Integer maxRuntimeInSeconds)
The maximum length of time, in seconds, that the training job can run.
|
public void setMaxRuntimeInSeconds(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.
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 Integer getMaxRuntimeInSeconds()
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 withMaxRuntimeInSeconds(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.
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 String toString()
toString
in class Object
Object.toString()
public StoppingCondition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.