Struct google_api_proto::google::cloud::aiplatform::v1::explanation_metadata::input_metadata::Visualization
source · pub struct Visualization {
pub type: i32,
pub polarity: i32,
pub color_map: i32,
pub clip_percent_upperbound: f32,
pub clip_percent_lowerbound: f32,
pub overlay_type: i32,
}
Expand description
Visualization configurations for image explanation.
Fields§
§type: i32
Type of the image visualization. Only applicable to [Integrated Gradients attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution]. OUTLINES shows regions of attribution, while PIXELS shows per-pixel attribution. Defaults to OUTLINES.
polarity: i32
Whether to only highlight pixels with positive contributions, negative or both. Defaults to POSITIVE.
color_map: i32
The color scheme used for the highlighted areas.
Defaults to PINK_GREEN for [Integrated Gradients attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution], which shows positive attributions in green and negative in pink.
Defaults to VIRIDIS for [XRAI attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution], which highlights the most influential regions in yellow and the least influential in blue.
clip_percent_upperbound: f32
Excludes attributions above the specified percentile from the highlighted areas. Using the clip_percent_upperbound and clip_percent_lowerbound together can be useful for filtering out noise and making it easier to see areas of strong attribution. Defaults to 99.9.
clip_percent_lowerbound: f32
Excludes attributions below the specified percentile, from the highlighted areas. Defaults to 62.
overlay_type: i32
How the original image is displayed in the visualization. Adjusting the overlay can help increase visual clarity if the original image makes it difficult to view the visualization. Defaults to NONE.
Implementations§
source§impl Visualization
impl Visualization
sourcepub fn type(&self) -> Type
pub fn type(&self) -> Type
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn polarity(&self) -> Polarity
pub fn polarity(&self) -> Polarity
Returns the enum value of polarity
, or the default if the field is set to an invalid enum value.
sourcepub fn set_polarity(&mut self, value: Polarity)
pub fn set_polarity(&mut self, value: Polarity)
Sets polarity
to the provided enum value.
sourcepub fn color_map(&self) -> ColorMap
pub fn color_map(&self) -> ColorMap
Returns the enum value of color_map
, or the default if the field is set to an invalid enum value.
sourcepub fn set_color_map(&mut self, value: ColorMap)
pub fn set_color_map(&mut self, value: ColorMap)
Sets color_map
to the provided enum value.
sourcepub fn overlay_type(&self) -> OverlayType
pub fn overlay_type(&self) -> OverlayType
Returns the enum value of overlay_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_overlay_type(&mut self, value: OverlayType)
pub fn set_overlay_type(&mut self, value: OverlayType)
Sets overlay_type
to the provided enum value.
Trait Implementations§
source§impl Clone for Visualization
impl Clone for Visualization
source§fn clone(&self) -> Visualization
fn clone(&self) -> Visualization
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Visualization
impl Debug for Visualization
source§impl Default for Visualization
impl Default for Visualization
source§impl Message for Visualization
impl Message for Visualization
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 Visualization
impl PartialEq for Visualization
source§fn eq(&self, other: &Visualization) -> bool
fn eq(&self, other: &Visualization) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for Visualization
impl StructuralPartialEq for Visualization
Auto Trait Implementations§
impl Freeze for Visualization
impl RefUnwindSafe for Visualization
impl Send for Visualization
impl Sync for Visualization
impl Unpin for Visualization
impl UnwindSafe for Visualization
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