@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AutoMLDataSplitConfig extends Object implements Serializable, Cloneable, StructuredPojo
This structure specifies how to split the data into train and validation datasets.
The validation and training datasets must contain the same headers. For jobs created by calling
CreateAutoMLJob
, the validation dataset must be less than 2 GB in size.
Constructor and Description |
---|
AutoMLDataSplitConfig() |
Modifier and Type | Method and Description |
---|---|
AutoMLDataSplitConfig |
clone() |
boolean |
equals(Object obj) |
Float |
getValidationFraction()
The validation fraction (optional) is a float that specifies the portion of the training dataset to be used for
validation.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setValidationFraction(Float validationFraction)
The validation fraction (optional) is a float that specifies the portion of the training dataset to be used for
validation.
|
String |
toString()
Returns a string representation of this object.
|
AutoMLDataSplitConfig |
withValidationFraction(Float validationFraction)
The validation fraction (optional) is a float that specifies the portion of the training dataset to be used for
validation.
|
public void setValidationFraction(Float validationFraction)
The validation fraction (optional) is a float that specifies the portion of the training dataset to be used for validation. The default value is 0.2, and values must be greater than 0 and less than 1. We recommend setting this value to be less than 0.5.
validationFraction
- The validation fraction (optional) is a float that specifies the portion of the training dataset to be
used for validation. The default value is 0.2, and values must be greater than 0 and less than 1. We
recommend setting this value to be less than 0.5.public Float getValidationFraction()
The validation fraction (optional) is a float that specifies the portion of the training dataset to be used for validation. The default value is 0.2, and values must be greater than 0 and less than 1. We recommend setting this value to be less than 0.5.
public AutoMLDataSplitConfig withValidationFraction(Float validationFraction)
The validation fraction (optional) is a float that specifies the portion of the training dataset to be used for validation. The default value is 0.2, and values must be greater than 0 and less than 1. We recommend setting this value to be less than 0.5.
validationFraction
- The validation fraction (optional) is a float that specifies the portion of the training dataset to be
used for validation. The default value is 0.2, and values must be greater than 0 and less than 1. We
recommend setting this value to be less than 0.5.public String toString()
toString
in class Object
Object.toString()
public AutoMLDataSplitConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.