Class SampledShapleyAttribution.Builder (0.1.0)

public static final class SampledShapleyAttribution.Builder extends GeneratedMessageV3.Builder<SampledShapleyAttribution.Builder> 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SampledShapleyAttribution.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SampledShapleyAttribution.Builder
Overrides

build()

public SampledShapleyAttribution build()
Returns
Type Description
SampledShapleyAttribution

buildPartial()

public SampledShapleyAttribution buildPartial()
Returns
Type Description
SampledShapleyAttribution

clear()

public SampledShapleyAttribution.Builder clear()
Returns
Type Description
SampledShapleyAttribution.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SampledShapleyAttribution.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SampledShapleyAttribution.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SampledShapleyAttribution.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SampledShapleyAttribution.Builder
Overrides

clearPathCount()

public SampledShapleyAttribution.Builder clearPathCount()

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
SampledShapleyAttribution.Builder

This builder for chaining.

clone()

public SampledShapleyAttribution.Builder clone()
Returns
Type Description
SampledShapleyAttribution.Builder
Overrides

getDefaultInstanceForType()

public SampledShapleyAttribution getDefaultInstanceForType()
Returns
Type Description
SampledShapleyAttribution

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SampledShapleyAttribution other)

public SampledShapleyAttribution.Builder mergeFrom(SampledShapleyAttribution other)
Parameter
Name Description
other SampledShapleyAttribution
Returns
Type Description
SampledShapleyAttribution.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SampledShapleyAttribution.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SampledShapleyAttribution.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SampledShapleyAttribution.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SampledShapleyAttribution.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SampledShapleyAttribution.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SampledShapleyAttribution.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SampledShapleyAttribution.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SampledShapleyAttribution.Builder
Overrides

setPathCount(int value)

public SampledShapleyAttribution.Builder setPathCount(int value)

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];

Parameter
Name Description
value int

The pathCount to set.

Returns
Type Description
SampledShapleyAttribution.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SampledShapleyAttribution.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SampledShapleyAttribution.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SampledShapleyAttribution.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SampledShapleyAttribution.Builder
Overrides