public static final class WeightedFeature.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WeightedFeature.Builder> implements WeightedFeatureOrBuilder
Represents a weighted feature that is encoded as a combination of raw base features. The `weight_feature` should be a float feature with identical shape as the `feature`. This is useful for representing weights associated with categorical tokens (e.g. a TFIDF weight associated with each token). TODO(b/142122960): Handle WeightedCategorical end to end in TFX (validation, TFX Unit Testing, etc)Protobuf type
tensorflow.metadata.v0.WeightedFeature| Modifier and Type | Method and Description |
|---|---|
WeightedFeature.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WeightedFeature |
build() |
WeightedFeature |
buildPartial() |
WeightedFeature.Builder |
clear() |
WeightedFeature.Builder |
clearFeature()
Path of a base feature to be weighted.
|
WeightedFeature.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
WeightedFeature.Builder |
clearLifecycleStage()
The lifecycle_stage determines where a feature is expected to be used,
and therefore how important issues with it are.
|
WeightedFeature.Builder |
clearName()
Name for the weighted feature.
|
WeightedFeature.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
WeightedFeature.Builder |
clearWeightFeature()
Path of weight feature to associate with the base feature.
|
WeightedFeature.Builder |
clone() |
WeightedFeature |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Path |
getFeature()
Path of a base feature to be weighted.
|
Path.Builder |
getFeatureBuilder()
Path of a base feature to be weighted.
|
PathOrBuilder |
getFeatureOrBuilder()
Path of a base feature to be weighted.
|
LifecycleStage |
getLifecycleStage()
The lifecycle_stage determines where a feature is expected to be used,
and therefore how important issues with it are.
|
String |
getName()
Name for the weighted feature.
|
com.google.protobuf.ByteString |
getNameBytes()
Name for the weighted feature.
|
Path |
getWeightFeature()
Path of weight feature to associate with the base feature.
|
Path.Builder |
getWeightFeatureBuilder()
Path of weight feature to associate with the base feature.
|
PathOrBuilder |
getWeightFeatureOrBuilder()
Path of weight feature to associate with the base feature.
|
boolean |
hasFeature()
Path of a base feature to be weighted.
|
boolean |
hasLifecycleStage()
The lifecycle_stage determines where a feature is expected to be used,
and therefore how important issues with it are.
|
boolean |
hasName()
Name for the weighted feature.
|
boolean |
hasWeightFeature()
Path of weight feature to associate with the base feature.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
WeightedFeature.Builder |
mergeFeature(Path value)
Path of a base feature to be weighted.
|
WeightedFeature.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
WeightedFeature.Builder |
mergeFrom(com.google.protobuf.Message other) |
WeightedFeature.Builder |
mergeFrom(WeightedFeature other) |
WeightedFeature.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WeightedFeature.Builder |
mergeWeightFeature(Path value)
Path of weight feature to associate with the base feature.
|
WeightedFeature.Builder |
setFeature(Path.Builder builderForValue)
Path of a base feature to be weighted.
|
WeightedFeature.Builder |
setFeature(Path value)
Path of a base feature to be weighted.
|
WeightedFeature.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WeightedFeature.Builder |
setLifecycleStage(LifecycleStage value)
The lifecycle_stage determines where a feature is expected to be used,
and therefore how important issues with it are.
|
WeightedFeature.Builder |
setName(String value)
Name for the weighted feature.
|
WeightedFeature.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name for the weighted feature.
|
WeightedFeature.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
WeightedFeature.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WeightedFeature.Builder |
setWeightFeature(Path.Builder builderForValue)
Path of weight feature to associate with the base feature.
|
WeightedFeature.Builder |
setWeightFeature(Path value)
Path of weight feature to associate with the base feature.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedFeature.Builder>public WeightedFeature.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedFeature.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedFeature.Builder>public WeightedFeature getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic WeightedFeature build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic WeightedFeature buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic WeightedFeature.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedFeature.Builder>public WeightedFeature.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedFeature.Builder>public WeightedFeature.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedFeature.Builder>public WeightedFeature.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedFeature.Builder>public WeightedFeature.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedFeature.Builder>public WeightedFeature.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedFeature.Builder>public WeightedFeature.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<WeightedFeature.Builder>public WeightedFeature.Builder mergeFrom(WeightedFeature other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedFeature.Builder>public WeightedFeature.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<WeightedFeature.Builder>IOExceptionpublic boolean hasName()
Name for the weighted feature. This should not clash with other features in the same schema.
optional string name = 1;hasName in interface WeightedFeatureOrBuilderpublic String getName()
Name for the weighted feature. This should not clash with other features in the same schema.
optional string name = 1;getName in interface WeightedFeatureOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name for the weighted feature. This should not clash with other features in the same schema.
optional string name = 1;getNameBytes in interface WeightedFeatureOrBuilderpublic WeightedFeature.Builder setName(String value)
Name for the weighted feature. This should not clash with other features in the same schema.
optional string name = 1;value - The name to set.public WeightedFeature.Builder clearName()
Name for the weighted feature. This should not clash with other features in the same schema.
optional string name = 1;public WeightedFeature.Builder setNameBytes(com.google.protobuf.ByteString value)
Name for the weighted feature. This should not clash with other features in the same schema.
optional string name = 1;value - The bytes for name to set.public boolean hasFeature()
Path of a base feature to be weighted. Required.
optional .tensorflow.metadata.v0.Path feature = 2;hasFeature in interface WeightedFeatureOrBuilderpublic Path getFeature()
Path of a base feature to be weighted. Required.
optional .tensorflow.metadata.v0.Path feature = 2;getFeature in interface WeightedFeatureOrBuilderpublic WeightedFeature.Builder setFeature(Path value)
Path of a base feature to be weighted. Required.
optional .tensorflow.metadata.v0.Path feature = 2;public WeightedFeature.Builder setFeature(Path.Builder builderForValue)
Path of a base feature to be weighted. Required.
optional .tensorflow.metadata.v0.Path feature = 2;public WeightedFeature.Builder mergeFeature(Path value)
Path of a base feature to be weighted. Required.
optional .tensorflow.metadata.v0.Path feature = 2;public WeightedFeature.Builder clearFeature()
Path of a base feature to be weighted. Required.
optional .tensorflow.metadata.v0.Path feature = 2;public Path.Builder getFeatureBuilder()
Path of a base feature to be weighted. Required.
optional .tensorflow.metadata.v0.Path feature = 2;public PathOrBuilder getFeatureOrBuilder()
Path of a base feature to be weighted. Required.
optional .tensorflow.metadata.v0.Path feature = 2;getFeatureOrBuilder in interface WeightedFeatureOrBuilderpublic boolean hasWeightFeature()
Path of weight feature to associate with the base feature. Must be same shape as feature. Required.
optional .tensorflow.metadata.v0.Path weight_feature = 3;hasWeightFeature in interface WeightedFeatureOrBuilderpublic Path getWeightFeature()
Path of weight feature to associate with the base feature. Must be same shape as feature. Required.
optional .tensorflow.metadata.v0.Path weight_feature = 3;getWeightFeature in interface WeightedFeatureOrBuilderpublic WeightedFeature.Builder setWeightFeature(Path value)
Path of weight feature to associate with the base feature. Must be same shape as feature. Required.
optional .tensorflow.metadata.v0.Path weight_feature = 3;public WeightedFeature.Builder setWeightFeature(Path.Builder builderForValue)
Path of weight feature to associate with the base feature. Must be same shape as feature. Required.
optional .tensorflow.metadata.v0.Path weight_feature = 3;public WeightedFeature.Builder mergeWeightFeature(Path value)
Path of weight feature to associate with the base feature. Must be same shape as feature. Required.
optional .tensorflow.metadata.v0.Path weight_feature = 3;public WeightedFeature.Builder clearWeightFeature()
Path of weight feature to associate with the base feature. Must be same shape as feature. Required.
optional .tensorflow.metadata.v0.Path weight_feature = 3;public Path.Builder getWeightFeatureBuilder()
Path of weight feature to associate with the base feature. Must be same shape as feature. Required.
optional .tensorflow.metadata.v0.Path weight_feature = 3;public PathOrBuilder getWeightFeatureOrBuilder()
Path of weight feature to associate with the base feature. Must be same shape as feature. Required.
optional .tensorflow.metadata.v0.Path weight_feature = 3;getWeightFeatureOrBuilder in interface WeightedFeatureOrBuilderpublic boolean hasLifecycleStage()
The lifecycle_stage determines where a feature is expected to be used, and therefore how important issues with it are.
optional .tensorflow.metadata.v0.LifecycleStage lifecycle_stage = 4;hasLifecycleStage in interface WeightedFeatureOrBuilderpublic LifecycleStage getLifecycleStage()
The lifecycle_stage determines where a feature is expected to be used, and therefore how important issues with it are.
optional .tensorflow.metadata.v0.LifecycleStage lifecycle_stage = 4;getLifecycleStage in interface WeightedFeatureOrBuilderpublic WeightedFeature.Builder setLifecycleStage(LifecycleStage value)
The lifecycle_stage determines where a feature is expected to be used, and therefore how important issues with it are.
optional .tensorflow.metadata.v0.LifecycleStage lifecycle_stage = 4;value - The lifecycleStage to set.public WeightedFeature.Builder clearLifecycleStage()
The lifecycle_stage determines where a feature is expected to be used, and therefore how important issues with it are.
optional .tensorflow.metadata.v0.LifecycleStage lifecycle_stage = 4;public final WeightedFeature.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedFeature.Builder>public final WeightedFeature.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WeightedFeature.Builder>Copyright © 2020 Gojek. All rights reserved.