public final class SampledShapleyAttribution extends GeneratedMessageV3 implements SampledShapleyAttributionOrBuilder
An attribution method that approximates Shapley values for features that contribute to the label being predicted. A sampling strategy is used to approximate the value rather than considering all subsets of features.
Protobuf type google.cloud.vertexai.v1beta1.SampledShapleyAttribution
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SampledShapleyAttributionImplements
SampledShapleyAttributionOrBuilderStatic Fields
PATH_COUNT_FIELD_NUMBER
public static final int PATH_COUNT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static SampledShapleyAttribution getDefaultInstance()
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static SampledShapleyAttribution.Builder newBuilder()
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution.Builder |
newBuilder(SampledShapleyAttribution prototype)
public static SampledShapleyAttribution.Builder newBuilder(SampledShapleyAttribution prototype)
Parameter | |
---|---|
Name | Description |
prototype |
SampledShapleyAttribution |
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution.Builder |
parseDelimitedFrom(InputStream input)
public static SampledShapleyAttribution parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SampledShapleyAttribution parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static SampledShapleyAttribution parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SampledShapleyAttribution parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static SampledShapleyAttribution parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SampledShapleyAttribution parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static SampledShapleyAttribution parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SampledShapleyAttribution parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static SampledShapleyAttribution parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SampledShapleyAttribution parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static SampledShapleyAttribution parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SampledShapleyAttribution parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<SampledShapleyAttribution> parser()
Returns | |
---|---|
Type | Description |
Parser<SampledShapleyAttribution> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public SampledShapleyAttribution getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution |
getParserForType()
public Parser<SampledShapleyAttribution> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<SampledShapleyAttribution> |
getPathCount()
public int getPathCount()
Required. The number of feature permutations to consider when approximating the Shapley values.
Valid range of its value is [1, 50], inclusively.
int32 path_count = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
int |
The pathCount. |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public SampledShapleyAttribution.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SampledShapleyAttribution.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public SampledShapleyAttribution.Builder toBuilder()
Returns | |
---|---|
Type | Description |
SampledShapleyAttribution.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |