Class ExportFractionSplit.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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 type google.cloud.aiplatform.v1.ExportFractionSplit
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The fraction of the input data that is to be used to evaluate the Model.
    The fraction of the input data that is to be used to train the Model.
    The fraction of the input data that is to be used to validate the Model.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    double
    The fraction of the input data that is to be used to evaluate the Model.
    double
    The fraction of the input data that is to be used to train the Model.
    double
    The fraction of the input data that is to be used to validate the Model.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setTestFraction(double value)
    The fraction of the input data that is to be used to evaluate the Model.
    setTrainingFraction(double value)
    The fraction of the input data that is to be used to train the Model.
    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.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ExportFractionSplit.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ExportFractionSplit.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ExportFractionSplit.Builder>
    • getDefaultInstanceForType

      public ExportFractionSplit getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ExportFractionSplit build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ExportFractionSplit buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ExportFractionSplit.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExportFractionSplit.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ExportFractionSplit.Builder>
    • mergeFrom

      public ExportFractionSplit.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getTrainingFraction in interface ExportFractionSplitOrBuilder
      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:
      getValidationFraction in interface ExportFractionSplitOrBuilder
      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:
      getTestFraction in interface ExportFractionSplitOrBuilder
      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.