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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public SampledShapleyAttribution.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public SampledShapleyAttribution build()
public SampledShapleyAttribution buildPartial()
public SampledShapleyAttribution.Builder clear()
Overrides
public SampledShapleyAttribution.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public SampledShapleyAttribution.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
public SampledShapleyAttribution.Builder clone()
Overrides
public SampledShapleyAttribution getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
public final boolean isInitialized()
Overrides
public SampledShapleyAttribution.Builder mergeFrom(SampledShapleyAttribution other)
public SampledShapleyAttribution.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public SampledShapleyAttribution.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final SampledShapleyAttribution.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public SampledShapleyAttribution.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
public SampledShapleyAttribution.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final SampledShapleyAttribution.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides