Package com.google.cloud.aiplatform.v1
Class FractionSplit.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<FractionSplit.Builder>
-
- com.google.cloud.aiplatform.v1.FractionSplit.Builder
-
- All Implemented Interfaces:
FractionSplitOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- FractionSplit
public static final class FractionSplit.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FractionSplit.Builder> implements FractionSplitOrBuilder
Assigns the input data to training, validation, and test sets as per the given fractions. Any of `training_fraction`, `validation_fraction` and `test_fraction` may optionally be provided, they must sum to up to 1. If the provided ones sum to less than 1, the remainder is assigned to sets as decided by Vertex AI. If none of the fractions are set, by default roughly 80% of data is used for training, 10% for validation, and 10% for test.
Protobuf typegoogle.cloud.aiplatform.v1.FractionSplit
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FractionSplit.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
FractionSplit
build()
FractionSplit
buildPartial()
FractionSplit.Builder
clear()
FractionSplit.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
FractionSplit.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
FractionSplit.Builder
clearTestFraction()
The fraction of the input data that is to be used to evaluate the Model.FractionSplit.Builder
clearTrainingFraction()
The fraction of the input data that is to be used to train the Model.FractionSplit.Builder
clearValidationFraction()
The fraction of the input data that is to be used to validate the Model.FractionSplit.Builder
clone()
FractionSplit
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
double
getTestFraction()
The fraction of the input data that is to be used to evaluate the Model.double
getTrainingFraction()
The fraction of the input data that is to be used to train the Model.double
getValidationFraction()
The fraction of the input data that is to be used to validate the Model.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
FractionSplit.Builder
mergeFrom(FractionSplit other)
FractionSplit.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
FractionSplit.Builder
mergeFrom(com.google.protobuf.Message other)
FractionSplit.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
FractionSplit.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
FractionSplit.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
FractionSplit.Builder
setTestFraction(double value)
The fraction of the input data that is to be used to evaluate the Model.FractionSplit.Builder
setTrainingFraction(double value)
The fraction of the input data that is to be used to train the Model.FractionSplit.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
FractionSplit.Builder
setValidationFraction(double value)
The fraction of the input data that is to be used to validate the Model.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<FractionSplit.Builder>
-
clear
public FractionSplit.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<FractionSplit.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<FractionSplit.Builder>
-
getDefaultInstanceForType
public FractionSplit getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public FractionSplit build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FractionSplit buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FractionSplit.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<FractionSplit.Builder>
-
setField
public FractionSplit.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FractionSplit.Builder>
-
clearField
public FractionSplit.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FractionSplit.Builder>
-
clearOneof
public FractionSplit.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<FractionSplit.Builder>
-
setRepeatedField
public FractionSplit.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FractionSplit.Builder>
-
addRepeatedField
public FractionSplit.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FractionSplit.Builder>
-
mergeFrom
public FractionSplit.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FractionSplit.Builder>
-
mergeFrom
public FractionSplit.Builder mergeFrom(FractionSplit other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<FractionSplit.Builder>
-
mergeFrom
public FractionSplit.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FractionSplit.Builder>
- Throws:
IOException
-
getTrainingFraction
public double getTrainingFraction()
The fraction of the input data that is to be used to train the Model.
double training_fraction = 1;
- Specified by:
getTrainingFraction
in interfaceFractionSplitOrBuilder
- Returns:
- The trainingFraction.
-
setTrainingFraction
public FractionSplit.Builder setTrainingFraction(double value)
The fraction of the input data that is to be used to train the Model.
double training_fraction = 1;
- Parameters:
value
- The trainingFraction to set.- Returns:
- This builder for chaining.
-
clearTrainingFraction
public FractionSplit.Builder clearTrainingFraction()
The fraction of the input data that is to be used to train the Model.
double training_fraction = 1;
- Returns:
- This builder for chaining.
-
getValidationFraction
public double getValidationFraction()
The fraction of the input data that is to be used to validate the Model.
double validation_fraction = 2;
- Specified by:
getValidationFraction
in interfaceFractionSplitOrBuilder
- Returns:
- The validationFraction.
-
setValidationFraction
public FractionSplit.Builder setValidationFraction(double value)
The fraction of the input data that is to be used to validate the Model.
double validation_fraction = 2;
- Parameters:
value
- The validationFraction to set.- Returns:
- This builder for chaining.
-
clearValidationFraction
public FractionSplit.Builder clearValidationFraction()
The fraction of the input data that is to be used to validate the Model.
double validation_fraction = 2;
- Returns:
- This builder for chaining.
-
getTestFraction
public double getTestFraction()
The fraction of the input data that is to be used to evaluate the Model.
double test_fraction = 3;
- Specified by:
getTestFraction
in interfaceFractionSplitOrBuilder
- Returns:
- The testFraction.
-
setTestFraction
public FractionSplit.Builder setTestFraction(double value)
The fraction of the input data that is to be used to evaluate the Model.
double test_fraction = 3;
- Parameters:
value
- The testFraction to set.- Returns:
- This builder for chaining.
-
clearTestFraction
public FractionSplit.Builder clearTestFraction()
The fraction of the input data that is to be used to evaluate the Model.
double test_fraction = 3;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final FractionSplit.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FractionSplit.Builder>
-
mergeUnknownFields
public final FractionSplit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FractionSplit.Builder>
-
-