Skip to content

Commit b2f8c42

Browse files
jaycee-licopybara-github
authored andcommitted
docs: update docstrings for "data_item_labels" in dataset
PiperOrigin-RevId: 492062067
1 parent 957703f commit b2f8c42

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

google/cloud/aiplatform/datasets/dataset.py

+10
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ def create(
170170
labels specified inside index file referenced by
171171
``import_schema_uri``,
172172
e.g. jsonl file.
173+
This arg is not for specifying the annotation name or the
174+
training target of your data, but for some global labels of
175+
the dataset. E.g.,
176+
'data_item_labels={"aiplatform.googleapis.com/ml_use":"training"}'
177+
specifies that all the uploaded data are used for training.
173178
project (str):
174179
Project to upload this dataset to. Overrides project set in
175180
aiplatform.init.
@@ -528,6 +533,11 @@ def import_data(
528533
labels specified inside index file referenced by
529534
``import_schema_uri``,
530535
e.g. jsonl file.
536+
This arg is not for specifying the annotation name or the
537+
training target of your data, but for some global labels of
538+
the dataset. E.g.,
539+
'data_item_labels={"aiplatform.googleapis.com/ml_use":"training"}'
540+
specifies that all the uploaded data are used for training.
531541
sync (bool):
532542
Whether to execute this method synchronously. If False, this method
533543
will be executed in concurrent Future and any downstream object will

0 commit comments

Comments
 (0)