Package com.google.cloud.aiplatform.v1
Class ExportFractionSplit.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ExportFractionSplit.Builder>
-
- com.google.cloud.aiplatform.v1.ExportFractionSplit.Builder
-
- All Implemented Interfaces:
ExportFractionSplitOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ExportFractionSplit
public static final class ExportFractionSplit.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExportFractionSplit.Builder> implements ExportFractionSplitOrBuilder
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.ExportFractionSplit
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportFractionSplit.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ExportFractionSplitbuild()ExportFractionSplitbuildPartial()ExportFractionSplit.Builderclear()ExportFractionSplit.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ExportFractionSplit.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ExportFractionSplit.BuilderclearTestFraction()The fraction of the input data that is to be used to evaluate the Model.ExportFractionSplit.BuilderclearTrainingFraction()The fraction of the input data that is to be used to train the Model.ExportFractionSplit.BuilderclearValidationFraction()The fraction of the input data that is to be used to validate the Model.ExportFractionSplit.Builderclone()ExportFractionSplitgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()doublegetTestFraction()The fraction of the input data that is to be used to evaluate the Model.doublegetTrainingFraction()The fraction of the input data that is to be used to train the Model.doublegetValidationFraction()The fraction of the input data that is to be used to validate the Model.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ExportFractionSplit.BuildermergeFrom(ExportFractionSplit other)ExportFractionSplit.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ExportFractionSplit.BuildermergeFrom(com.google.protobuf.Message other)ExportFractionSplit.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ExportFractionSplit.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ExportFractionSplit.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ExportFractionSplit.BuildersetTestFraction(double value)The fraction of the input data that is to be used to evaluate the Model.ExportFractionSplit.BuildersetTrainingFraction(double value)The fraction of the input data that is to be used to train the Model.ExportFractionSplit.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ExportFractionSplit.BuildersetValidationFraction(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ExportFractionSplit.Builder>
-
clear
public ExportFractionSplit.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ExportFractionSplit.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ExportFractionSplit.Builder>
-
getDefaultInstanceForType
public ExportFractionSplit getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExportFractionSplit build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExportFractionSplit buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExportFractionSplit.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ExportFractionSplit.Builder>
-
setField
public ExportFractionSplit.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExportFractionSplit.Builder>
-
clearField
public ExportFractionSplit.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExportFractionSplit.Builder>
-
clearOneof
public ExportFractionSplit.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ExportFractionSplit.Builder>
-
setRepeatedField
public ExportFractionSplit.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExportFractionSplit.Builder>
-
addRepeatedField
public ExportFractionSplit.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExportFractionSplit.Builder>
-
mergeFrom
public ExportFractionSplit.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExportFractionSplit.Builder>
-
mergeFrom
public ExportFractionSplit.Builder mergeFrom(ExportFractionSplit other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ExportFractionSplit.Builder>
-
mergeFrom
public ExportFractionSplit.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExportFractionSplit.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:
getTrainingFractionin interfaceExportFractionSplitOrBuilder- Returns:
- The trainingFraction.
-
setTrainingFraction
public ExportFractionSplit.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 ExportFractionSplit.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:
getValidationFractionin interfaceExportFractionSplitOrBuilder- Returns:
- The validationFraction.
-
setValidationFraction
public ExportFractionSplit.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 ExportFractionSplit.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:
getTestFractionin interfaceExportFractionSplitOrBuilder- Returns:
- The testFraction.
-
setTestFraction
public ExportFractionSplit.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 ExportFractionSplit.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 ExportFractionSplit.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExportFractionSplit.Builder>
-
mergeUnknownFields
public final ExportFractionSplit.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExportFractionSplit.Builder>
-
-