Google Cloud Ai Platform V1 Client - Class SparseEmbedding (1.0.0)

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

Feature embedding vector for sparse index. An array of numbers whose values are located in the specified dimensions.

Generated from protobuf message google.cloud.aiplatform.v1.IndexDatapoint.SparseEmbedding

Namespace

Google \ Cloud \ AIPlatform \ V1 \ IndexDatapoint

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ values array

Required. The list of embedding values of the sparse vector.

↳ dimensions array

Required. The list of indexes for the embedding values of the sparse vector.

getValues

Required. The list of embedding values of the sparse vector.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setValues

Required. The list of embedding values of the sparse vector.

Parameter
Name Description
var float[]
Returns
Type Description
$this

getDimensions

Required. The list of indexes for the embedding values of the sparse vector.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setDimensions

Required. The list of indexes for the embedding values of the sparse vector.

Parameter
Name Description
var int[]|string[]|Google\Protobuf\Internal\RepeatedField
Returns
Type Description
$this