Enum gapi_grpc::google::cloud::aiplatform::v1beta1::explanation_metadata::output_metadata::DisplayNameMapping[][src]

pub enum DisplayNameMapping {
    IndexDisplayNameMapping(Value),
    DisplayNameMappingKey(String),
}

Defines how to map [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] to [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name].

If neither of the fields are specified, [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] will not be populated.

Variants

IndexDisplayNameMapping(Value)

Static mapping between the index and display name.

Use this if the outputs are a deterministic n-dimensional array, e.g. a list of scores of all the classes in a pre-defined order for a multi-classification Model. It’s not feasible if the outputs are non-deterministic, e.g. the Model produces top-k classes or sort the outputs by their values.

The shape of the value must be an n-dimensional array of strings. The number of dimensions must match that of the outputs to be explained. The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index].

DisplayNameMappingKey(String)

Specify a field name in the prediction to look for the display name.

Use this if the prediction contains the display names for the outputs.

The display names in the prediction must have the same shape of the outputs, so that it can be located by [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] for a specific output.

Implementations

impl DisplayNameMapping[src]

pub fn encode<B>(&self, buf: &mut B) where
    B: BufMut
[src]

pub fn merge<B>(
    field: &mut Option<DisplayNameMapping>,
    tag: u32,
    wire_type: WireType,
    buf: &mut B,
    ctx: DecodeContext
) -> Result<(), DecodeError> where
    B: Buf
[src]

pub fn encoded_len(&self) -> usize[src]

Trait Implementations

impl Clone for DisplayNameMapping[src]

impl Debug for DisplayNameMapping[src]

impl PartialEq<DisplayNameMapping> for DisplayNameMapping[src]

impl StructuralPartialEq for DisplayNameMapping[src]

Auto Trait Implementations

impl RefUnwindSafe for DisplayNameMapping

impl Send for DisplayNameMapping

impl Sync for DisplayNameMapping

impl Unpin for DisplayNameMapping

impl UnwindSafe for DisplayNameMapping

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]