Class SampledShapleyAttribution.Builder (2.9.6)

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.aiplatform.v1.SampledShapleyAttribution

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SampledShapleyAttribution.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SampledShapleyAttribution.Builder
Overrides

build()

public SampledShapleyAttribution build()
Returns
TypeDescription
SampledShapleyAttribution

buildPartial()

public SampledShapleyAttribution buildPartial()
Returns
TypeDescription
SampledShapleyAttribution

clear()

public SampledShapleyAttribution.Builder clear()
Returns
TypeDescription
SampledShapleyAttribution.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SampledShapleyAttribution.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SampledShapleyAttribution.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SampledShapleyAttribution.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SampledShapleyAttribution.Builder

This builder for chaining.

clone()

public SampledShapleyAttribution.Builder clone()
Returns
TypeDescription
SampledShapleyAttribution.Builder
Overrides

getDefaultInstanceForType()

public SampledShapleyAttribution getDefaultInstanceForType()
Returns
TypeDescription
SampledShapleyAttribution

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
int

The pathCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SampledShapleyAttribution other)

public SampledShapleyAttribution.Builder mergeFrom(SampledShapleyAttribution other)
Parameter
NameDescription
otherSampledShapleyAttribution
Returns
TypeDescription
SampledShapleyAttribution.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SampledShapleyAttribution.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SampledShapleyAttribution.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SampledShapleyAttribution.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SampledShapleyAttribution.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SampledShapleyAttribution.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SampledShapleyAttribution.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SampledShapleyAttribution.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The pathCount to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SampledShapleyAttribution.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SampledShapleyAttribution.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SampledShapleyAttribution.Builder
Overrides