Obtaining Information About Intelligent Tasks¶
Function¶
This interface is used to obtain details about intelligent tasks. Intelligent labeling and automatic grouping tasks can be queried. You can specify the task_id parameter to query the details about a specific task.
Debugging¶
You can debug this API through automatic authentication in or use the SDK sample code generated by API Explorer.
URI¶
GET /v2/{project_id}/datasets/{dataset_id}/tasks/{task_id}
Parameter | Mandatory | Type | Description |
---|---|---|---|
dataset_id | Yes | String | Dataset ID. |
project_id | Yes | String | Project ID. For details about how to obtain a project ID, see Obtaining a Project ID and Name. |
task_id | Yes | String | Task ID. |
Request Parameters¶
None
Response Parameters¶
Status code: 200
Parameter | Type | Description |
---|---|---|
code | String | Task running status code. |
config | SmartTaskConfig object | Task configuration. |
create_time | String | Task creation time. |
elapsed_time | Long | Execution time. |
error_code | String | Error code. |
error_detail | String | Error details. |
error_msg | String | Error message. |
message | String | Task running information. |
progress | Float | Task progress percentage. |
resource_id | String | Resource ID. |
result | Result object | Task result. |
status | Integer | Task status. Options:
|
task_id | String | Task ID. |
task_name | String | Task name. |
export_type | Integer | Export type. Options:
|
Parameter | Type | Description |
---|---|---|
algorithm_type | String | Algorithm type for auto labeling. Options:
|
ambiguity | Boolean | Whether to perform clustering based on the image blurring degree. |
annotation_output | String | Output path of the active learning labeling result. |
collect_rule | String | Sample collection rule. The default value is all, indicating full collection. Currently, only value all is available. |
collect_sample | Boolean | Whether to enable sample collection. Options:
|
confidence_scope | String | Confidence range of key samples. The minimum and maximum values are separated by hyphens (-). Example: 0.10-0.90. |
description | String | Task description. |
engine_name | String | Engine name. |
export_format | Integer | Format of the exported directory. Options:
|
export_params | ExportParams object | Parameters of a dataset export task. |
flavor | Flavor object | Training resource flavor. |
image_brightness | Boolean | Whether to perform clustering based on the image brightness. |
image_colorfulness | Boolean | Whether to perform clustering based on the image color. |
inf_cluster_id | String | ID of a dedicated cluster. This parameter is left blank by default, indicating that a dedicated cluster is not used. When using the dedicated cluster to deploy services, ensure that the cluster status is normal. After this parameter is set, the network configuration of the cluster is used, and the vpc_id parameter does not take effect. |
inf_config_list | Array of InfConfig objects | Configuration list required for running an inference task, which is optional and left blank by default. |
inf_output | String | Output path of inference in active learning. |
infer_result_output_dir | String | OBS directory for storing sample prediction results. This parameter is optional. The {service_id}-infer-result subdirectory in the output_dir directory is used by default. |
key_sample_output | String | Output path of hard examples in active learning. |
log_url | String | OBS URL of the logs of a training job. By default, this parameter is left blank. |
manifest_path | String | Path of the manifest file, which is used as the input for training and inference. |
model_id | String | Model ID. |
model_name | String | Model name. |
model_parameter | String | Model parameter. |
model_version | String | Model version. |
n_clusters | Integer | Number of clusters. |
name | String | Task name. |
output_dir | String | Sample output path. The format is as follows: Dataset output path/Dataset name |
parameters | Array of TrainingParameter objects | Runtime parameters of a training job |
pool_id | String | ID of a resource pool. |
property | String | Attribute name. |
req_uri | String | Inference path of a batch job. |
result_type | Integer | Processing mode of auto grouping results. Options:
|
samples | Array of SampleLabels objects | List of labeling information for samples to be auto labeled. |
stop_time | Integer | Timeout interval, in minutes. The default value is 15 minutes. This parameter is used only in the scenario of auto labeling for videos. |
time | String | Timestamp in active learning. |
train_data_path | String | Path for storing existing training datasets. |
train_url | String | URL of the OBS path where the file of a training job is outputted. By default, this parameter is left blank. |
version_format | String | Format of a dataset version. Options:
|
worker_server_num | Integer | Number of workers in a training job. |
Parameter | Type | Description |
---|---|---|
clear_hard_property | Boolean | Whether to clear hard example attributes. Options:
|
export_dataset_version_format | String | Format of the dataset version to which data is exported. |
export_dataset_version_name | String | Name of the dataset version to which data is exported. |
export_dest | String | Export destination. Options:
|
export_new_dataset_name | String | Name of the new dataset to which data is exported. |
export_new_dataset_work_path | String | Working directory of the new dataset to which data is exported. |
ratio_sample_usage | Boolean | Whether to randomly allocate the training set and validation set based on the specified ratio. Options:
|
sample_state | String | Sample status. Options:
|
samples | Array of strings | ID list of exported samples. |
search_conditions | Array of SearchCondition objects | Exported search conditions. The relationship between multiple search conditions is OR. |
train_sample_ratio | String | Split ratio of training set and verification set during specified version release. The default value is 1.00, indicating that all released versions are training sets. |
Parameter | Type | Description |
---|---|---|
coefficient | String | Filter by coefficient of difficulty. |
frame_in_video | Integer | A frame in the video. |
hard | String | Whether a sample is a hard sample. Options:
|
import_origin | String | Filter by data source. |
kvp | String | CT dosage, filtered by dosage. |
label_list | SearchLabels object | Label search criteria. |
labeler | String | Labeler. |
metadata | SearchProp object | Search by sample attribute. |
parent_sample_id | String | Parent sample ID. |
sample_dir | String | Directory where data samples are stored (the directory must end with a slash (/)). Only samples in the specified directory are searched for. Recursive search of directories is not supported. |
sample_name | String | Search by sample name, including the file name extension. |
sample_time | String | When a sample is added to the dataset, an index is created based on the last modification time (accurate to day) of the sample on OBS. You can search for the sample based on the time. Options:
|
score | String | Search by confidence. |
slice_thickness | String | DICOM layer thickness. Samples are filtered by layer thickness. |
study_date | String | DICOM scanning time. |
time_in_video | String | A time point in the video. |
Parameter | Type | Description |
---|---|---|
labels | Array of SearchLabel objects | List of label search criteria. |
op | String | If you want to search for multiple labels, op must be specified. If you search for only one label, op can be left blank. Options:
|
Parameter | Type | Description |
---|---|---|
name | String | Label name. |
op | String | Operation type between multiple attributes. Options:
|
property | Map<String,Array<String>> | Label attribute, which is in the Object format and stores any key-value pairs. key indicates the attribute name, and value indicates the value list. If value is null, the search is not performed by value. Otherwise, the search value can be any value in the list. |
type | Integer | Label type. Options:
|
Parameter | Type | Description |
---|---|---|
op | String | Relationship between attribute values. Options:
|
props | Map<String,Array<String>> | Search criteria of an attribute. Multiple search criteria can be set. |
Parameter | Type | Description |
---|---|---|
code | String | Attribute code of a resource specification, which is used for task creating. |
Parameter | Type | Description |
---|---|---|
envs | Map<String,String> | (Optional) Environment variable key-value pair required for running a model. By default, this parameter is left blank. To ensure data security, do not enter sensitive information in environment variables. |
instance_count | Integer | Instance number of model deployment, that is, the number of compute nodes. |
model_id | String | Model ID. |
specification | String | Resource specifications of real-time services. For details, see Deploying Services. |
weight | Integer | Traffic weight allocated to a model. This parameter is mandatory only when infer_type is set to real-time. The sum of the weights must be 100. |
Parameter | Type | Description |
---|---|---|
label | String | Parameter name. |
value | String | Parameter value. |
Parameter | Type | Description |
---|---|---|
annotated_sample_count | Integer | Number of labeled samples. |
confidence_scope | String | Confidence range. |
dataset_name | String | Dataset name. |
dataset_type | String | Dataset type. Options:
|
description | String | Description. |
dlf_model_job_name | String | Name of a DLF model inference job. |
dlf_service_job_name | String | Name of a DLF real-time service job. |
dlf_train_job_name | String | Name of a DLF training job. |
events | Array of Event objects | Event. |
hard_example_path | String | Path for storing hard examples. |
hard_select_tasks | Array of HardSelectTask objects | Selected task list of hard examples. |
manifest_path | String | Path for storing the manifest files. |
model_id | String | Model ID. |
model_name | String | Model name. |
model_version | String | Model version. |
samples | Array of SampleLabels objects | Inference result of the real-time video service. |
service_id | String | ID of a real-time service. |
service_name | String | Name of a real-time service. |
service_resource | String | ID of the real-time service bound to a user. |
total_sample_count | Integer | Total number of samples. |
train_data_path | String | Path for storing training data. |
train_job_id | String | ID of a training job. |
train_job_name | String | Name of a training job. |
unconfirmed_sample_count | Integer | Number of samples to be confirmed. |
version_id | String | Dataset version ID. |
version_name | String | Dataset version name. |
workspace_id | String | Workspace ID. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value. |
Parameter | Type | Description |
---|---|---|
create_time | Long | Time when an event is created. |
description | String | Description. |
elapsed_time | Long | Time when an event is executed |
error_code | String | Error code. |
error_message | String | Error message. |
events | Array of Event objects | Subevent list. |
level | Integer | Event severity. |
name | String | Event name. |
ordinal | Integer | Sequence number. |
parent_name | String | Parent event name. |
status | String | Status. Options:
|
Parameter | Type | Description |
---|---|---|
create_at | Long | Creation time. |
dataset_id | String | Dataset ID. |
dataset_name | String | Dataset name. |
hard_select_task_id | String | ID of a hard example filtering task. |
task_status | String | Task status. |
time | Long | Execution time. |
update_at | Long | Update time. |
Parameter | Type | Description |
---|---|---|
labels | Array of SampleLabel objects | Sample label list. If this parameter is left blank, all sample labels are deleted. |
metadata | SampleMetadata object | Key-value pair of the sample metadata attribute. |
sample_id | String | Sample ID. |
sample_type | Integer | Sample type. Options:
|
sample_usage | String | Sample usage. Options:
|
source | String | Source address of sample data. |
worker_id | String | ID of a labeling team member. |
Parameter | Type | Description |
---|---|---|
annotated_by | String | Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. Options:
|
id | String | Label ID. |
name | String | Label name. |
property | SampleLabelProperty object | Attribute key-value pair of the sample label, such as the object shape and shape feature. |
score | Float | Confidence. |
type | Integer | Label type. Options:
|
Parameter | Type | Description |
---|---|---|
@modelarts:content | String | Speech text content, which is a default attribute dedicated to the speech label (including the speech content and speech start and end points). |
@modelarts:end_index | Integer | End position of the text, which is a default attribute dedicated to the named entity label. The end position does not include the character corresponding to the value of end_index. Example:
|
@modelarts:end_time | String | Speech end time, which is a default attribute dedicated to the speech start/end point label, in the format of hh:mm:ss.SSS. (hh indicates hour; mm indicates minute; ss indicates second; and SSS indicates millisecond.) |
@modelarts:feature | Object | Shape feature, which is a default attribute dedicated to the object detection label, with type of List. The upper left corner of the image is used as the coordinate origin [0, 0]. Each coordinate point is represented by [x, y], where x indicates the horizontal coordinate and y indicates the vertical coordinate (both x and y are >=0). The format of each shape is as follows:
|
@modelarts:from | String | ID of the head entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label. |
@modelarts:hard | String | Sample labeled as a hard sample or not, which is a default attribute. Options:
|
@modelarts:hard_coefficient | String | Coefficient of difficulty of each label level, which is a default attribute. The value range is [0,1]. |
@modelarts:hard_reasons | String | Reasons that the sample is a hard sample, which is a default attribute. Use a hyphen (-) to separate every two hard sample reason IDs, for example, 3-20-21-19. Options:
|
@modelarts:shape | String | Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. Options:
|
@modelarts:source | String | Speech source, which is a default attribute dedicated to the speech start/end point label and can be set to a speaker or narrator. |
@modelarts:start_index | Integer | Start position of the text, which is a default attribute dedicated to the named entity label. The start value begins from 0, including the character corresponding to the value of start_index. |
@modelarts:start_time | String | Speech start time, which is a default attribute dedicated to the speech start/end point label, in the format of hh:mm:ss.SSS. (hh indicates hour; mm indicates minute; ss indicates second; and SSS indicates millisecond.) |
@modelarts:to | String | ID of the tail entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label. |
Parameter | Type | Description |
---|---|---|
@modelarts:import_origin | Integer | Sample source, which is a built-in attribute. |
@modelarts:hard | Double | Whether the sample is labeled as a hard sample, which is a default attribute. Options:
|
@modelarts:hard_coefficient | Double | Coefficient of difficulty of each sample level, which is a default attribute. The value range is [0,1]. |
@modelarts:hard_reasons | Array of integers | ID of a hard sample reason, which is a default attribute. Options:
|
@modelarts:size | Array of objects | Image size (width, height, and depth of the image), which is a default attribute, with type of List<Integer>. In the list, the first number indicates the width (pixels), the second number indicates the height (pixels), and the third number indicates the depth (the depth can be left blank and the default value is 3). For example, [100,200,3] and [100,200] are both valid. Note: This parameter is mandatory only when the sample label list contains the object detection label. |
Example Requests¶
Obtaining Information About an Auto Labeling (Active Learning) Task
GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/tasks/{task_id}
Example Responses¶
Status code: 200
OK
{
"resource_id" : "XGrRZuCV1qmMxnsmD5u",
"create_time" : "2020-11-23 11:08:20",
"progress" : 10.0,
"status" : 1,
"message" : "Start to export annotations. Export task id is jMZGm2SBp4Ymr2wrhAK",
"code" : "ModelArts.4902",
"elapsed_time" : 0,
"result" : {
"total_sample_count" : 49,
"annotated_sample_count" : 30
},
"export_type" : 0,
"config" : {
"ambiguity" : false,
"worker_server_num" : 0,
"collect_sample" : false,
"algorithm_type" : "fast",
"image_brightness" : false,
"image_colorfulness" : false
}
}
Status Codes¶
Status Code | Description |
---|---|
200 | OK |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
Error Codes¶
See Error Codes.