Creates a dataset and labels, if they're specified.
Warning
For better performance, we recommend that you create a dataset by uploading a .zip file. See Create a Dataset From a Zip File Asynchronously.
Request Parameters
Name | Type | Description | Available Version |
---|---|---|---|
| string | Comma-separated list of labels. Maximum number of labels per dataset is 250. | 1.0 |
| string | Dataset language. Optional. Default is | 2.0 |
| string | Name of the dataset. Maximum length is 180 characters. | 1.0 |
| string | Type of dataset data. Valid values are:
| 2.0 |
Keep the following points in mind when creating datasets.
-
Only
type
parameter values ofimage
andimage-multi-label
are supported. This call can't be used to create a dataset with atype
ofimage-detection
. -
Label names can’t contain a comma.
-
You can’t delete a label. To change the labels in a dataset, recreate the dataset with the correct labels.
-
Label names must be unique within the dataset.
-
A dataset must have a minimum of two labels to create a model.
-
To add examples to a dataset created using this API, use the Create an Example call.
Response Body
Name | Type | Description | Available Version |
---|---|---|---|
| boolean | Specifies whether the dataset is ready to be trained. | 1.0 |
| date | Date and time that the dataset was created. | 1.0 |
| long | Dataset ID. | 1.0 |
| object | Contains the | 1.0 |
| string | Dataset language. Default is | 2.0 |
| string | Name of the dataset. | 1.0 |
| int | When you create a dataset using this call, this value will always be 0. | 2.0 |
| string | Object returned; in this case, | 1.0 |
| string | Status of the dataset creation and data upload. Valid values are:
| 1.0 |
| int | Total number of examples in the dataset. | 1.0 |
| int | Total number of labels in the dataset. | 1.0 |
| string | Type of dataset data. Valid values are:
| 1.0 |
| date | Date and time that the dataset was last updated. | 1.0 |
Labels Response Body
Name | Type | Description | Available Version |
---|---|---|---|
| long | ID of the dataset that the label belongs to. | 1.0 |
| long | ID of the label. | 1.0 |
| string | Name of the label. | 1.0 |
| int | Number of examples that have the label. | 1.0 |