public final class Explanation extends GeneratedMessageV3 implements ExplanationOrBuilder
Explanation of a prediction (provided in PredictResponse.predictions)
produced by the Model on a given instance.
Protobuf type google.cloud.aiplatform.v1beta1.Explanation
Fields
public static final int ATTRIBUTIONS_FIELD_NUMBER
Field Value
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public Attribution getAttributions(int index)
Output only. Feature attributions grouped by predicted outputs.
For Models that predict only one output, such as regression Models that
predict only one score, there is only one attibution that explains the
predicted output. For Models that predict multiple outputs, such as
multiclass Models that predict multiple classes, each element explains one
specific item. Attribution.output_index can be used to identify which
output this attribution is explaining.
If users set ExplanationParameters.top_k, the attributions are sorted
by instance_output_value in
descending order. If ExplanationParameters.output_indices is specified,
the attributions are stored by Attribution.output_index in the same
order as they appear in the output_indices.
repeated .google.cloud.aiplatform.v1beta1.Attribution attributions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
public int getAttributionsCount()
Output only. Feature attributions grouped by predicted outputs.
For Models that predict only one output, such as regression Models that
predict only one score, there is only one attibution that explains the
predicted output. For Models that predict multiple outputs, such as
multiclass Models that predict multiple classes, each element explains one
specific item. Attribution.output_index can be used to identify which
output this attribution is explaining.
If users set ExplanationParameters.top_k, the attributions are sorted
by instance_output_value in
descending order. If ExplanationParameters.output_indices is specified,
the attributions are stored by Attribution.output_index in the same
order as they appear in the output_indices.
repeated .google.cloud.aiplatform.v1beta1.Attribution attributions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public List<Attribution> getAttributionsList()
Output only. Feature attributions grouped by predicted outputs.
For Models that predict only one output, such as regression Models that
predict only one score, there is only one attibution that explains the
predicted output. For Models that predict multiple outputs, such as
multiclass Models that predict multiple classes, each element explains one
specific item. Attribution.output_index can be used to identify which
output this attribution is explaining.
If users set ExplanationParameters.top_k, the attributions are sorted
by instance_output_value in
descending order. If ExplanationParameters.output_indices is specified,
the attributions are stored by Attribution.output_index in the same
order as they appear in the output_indices.
repeated .google.cloud.aiplatform.v1beta1.Attribution attributions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public AttributionOrBuilder getAttributionsOrBuilder(int index)
Output only. Feature attributions grouped by predicted outputs.
For Models that predict only one output, such as regression Models that
predict only one score, there is only one attibution that explains the
predicted output. For Models that predict multiple outputs, such as
multiclass Models that predict multiple classes, each element explains one
specific item. Attribution.output_index can be used to identify which
output this attribution is explaining.
If users set ExplanationParameters.top_k, the attributions are sorted
by instance_output_value in
descending order. If ExplanationParameters.output_indices is specified,
the attributions are stored by Attribution.output_index in the same
order as they appear in the output_indices.
repeated .google.cloud.aiplatform.v1beta1.Attribution attributions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
public List<? extends AttributionOrBuilder> getAttributionsOrBuilderList()
Output only. Feature attributions grouped by predicted outputs.
For Models that predict only one output, such as regression Models that
predict only one score, there is only one attibution that explains the
predicted output. For Models that predict multiple outputs, such as
multiclass Models that predict multiple classes, each element explains one
specific item. Attribution.output_index can be used to identify which
output this attribution is explaining.
If users set ExplanationParameters.top_k, the attributions are sorted
by instance_output_value in
descending order. If ExplanationParameters.output_indices is specified,
the attributions are stored by Attribution.output_index in the same
order as they appear in the output_indices.
repeated .google.cloud.aiplatform.v1beta1.Attribution attributions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
List<? extends com.google.cloud.aiplatform.v1beta1.AttributionOrBuilder> | |
public static Explanation getDefaultInstance()
Returns
public Explanation getDefaultInstanceForType()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public Parser<Explanation> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public static Explanation.Builder newBuilder()
Returns
public static Explanation.Builder newBuilder(Explanation prototype)
Parameter
Returns
public Explanation.Builder newBuilderForType()
Returns
protected Explanation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static Explanation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Explanation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Explanation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static Explanation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Explanation parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static Explanation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Explanation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Explanation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Explanation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Explanation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Explanation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static Explanation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<Explanation> parser()
Returns
public Explanation.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions