public final class WeightedFeature extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
WeightedFeature.Builder
Represents a weighted feature that is encoded as a combination of raw base
features.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
FEATURE_FIELD_NUMBER |
static int |
LIFECYCLE_STAGE_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static com.google.protobuf.Parser<WeightedFeature> |
PARSER
Deprecated.
|
static int |
WEIGHT_FEATURE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static WeightedFeature |
getDefaultInstance() |
WeightedFeature |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Path |
getFeature()
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.
|
com.google.protobuf.Parser<WeightedFeature> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Path |
getWeightFeature()
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.
|
int |
hashCode() |
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() |
static WeightedFeature.Builder |
newBuilder() |
static WeightedFeature.Builder |
newBuilder(WeightedFeature prototype) |
WeightedFeature.Builder |
newBuilderForType() |
protected WeightedFeature.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static WeightedFeature |
parseDelimitedFrom(InputStream input) |
static WeightedFeature |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WeightedFeature |
parseFrom(byte[] data) |
static WeightedFeature |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WeightedFeature |
parseFrom(ByteBuffer data) |
static WeightedFeature |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WeightedFeature |
parseFrom(com.google.protobuf.ByteString data) |
static WeightedFeature |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WeightedFeature |
parseFrom(com.google.protobuf.CodedInputStream input) |
static WeightedFeature |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static WeightedFeature |
parseFrom(InputStream input) |
static WeightedFeature |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<WeightedFeature> |
parser() |
WeightedFeature.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int FEATURE_FIELD_NUMBER
public static final int WEIGHT_FEATURE_FIELD_NUMBER
public static final int LIFECYCLE_STAGE_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<WeightedFeature> PARSER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static WeightedFeature parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WeightedFeature parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WeightedFeature parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WeightedFeature parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WeightedFeature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WeightedFeature parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static WeightedFeature parseFrom(InputStream input) throws IOException
IOExceptionpublic static WeightedFeature parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static WeightedFeature parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static WeightedFeature parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static WeightedFeature parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static WeightedFeature parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic WeightedFeature.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static WeightedFeature.Builder newBuilder()
public static WeightedFeature.Builder newBuilder(WeightedFeature prototype)
public WeightedFeature.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected WeightedFeature.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static WeightedFeature getDefaultInstance()
public static com.google.protobuf.Parser<WeightedFeature> parser()
public com.google.protobuf.Parser<WeightedFeature> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public WeightedFeature getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020 Gojek. All rights reserved.