38 KiB
Querying Details About a Dataset Version
Function
This API is used to query the details about a dataset version.
URI
GET /v2/{project_id}/datasets/{dataset_id}/versions/{version_id}
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
dataset_id |
Yes |
String |
Dataset ID. |
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
version_id |
Yes |
String |
Dataset version ID. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
add_sample_count |
Integer |
Number of added samples. |
annotated_sample_count |
Integer |
Number of samples with labeled versions. |
annotated_sub_sample_count |
Integer |
Number of labeled subsamples. |
clear_hard_property |
Boolean |
Whether to clear hard example properties during release. The options are as follows:
|
code |
String |
Status code of a preprocessing task such as rotation and cropping. |
create_time |
Long |
Time when a version is created. |
crop |
Boolean |
Whether to crop the image. This field is valid only for the object detection dataset whose labeling box is in the rectangle shape. The options are as follows:
|
crop_path |
String |
Path for storing cropped files. |
crop_rotate_cache_path |
String |
Temporary directory for executing the rotation and cropping task. |
data_path |
String |
Path for storing data. |
data_statistics |
Map<String,Object> |
Sample statistics on a dataset, including the statistics on sample metadata in JSON format. |
data_validate |
Boolean |
Whether data is validated by the validation algorithm before release. The options are as follows:
|
deleted_sample_count |
Integer |
Number of deleted samples. |
deletion_stats |
Map<String,Integer> |
Deletion reason statistics. |
description |
String |
Description of a version. |
export_images |
Boolean |
Whether to export images to the version output directory during release. The options are as follows:
|
extract_serial_number |
Boolean |
Whether to parse the subsample number during release. The field is valid for the healthcare dataset. The options are as follows:
|
include_dataset_data |
Boolean |
Whether to include the source data of a dataset during release. The options are as follows:
|
is_current |
Boolean |
Whether the current dataset version is used. The options are as follows:
|
label_stats |
Array of LabelStats objects |
Label statistics list of a released version. |
label_type |
String |
Label type of a released version. The options are as follows:
|
manifest_cache_input_path |
String |
Input path for the manifest file cache during version release. |
manifest_path |
String |
Path for storing the manifest file with the released version. |
message |
String |
Task information recorded during release (for example, error information). |
modified_sample_count |
Integer |
Number of modified samples. |
previous_annotated_sample_count |
Integer |
Number of labeled samples of parent versions. |
previous_total_sample_count |
Integer |
Total samples of parent versions. |
previous_version_id |
String |
Parent version ID |
processor_task_id |
String |
ID of a preprocessing task such as rotation and cropping. |
processor_task_status |
Integer |
Status of a preprocessing task such as rotation and cropping. The options are as follows:
|
remove_sample_usage |
Boolean |
Whether to clear the existing usage information of a dataset during release. The options are as follows:
|
rotate |
Boolean |
Whether to rotate the image. The options are as follows:
|
rotate_path |
String |
Path for storing the rotated file. |
sample_state |
String |
Sample status. The options are as follows:
|
status |
Integer |
Status of a dataset version. The options are as follows:
|
tags |
Array of strings |
Key identifier list of the dataset. The labeling type is used as the default label when the labeling task releases a version. For example, ["Image","Object detection"]. |
task_type |
Integer |
Labeling task type of the released version, which is the same as the dataset type. |
total_sample_count |
Integer |
Total number of version samples. |
total_sub_sample_count |
Integer |
Total number of subsamples generated from the parent samples. |
train_evaluate_sample_ratio |
String |
Split training and verification ratio during version release. The default value is 1.00, indicating that all labeled samples are split into the training set. |
update_time |
Long |
Time when a version is updated. |
version_format |
String |
Format of a dataset version. The options are as follows:
|
version_id |
String |
Dataset version ID. |
version_name |
String |
Dataset version name. |
with_column_header |
Boolean |
Whether the first row in the released CSV file is a column name. This field is valid for the table dataset. The options are as follows:
|
Parameter |
Type |
Description |
|---|---|---|
attributes |
Array of LabelAttribute objects |
Multi-dimensional attribute of a label. For example, if the label is music, attributes such as style and artist may be included. |
count |
Integer |
Number of labels. |
name |
String |
Label name. |
property |
LabelProperty object |
Basic attribute key-value pair of a label, such as color and shortcut keys. |
sample_count |
Integer |
Number of samples containing the label. |
type |
Integer |
Label type. The options are as follows:
|
Parameter |
Type |
Description |
|---|---|---|
default_value |
String |
Default value of a label attribute. |
id |
String |
Label attribute ID. |
name |
String |
Label attribute name. |
type |
String |
Label attribute type. The options are as follows:
|
values |
Array of LabelAttributeValue objects |
List of label attribute values. |
Parameter |
Type |
Description |
|---|---|---|
id |
String |
Label attribute value ID. |
value |
String |
Label attribute value. |
Parameter |
Type |
Description |
|---|---|---|
@modelarts:color |
String |
Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0. |
@modelarts:default_shape |
String |
Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:
|
@modelarts:from_type |
String |
Default attribute: Type of the head entity in the triplet relationship label. This attribute must be specified when a relationship label is created. This parameter is used only for the text triplet dataset. |
@modelarts:rename_to |
String |
Default attribute: The new name of the label. |
@modelarts:shortcut |
String |
Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D. |
@modelarts:to_type |
String |
Default attribute: Type of the tail entity in the triplet relationship label. This attribute must be specified when a relationship label is created. This parameter is used only for the text triplet dataset. |
Example Requests
Querying Details About a Dataset Version
GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/versions/{version_id}
Example Responses
Status code: 200
OK
{
"version_id" : "eSOKEQaXhKzxN00WKoV",
"version_name" : "V002",
"version_format" : "Default",
"previous_version_id" : "vlGvUqOcxxGPIB0ugeE",
"status" : 1,
"create_time" : 1605691027084,
"total_sample_count" : 10,
"annotated_sample_count" : 10,
"total_sub_sample_count" : 0,
"annotated_sub_sample_count" : 0,
"manifest_path" : "/test-obs/classify/output/dataset-f9e8-gfghHSokody6AJigS5A/annotation/V002/V002.manifest",
"data_path" : "/test-obs/classify/output/dataset-f9e8-gfghHSokody6AJigS5A/annotation/V002/data/",
"is_current" : true,
"train_evaluate_sample_ratio" : "0.9999",
"remove_sample_usage" : false,
"export_images" : false,
"description" : "",
"label_stats" : [ {
"name" : "Cat",
"type" : 0,
"property" : {
"@modelarts:color" : "#3399ff"
},
"count" : 5,
"sample_count" : 5
}, {
"name" : "Dog",
"type" : 0,
"property" : {
"@modelarts:color" : "#3399ff"
},
"count" : 5,
"sample_count" : 5
} ],
"label_type" : "single",
"task_type" : 0,
"extract_serial_number" : false
}
Status Codes
Status Code |
Description |
|---|---|
200 |
OK |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
Error Codes
See Error Codes.