Struct google_api_proto::google::cloud::aiplatform::v1::ExplanationParameters
source · pub struct ExplanationParameters {
pub top_k: i32,
pub output_indices: Option<ListValue>,
pub method: Option<Method>,
}
Expand description
Parameters to configure explaining for Model’s predictions.
Fields§
§top_k: i32
If populated, returns attributions for top K indices of outputs (defaults to 1). Only applies to Models that predicts more than one outputs (e,g, multi-class Models). When set to -1, returns explanations for all outputs.
output_indices: Option<ListValue>
If populated, only returns attributions that have [output_index][google.cloud.aiplatform.v1.Attribution.output_index] contained in output_indices. It must be an ndarray of integers, with the same shape of the output it’s explaining.
If not populated, returns attributions for [top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k] indices of outputs. If neither top_k nor output_indices is populated, returns the argmax index of the outputs.
Only applicable to Models that predict multiple outputs (e,g, multi-class Models that predict multiple classes).
method: Option<Method>
Trait Implementations§
source§impl Clone for ExplanationParameters
impl Clone for ExplanationParameters
source§fn clone(&self) -> ExplanationParameters
fn clone(&self) -> ExplanationParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExplanationParameters
impl Debug for ExplanationParameters
source§impl Default for ExplanationParameters
impl Default for ExplanationParameters
source§impl Message for ExplanationParameters
impl Message for ExplanationParameters
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ExplanationParameters
impl PartialEq for ExplanationParameters
source§fn eq(&self, other: &ExplanationParameters) -> bool
fn eq(&self, other: &ExplanationParameters) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExplanationParameters
Auto Trait Implementations§
impl Freeze for ExplanationParameters
impl RefUnwindSafe for ExplanationParameters
impl Send for ExplanationParameters
impl Sync for ExplanationParameters
impl Unpin for ExplanationParameters
impl UnwindSafe for ExplanationParameters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request