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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public SampledShapleyAttribution.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public SampledShapleyAttribution build()
Returns
public SampledShapleyAttribution buildPartial()
Returns
public SampledShapleyAttribution.Builder clear()
Returns
Overrides
public SampledShapleyAttribution.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public SampledShapleyAttribution.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
public SampledShapleyAttribution.Builder clone()
Returns
Overrides
public SampledShapleyAttribution getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public SampledShapleyAttribution.Builder mergeFrom(SampledShapleyAttribution other)
Parameter
Returns
public SampledShapleyAttribution.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public SampledShapleyAttribution.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final SampledShapleyAttribution.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public SampledShapleyAttribution.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
public SampledShapleyAttribution.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final SampledShapleyAttribution.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides