Class SampledShapleyAttribution.Builder (3.84.0)

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

Static Methods

getDescriptor()

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

Methods

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

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.

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 GeneratedMessage.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

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.