Google Cloud Ai Platform V1 Client - Class Presets (0.37.1)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class Presets.

Preset configuration for example-based explanations

Generated from protobuf message google.cloud.aiplatform.v1.Presets

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ query int

Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE.

↳ modality int

The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.

getQuery

Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE.

Returns
Type Description
int

hasQuery

clearQuery

setQuery

Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE.

Parameter
Name Description
var int
Returns
Type Description
$this

getModality

The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.

Returns
Type Description
int

setModality

The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.

Parameter
Name Description
var int
Returns
Type Description
$this