Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization

import type { GoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization } from "https://googleapis.deno.dev/v1/aiplatform:v1.ts";

Visualization configurations for image explanation.

interface GoogleCloudAiplatformV1ExplanationMetadataInputMetadataVisualization {
clipPercentLowerbound?: number;
clipPercentUpperbound?: number;
colorMap?:
| "COLOR_MAP_UNSPECIFIED"
| "PINK_GREEN"
| "VIRIDIS"
| "RED"
| "GREEN"
| "RED_GREEN"
| "PINK_WHITE_GREEN";
overlayType?:
| "OVERLAY_TYPE_UNSPECIFIED"
| "NONE"
| "ORIGINAL"
| "GRAYSCALE"
| "MASK_BLACK";
polarity?:
| "POLARITY_UNSPECIFIED"
| "POSITIVE"
| "NEGATIVE"
| "BOTH";
type?: "TYPE_UNSPECIFIED" | "PIXELS" | "OUTLINES";
}

§Properties

§
clipPercentLowerbound?: number
[src]

Excludes attributions below the specified percentile, from the highlighted areas. Defaults to 62.

§
clipPercentUpperbound?: number
[src]

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.

§
colorMap?: "COLOR_MAP_UNSPECIFIED" | "PINK_GREEN" | "VIRIDIS" | "RED" | "GREEN" | "RED_GREEN" | "PINK_WHITE_GREEN"
[src]

The color scheme used for the highlighted areas. Defaults to PINK_GREEN for Integrated Gradients attribution, which shows positive attributions in green and negative in pink. Defaults to VIRIDIS for XRAI attribution, which highlights the most influential regions in yellow and the least influential in blue.

§
overlayType?: "OVERLAY_TYPE_UNSPECIFIED" | "NONE" | "ORIGINAL" | "GRAYSCALE" | "MASK_BLACK"
[src]

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.

§
polarity?: "POLARITY_UNSPECIFIED" | "POSITIVE" | "NEGATIVE" | "BOTH"
[src]

Whether to only highlight pixels with positive contributions, negative or both. Defaults to POSITIVE.

§
type?: "TYPE_UNSPECIFIED" | "PIXELS" | "OUTLINES"
[src]

Type of the image visualization. Only applicable to Integrated Gradients attribution. OUTLINES shows regions of attribution, while PIXELS shows per-pixel attribution. Defaults to OUTLINES.