GeezerVison is showing github.com — docs: update docstrings for "data_item_labels" in dataset · googleapis/python-aiplatform@b2f8c42
File tree
Expand file treeCollapse file tree
Open diff view settings
google/cloud/aiplatform/datasets
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: google/cloud/aiplatform/datasets/dataset.py +10Lines changed: 10 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -170,6 +170,11 @@ def create( |
170 | 170 | labels specified inside index file referenced by |
171 | 171 | ``import_schema_uri``, |
172 | 172 | 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. |
173 | 178 | project (str): |
174 | 179 | Project to upload this dataset to. Overrides project set in |
175 | 180 | aiplatform.init. |
@@ -528,6 +533,11 @@ def import_data( |
528 | 533 | labels specified inside index file referenced by |
529 | 534 | ``import_schema_uri``, |
530 | 535 | 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. |
531 | 541 | sync (bool): |
532 | 542 | Whether to execute this method synchronously. If False, this method |
533 | 543 | will be executed in concurrent Future and any downstream object will |
|