- Resource: Dataset
- TranslationDatasetMetadata
- ImageClassificationDatasetMetadata
- ClassificationType
- TextClassificationDatasetMetadata
- Methods
Resource: Dataset
A workspace for solving a single, particular machine learning (ML) problem. A workspace contains examples that may be annotated.
JSON representation | |
---|---|
{ "name": string, "displayName": string, "exampleCount": number, "createTime": string, // Union field |
Fields | ||
---|---|---|
name |
Output only. The resource name of the dataset. Form: |
|
displayName |
Required. The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. |
|
exampleCount |
Output only. The number of examples in the dataset. |
|
createTime |
Output only. Timestamp when this dataset was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: |
|
Union field dataset_metadata . Required. The dataset metadata that is specific to the problem type. dataset_metadata can be only one of the following: |
||
translationDatasetMetadata |
Metadata for a dataset used for translation. |
|
imageClassificationDatasetMetadata |
Metadata for a dataset used for image classification. |
|
textClassificationDatasetMetadata |
Metadata for a dataset used for text classification. |
TranslationDatasetMetadata
Dataset metadata that is specific to translation.
JSON representation | |
---|---|
{ "sourceLanguageCode": string, "targetLanguageCode": string } |
Fields | |
---|---|
sourceLanguageCode |
Required. The BCP-47 language code of the source language. |
targetLanguageCode |
Required. The BCP-47 language code of the target language. |
ImageClassificationDatasetMetadata
Dataset metadata that is specific to image classification.
JSON representation | |
---|---|
{
"classificationType": enum( |
Fields | |
---|---|
classificationType |
Required. Type of the classification problem. |
ClassificationType
Type of the classification problem.
Enums | |
---|---|
CLASSIFICATION_TYPE_UNSPECIFIED |
Should not be used, an un-set enum has this value by default. |
MULTICLASS |
At most one label is allowed per example. |
MULTILABEL |
Multiple labels are allowed for one example. |
TextClassificationDatasetMetadata
Dataset metadata for classification.
JSON representation | |
---|---|
{
"classificationType": enum( |
Fields | |
---|---|
classificationType |
Required. Type of the classification problem. |
Methods |
|
---|---|
|
Creates a dataset. |
|
Deletes a dataset and all of its contents. |
|
Gets a dataset. |
|
Gets the access control policy for a resource. |
|
Imports data into a dataset. |
|
Lists datasets in a project. |
|
Sets the access control policy on the specified resource. |