Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class FractionSplit.
Assigns the input data to training, validation, and test sets as per the
given fractions. Any of training_fraction
, validation_fraction
and
test_fraction
may optionally be provided, they must sum to up to 1. If the
provided ones sum to less than 1, the remainder is assigned to sets as
decided by Vertex AI. If none of the fractions are set, by default roughly
80% of data is used for training, 10% for validation, and 10% for test.
Generated from protobuf message google.cloud.aiplatform.v1.FractionSplit
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ training_fraction |
float
The fraction of the input data that is to be used to train the Model. |
↳ validation_fraction |
float
The fraction of the input data that is to be used to validate the Model. |
↳ test_fraction |
float
The fraction of the input data that is to be used to evaluate the Model. |
getTrainingFraction
The fraction of the input data that is to be used to train the Model.
Generated from protobuf field double training_fraction = 1;
Returns | |
---|---|
Type | Description |
float |
setTrainingFraction
The fraction of the input data that is to be used to train the Model.
Generated from protobuf field double training_fraction = 1;
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |
getValidationFraction
The fraction of the input data that is to be used to validate the Model.
Generated from protobuf field double validation_fraction = 2;
Returns | |
---|---|
Type | Description |
float |
setValidationFraction
The fraction of the input data that is to be used to validate the Model.
Generated from protobuf field double validation_fraction = 2;
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |
getTestFraction
The fraction of the input data that is to be used to evaluate the Model.
Generated from protobuf field double test_fraction = 3;
Returns | |
---|---|
Type | Description |
float |
setTestFraction
The fraction of the input data that is to be used to evaluate the Model.
Generated from protobuf field double test_fraction = 3;
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |