Class ExamplesOverride (1.48.0)

ExamplesOverride(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Overrides for example-based explanations.

Attributes

NameDescription
neighbor_count int
The number of neighbors to return.
crowding_count int
The number of neighbors to return that have the same crowding tag.
restrictions MutableSequence[google.cloud.aiplatform_v1.types.ExamplesRestrictionsNamespace]
Restrict the resulting nearest neighbors to respect these constraints.
return_embeddings bool
If true, return the embeddings instead of neighbors.
data_format google.cloud.aiplatform_v1.types.ExamplesOverride.DataFormat
The format of the data being provided with each call.

Classes

DataFormat

DataFormat(value)

Data format enum.

Values: DATA_FORMAT_UNSPECIFIED (0): Unspecified format. Must not be used. INSTANCES (1): Provided data is a set of model inputs. EMBEDDINGS (2): Provided data is a set of embeddings.

Methods

ExamplesOverride

ExamplesOverride(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Overrides for example-based explanations.