Google Cloud Ai Platform V1 Client - Class PredefinedSplit (0.32.0)

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

Assigns input data to training, validation, and test sets based on the value of a provided key.

Supported only for tabular Datasets.

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

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ key string

Required. The key is a name of one of the Dataset's data columns. The value of the key (either the label's value or value in the column) must be one of {training, validation, test}, and it defines to which set the given piece of data is assigned. If for a piece of data the key is not present or has an invalid value, that piece is ignored by the pipeline.

getKey

Required. The key is a name of one of the Dataset's data columns.

The value of the key (either the label's value or value in the column) must be one of {training, validation, test}, and it defines to which set the given piece of data is assigned. If for a piece of data the key is not present or has an invalid value, that piece is ignored by the pipeline.

Returns
TypeDescription
string

setKey

Required. The key is a name of one of the Dataset's data columns.

The value of the key (either the label's value or value in the column) must be one of {training, validation, test}, and it defines to which set the given piece of data is assigned. If for a piece of data the key is not present or has an invalid value, that piece is ignored by the pipeline.

Parameter
NameDescription
var string
Returns
TypeDescription
$this