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

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
NameDescription
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
TypeDescription
int

hasQuery

clearQuery

setQuery

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

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$this