Class WeightedCommonStatistics.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, WeightedCommonStatisticsOrBuilder
    Enclosing class:
    WeightedCommonStatistics

    public static final class WeightedCommonStatistics.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<WeightedCommonStatistics.Builder>
    implements WeightedCommonStatisticsOrBuilder
     Common weighted statistics for all feature types. Statistics counting number
     of values (i.e., avg_num_values and tot_num_values) include NaNs.
     If the weighted column is missing, then this counts as a weight of 1
     for that example.
     
    Protobuf type tensorflow.metadata.v0.WeightedCommonStatistics
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCommonStatistics.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.GeneratedMessageV3.Builder<WeightedCommonStatistics.Builder>
      • getDefaultInstanceForType

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

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

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

        public WeightedCommonStatistics.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCommonStatistics.Builder>
      • addRepeatedField

        public WeightedCommonStatistics.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCommonStatistics.Builder>
      • isInitialized

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

        public WeightedCommonStatistics.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<WeightedCommonStatistics.Builder>
        Throws:
        IOException
      • setNumNonMissing

        public WeightedCommonStatistics.Builder setNumNonMissing​(double value)
         Weighted number of examples not missing.
         
        double num_non_missing = 1;
        Parameters:
        value - The numNonMissing to set.
        Returns:
        This builder for chaining.
      • clearNumNonMissing

        public WeightedCommonStatistics.Builder clearNumNonMissing()
         Weighted number of examples not missing.
         
        double num_non_missing = 1;
        Returns:
        This builder for chaining.
      • getNumMissing

        public double getNumMissing()
         Weighted number of examples missing.
         Note that if the weighted column is zero, this does not count
         as missing.
         
        double num_missing = 2;
        Specified by:
        getNumMissing in interface WeightedCommonStatisticsOrBuilder
        Returns:
        The numMissing.
      • setNumMissing

        public WeightedCommonStatistics.Builder setNumMissing​(double value)
         Weighted number of examples missing.
         Note that if the weighted column is zero, this does not count
         as missing.
         
        double num_missing = 2;
        Parameters:
        value - The numMissing to set.
        Returns:
        This builder for chaining.
      • clearNumMissing

        public WeightedCommonStatistics.Builder clearNumMissing()
         Weighted number of examples missing.
         Note that if the weighted column is zero, this does not count
         as missing.
         
        double num_missing = 2;
        Returns:
        This builder for chaining.
      • getAvgNumValues

        public double getAvgNumValues()
         average number of values, weighted by the number of examples.
         
        double avg_num_values = 3;
        Specified by:
        getAvgNumValues in interface WeightedCommonStatisticsOrBuilder
        Returns:
        The avgNumValues.
      • setAvgNumValues

        public WeightedCommonStatistics.Builder setAvgNumValues​(double value)
         average number of values, weighted by the number of examples.
         
        double avg_num_values = 3;
        Parameters:
        value - The avgNumValues to set.
        Returns:
        This builder for chaining.
      • clearAvgNumValues

        public WeightedCommonStatistics.Builder clearAvgNumValues()
         average number of values, weighted by the number of examples.
         
        double avg_num_values = 3;
        Returns:
        This builder for chaining.
      • getTotNumValues

        public double getTotNumValues()
         tot_num_values = avg_num_values * num_non_missing.
         This is calculated directly, so should have less numerical error.
         
        double tot_num_values = 4;
        Specified by:
        getTotNumValues in interface WeightedCommonStatisticsOrBuilder
        Returns:
        The totNumValues.
      • setTotNumValues

        public WeightedCommonStatistics.Builder setTotNumValues​(double value)
         tot_num_values = avg_num_values * num_non_missing.
         This is calculated directly, so should have less numerical error.
         
        double tot_num_values = 4;
        Parameters:
        value - The totNumValues to set.
        Returns:
        This builder for chaining.
      • clearTotNumValues

        public WeightedCommonStatistics.Builder clearTotNumValues()
         tot_num_values = avg_num_values * num_non_missing.
         This is calculated directly, so should have less numerical error.
         
        double tot_num_values = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final WeightedCommonStatistics.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCommonStatistics.Builder>
      • mergeUnknownFields

        public final WeightedCommonStatistics.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedCommonStatistics.Builder>