diff --git a/docs/modelarts/api-ref/ALL_META.TXT.json b/docs/modelarts/api-ref/ALL_META.TXT.json index 4ea48b04..7960f2f6 100644 --- a/docs/modelarts/api-ref/ALL_META.TXT.json +++ b/docs/modelarts/api-ref/ALL_META.TXT.json @@ -1,1291 +1,3728 @@ [ + { + "dockw":"API Reference" + }, { "uri":"modelarts_03_0139.html", + "node_id":"modelarts_03_0139.xml", "product_code":"modelarts", "code":"1", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Before You Start", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Before You Start", "githuburl":"" }, { "uri":"modelarts_03_0001.html", + "node_id":"modelarts_03_0001.xml", "product_code":"modelarts", "code":"2", "des":"ModelArts is a one-stop AI development platform geared toward developers and data scientists of all skill levels. It enables you to rapidly build, train, and deploy model", "doc_type":"api", "kw":"Overview,Before You Start,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Overview", "githuburl":"" }, { "uri":"modelarts_03_0140.html", + "node_id":"modelarts_03_0140.xml", "product_code":"modelarts", "code":"3", - "des":"ModelArts provides Representational State Transfer (REST) APIs, allowing you to call APIs through HTTPS. For details about API calling, see Calling APIs.In addition, Mode", + "des":"ModelArts supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS. For details about API calling, see Calling APIs.", "doc_type":"api", "kw":"API Calling,Before You Start,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"API Calling", "githuburl":"" }, { "uri":"modelarts_03_0141.html", + "node_id":"modelarts_03_0141.xml", "product_code":"modelarts", "code":"4", - "des":"An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. For the endpoints of all services, see Regions and Endpoints.If a", + "des":"An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. For the endpoints of all services, see Regions and Endpoints.", "doc_type":"api", - "kw":"Endpoints,Before You Start,API Reference", - "title":"Endpoints", + "kw":"Endpoint,Before You Start,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Endpoint", "githuburl":"" }, { "uri":"modelarts_03_0143.html", + "node_id":"modelarts_03_0143.xml", "product_code":"modelarts", "code":"5", "des":"AccountAn account is created upon successful registration with the cloud platform. The account has full access permissions for all of its cloud services and resources. It", "doc_type":"api", "kw":"Basic Concepts,Before You Start,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Basic Concepts", "githuburl":"" }, { "uri":"modelarts_03_0002.html", + "node_id":"modelarts_03_0002.xml", "product_code":"modelarts", "code":"6", - "des":"All ModelArts APIs are proprietary.You can use these APIs to manage datasets, training jobs, models, and services.Data management APIs include the APIs for managing datas", + "des":"All ModelArts APIs are proprietary.Data management APIs include the APIs for managing datasets, dataset versions, samples, and labels. Use these APIs to create datasets a", "doc_type":"api", "kw":"API Overview,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"API Overview", "githuburl":"" }, { "uri":"modelarts_03_0144.html", + "node_id":"modelarts_03_0144.xml", "product_code":"modelarts", "code":"7", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Calling APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Calling APIs", "githuburl":"" }, { "uri":"modelarts_03_0005.html", + "node_id":"modelarts_03_0005.xml", "product_code":"modelarts", "code":"8", "des":"This section describes the structure of a REST API request, and uses the IAM API for obtaining a user token as an example to demonstrate how to call an API. The obtained ", "doc_type":"api", "kw":"Making an API Request,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Making an API Request", "githuburl":"" }, { "uri":"modelarts_03_0004.html", + "node_id":"modelarts_03_0004.xml", "product_code":"modelarts", "code":"9", "des":"Requests for calling an API can be authenticated using either of the following methods: AK/SK-based authentication: Requests are authenticated by encrypting the request b", "doc_type":"api", "kw":"Authentication,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Authentication", "githuburl":"" }, { "uri":"modelarts_03_0003.html", + "node_id":"modelarts_03_0003.xml", "product_code":"modelarts", "code":"10", "des":"After sending a request, you will receive a response, including the status code, response header, and response body.A status code is a group of digits, ranging from 1xx t", "doc_type":"api", "kw":"Response,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Response", "githuburl":"" }, { "uri":"modelarts_03_0202.html", + "node_id":"modelarts_03_0202.xml", "product_code":"modelarts", "code":"11", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Data Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Data Management", "githuburl":"" }, { "uri":"modelarts_03_0299.html", + "node_id":"modelarts_03_0299.xml", "product_code":"modelarts", "code":"12", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Data Management APIs,Data Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Data Management APIs", "githuburl":"" }, { "uri":"dataset_management.html", - "product_code":"", + "node_id":"dataset_management.xml", + "product_code":"modelarts", "code":"13", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Dataset Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Dataset Management", "githuburl":"" }, { "uri":"ListDatasets.html", - "product_code":"", + "node_id":"listdatasets.xml", + "product_code":"modelarts", "code":"14", "des":"This API is used to query the created datasets that meet the search criteria by page.GET /v2/{project_id}/datasetsNoneStatus code: 200Querying the Dataset ListStatus code", "doc_type":"api", "kw":"Querying the Dataset List,Dataset Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying the Dataset List", "githuburl":"" }, { "uri":"CreateDataset.html", - "product_code":"", + "node_id":"createdataset.xml", + "product_code":"modelarts", "code":"15", "des":"This API is used to create a dataset.POST /v2/{project_id}/datasetsStatus code: 201Creating an Image Classification Dataset{\n \"workspace_id\" : \"0\",\n \"dataset_name\" : \"d", "doc_type":"api", "kw":"Creating a Dataset,Dataset Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Creating a Dataset", "githuburl":"" }, { "uri":"DescDataset.html", - "product_code":"", + "node_id":"descdataset.xml", + "product_code":"modelarts", "code":"16", "des":"This API is used to query details about a dataset.GET /v2/{project_id}/datasets/{dataset_id}NoneStatus code: 200Querying Details About a DatasetStatus code: 200OKSee Erro", "doc_type":"api", "kw":"Querying Details About a Dataset,Dataset Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying Details About a Dataset", "githuburl":"" }, { "uri":"UpdateDataset.html", - "product_code":"", + "node_id":"updatedataset.xml", + "product_code":"modelarts", "code":"17", "des":"This API is used to modify basic information about a dataset, such as the dataset name, description, current version, and labels.PUT /v2/{project_id}/datasets/{dataset_id", "doc_type":"api", "kw":"Modifying a Dataset,Dataset Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Modifying a Dataset", "githuburl":"" }, { "uri":"DeleteDataset.html", - "product_code":"", + "node_id":"deletedataset.xml", + "product_code":"modelarts", "code":"18", "des":"This API is used to delete a dataset without deleting the source data of the dataset.DELETE /v2/{project_id}/datasets/{dataset_id}NoneNoneDeleting a DatasetStatus code: 2", "doc_type":"api", "kw":"Deleting a Dataset,Dataset Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Deleting a Dataset", "githuburl":"" }, { "uri":"ListStats.html", - "product_code":"", + "node_id":"liststats.xml", + "product_code":"modelarts", "code":"19", "des":"This API is used to query dataset statistics.GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/statsNoneStatus code: 200Querying Dataset StatisticsStatus code: ", "doc_type":"api", "kw":"Querying Dataset Statistics,Dataset Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying Dataset Statistics", "githuburl":"" }, { "uri":"GetDatasetMetrics.html", - "product_code":"", + "node_id":"getdatasetmetrics.xml", + "product_code":"modelarts", "code":"20", "des":"This API is used to query the monitoring data of a dataset within a specified time range.GET /v2/{project_id}/datasets/{dataset_id}/metricsNoneStatus code: 200Querying th", "doc_type":"api", "kw":"Querying the Monitoring Data of a Dataset,Dataset Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying the Monitoring Data of a Dataset", "githuburl":"" }, { - "uri":"dataset_version_management.html", - "product_code":"", + "uri":"ListWorkforceTaskStats.html", + "node_id":"listworkforcetaskstats.xml", + "product_code":"modelarts", "code":"21", + "des":"This API is used to query details about team labeling task statistics.GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/stat", + "doc_type":"api", + "kw":"Querying Details About Team Labeling Task Statistics,Dataset Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying Details About Team Labeling Task Statistics", + "githuburl":"" + }, + { + "uri":"GetWorkforceTaskMetrics.html", + "node_id":"getworkforcetaskmetrics.xml", + "product_code":"modelarts", + "code":"22", + "des":"This API is used to query details about the progress of a team labeling task member.GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/metrics", + "doc_type":"api", + "kw":"Querying Details About the Progress of a Team Labeling Task Member,Dataset Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying Details About the Progress of a Team Labeling Task Member", + "githuburl":"" + }, + { + "uri":"dataset_version_management.html", + "node_id":"dataset_version_management.xml", + "product_code":"modelarts", + "code":"23", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Dataset Version Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Dataset Version Management", "githuburl":"" }, { "uri":"ListDatasetVersions.html", - "product_code":"", - "code":"22", + "node_id":"listdatasetversions.xml", + "product_code":"modelarts", + "code":"24", "des":"This API is used to query the version list of a specific dataset.GET /v2/{project_id}/datasets/{dataset_id}/versionsNoneStatus code: 200Querying the Version List of a Spe", "doc_type":"api", "kw":"Querying the Dataset Version List,Dataset Version Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying the Dataset Version List", "githuburl":"" }, { "uri":"CreateDatasetVersion.html", - "product_code":"", - "code":"23", + "node_id":"createdatasetversion.xml", + "product_code":"modelarts", + "code":"25", "des":"This API is used to create a dataset labeling version.POST /v2/{project_id}/datasets/{dataset_id}/versionsStatus code: 201Creating a Dataset Labeling VersionStatus code: ", "doc_type":"api", "kw":"Creating a Dataset Labeling Version,Dataset Version Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Creating a Dataset Labeling Version", "githuburl":"" }, { "uri":"DescribeDatasetVersion.html", - "product_code":"", - "code":"24", + "node_id":"describedatasetversion.xml", + "product_code":"modelarts", + "code":"26", "des":"This API is used to query the details about a dataset version.GET /v2/{project_id}/datasets/{dataset_id}/versions/{version_id}NoneStatus code: 200Querying Details About a", "doc_type":"api", "kw":"Querying Details About a Dataset Version,Dataset Version Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying Details About a Dataset Version", "githuburl":"" }, { "uri":"DeleteDatasetVersion.html", - "product_code":"", - "code":"25", + "node_id":"deletedatasetversion.xml", + "product_code":"modelarts", + "code":"27", "des":"This API is used to delete a dataset labeling version.DELETE /v2/{project_id}/datasets/{dataset_id}/versions/{version_id}NoneNoneDeleting a Dataset Labeling VersionStatus", "doc_type":"api", "kw":"Deleting a Dataset Labeling Version,Dataset Version Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Deleting a Dataset Labeling Version", "githuburl":"" }, { "uri":"sample_management.html", - "product_code":"", - "code":"26", + "node_id":"sample_management.xml", + "product_code":"modelarts", + "code":"28", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Sample Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Sample Management", "githuburl":"" }, { "uri":"ListSamples.html", - "product_code":"", - "code":"27", + "node_id":"listsamples.xml", + "product_code":"modelarts", + "code":"29", "des":"This API is used to query the sample list by page.GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/samplesNoneStatus code: 200Querying the Sample List by PageS", "doc_type":"api", "kw":"Querying the Sample List,Sample Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying the Sample List", "githuburl":"" }, { "uri":"UploadSamplesJson.html", - "product_code":"", - "code":"28", + "node_id":"uploadsamplesjson.xml", + "product_code":"modelarts", + "code":"30", "des":"This API is used to add samples in batches.POST /v2/{project_id}/datasets/{dataset_id}/data-annotations/samplesStatus code: 200Adding Samples in BatchesStatus code: 200OK", "doc_type":"api", "kw":"Adding Samples in Batches,Sample Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Adding Samples in Batches", "githuburl":"" }, { "uri":"DeleteSamples.html", - "product_code":"", - "code":"29", + "node_id":"deletesamples.xml", + "product_code":"modelarts", + "code":"31", "des":"This API is used to delete samples in batches.POST /v2/{project_id}/datasets/{dataset_id}/data-annotations/samples/deleteStatus code: 200Deleting Samples in BatchesStatus", "doc_type":"api", "kw":"Deleting Samples in Batches,Sample Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Deleting Samples in Batches", "githuburl":"" }, { "uri":"DescribeSample.html", - "product_code":"", - "code":"30", + "node_id":"describesample.xml", + "product_code":"modelarts", + "code":"32", "des":"Query details about a sample.GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/samples/{sample_id}NoneStatus code: 200Querying Details About a SampleStatus code", "doc_type":"api", "kw":"Querying Details About a Sample,Sample Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying Details About a Sample", "githuburl":"" }, { "uri":"ListSearch.html", - "product_code":"", - "code":"31", + "node_id":"listsearch.xml", + "product_code":"modelarts", + "code":"33", "des":"This API is used to obtain sample search condition.GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/search-conditionNoneStatus code: 200Obtaining Sample Search", "doc_type":"api", "kw":"Obtaining Sample Search Condition,Sample Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Obtaining Sample Search Condition", "githuburl":"" }, { - "uri":"topic_300000012.html", - "product_code":"", - "code":"32", + "uri":"ListWorkforceTaskSamples.html", + "node_id":"listworkforcetasksamples.xml", + "product_code":"modelarts", + "code":"34", + "des":"This API is used to query the sample list of a team labeling task by page.GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/", + "doc_type":"api", + "kw":"Querying the Sample List of a Team Labeling Task by Page,Sample Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Sample List of a Team Labeling Task by Page", + "githuburl":"" + }, + { + "uri":"DescribeWorkforceTaskSample.html", + "node_id":"describeworkforcetasksample.xml", + "product_code":"modelarts", + "code":"35", + "des":"This API is used to query details about team labeling samples.GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/samples/{sam", + "doc_type":"api", + "kw":"Querying Details About Team Labeling Samples,Sample Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying Details About Team Labeling Samples", + "githuburl":"" + }, + { + "uri":"label_management.html", + "node_id":"label_management.xml", + "product_code":"modelarts", + "code":"36", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Label Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Label Management", "githuburl":"" }, { "uri":"ListLabels.html", - "product_code":"", - "code":"33", + "node_id":"listlabels.xml", + "product_code":"modelarts", + "code":"37", "des":"This API is used to query all labels of a dataset.GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/labelsNoneStatus code: 200Querying All Labels of a DatasetSt", "doc_type":"api", "kw":"Querying the Dataset Label List,Label Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying the Dataset Label List", "githuburl":"" }, { "uri":"CreateLabels.html", - "product_code":"", - "code":"34", + "node_id":"createlabels.xml", + "product_code":"modelarts", + "code":"38", "des":"This API is used to create a dataset label.POST /v2/{project_id}/datasets/{dataset_id}/data-annotations/labelsStatus code: 200Creating a Dataset LabelStatus code: 200OKSe", "doc_type":"api", "kw":"Creating a Dataset Label,Label Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Creating a Dataset Label", "githuburl":"" }, { "uri":"UpdateLabels.html", - "product_code":"", - "code":"35", + "node_id":"updatelabels.xml", + "product_code":"modelarts", + "code":"39", "des":"This API is used to modify labels in batches.PUT /v2/{project_id}/datasets/{dataset_id}/data-annotations/labelsStatus code: 200Modifying Labels in BatchesStatus code: 200", "doc_type":"api", "kw":"Modifying Labels in Batches,Label Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Modifying Labels in Batches", "githuburl":"" }, { "uri":"DeleteLabels.html", - "product_code":"", - "code":"36", + "node_id":"deletelabels.xml", + "product_code":"modelarts", + "code":"40", "des":"This API is used to delete labels in batches.POST /v2/{project_id}/datasets/{dataset_id}/data-annotations/labels/deleteStatus code: 200Deleting Labels in BatchesStatus co", "doc_type":"api", "kw":"Deleting Labels in Batches,Label Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Deleting Labels in Batches", "githuburl":"" }, { "uri":"UpdateLabel.html", - "product_code":"", - "code":"37", + "node_id":"updatelabel.xml", + "product_code":"modelarts", + "code":"41", "des":"This API is used to update a label by label names.PUT /v2/{project_id}/datasets/{dataset_id}/data-annotations/labels/{label_name}Status code: 204Updating a Label by Label", "doc_type":"api", "kw":"Updating a Label by Label Names,Label Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Updating a Label by Label Names", "githuburl":"" }, { "uri":"DeleteLabelAndSamples.html", - "product_code":"", - "code":"38", + "node_id":"deletelabelandsamples.xml", + "product_code":"modelarts", + "code":"42", "des":"This API is used to delete a label and the files that only contain this label.DELETE /v2/{project_id}/datasets/{dataset_id}/data-annotations/labels/{label_name}NoneStatus", "doc_type":"api", "kw":"Deleting a Label and the Files that Only Contain the Label,Label Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Deleting a Label and the Files that Only Contain the Label", "githuburl":"" }, { "uri":"manual_annotation_management.html", - "product_code":"", - "code":"39", + "node_id":"manual_annotation_management.xml", + "product_code":"modelarts", + "code":"43", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Manual Labeling", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Manual Labeling", "githuburl":"" }, { "uri":"UpdateSamples.html", - "product_code":"", - "code":"40", + "node_id":"updatesamples.xml", + "product_code":"modelarts", + "code":"44", "des":"This API is used to update sample labels in batches, including adding, modifying, and deleting sample labels. If the parameter Labels of a sample in the request body is n", "doc_type":"api", "kw":"Updating Sample Labels in Batches,Manual Labeling,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Updating Sample Labels in Batches", "githuburl":"" }, + { + "uri":"label_task_management.html", + "node_id":"label_task_management.xml", + "product_code":"modelarts", + "code":"45", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Labeling Task Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Labeling Task Management", + "githuburl":"" + }, + { + "uri":"ListWorkforceTasks.html", + "node_id":"listworkforcetasks.xml", + "product_code":"modelarts", + "code":"46", + "des":"This API is used to query the team labeling task list of a dataset.GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasksNoneStatus code: 200Querying the Team Labelin", + "doc_type":"api", + "kw":"Querying the Team Labeling Task List of a Dataset,Labeling Task Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Team Labeling Task List of a Dataset", + "githuburl":"" + }, + { + "uri":"CreateWorkforceTask.html", + "node_id":"createworkforcetask.xml", + "product_code":"modelarts", + "code":"47", + "des":"This API is used to create a team labeling task.POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasksStatus code: 200Creating a Team Labeling TaskStatus code: 200OK", + "doc_type":"api", + "kw":"Creating a Team Labeling Task,Labeling Task Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Creating a Team Labeling Task", + "githuburl":"" + }, + { + "uri":"DescWorkforceTask.html", + "node_id":"descworkforcetask.xml", + "product_code":"modelarts", + "code":"48", + "des":"This API is used to query the details about a team labeling task.GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}NoneStatus code: 200Queryin", + "doc_type":"api", + "kw":"Querying Details About a Team Labeling Task,Labeling Task Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying Details About a Team Labeling Task", + "githuburl":"" + }, + { + "uri":"StartWorkforceTask.html", + "node_id":"startworkforcetask.xml", + "product_code":"modelarts", + "code":"49", + "des":"This API is used to start a team labeling task.POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}NoneStarting a Team Labeling TaskStatus code", + "doc_type":"api", + "kw":"Starting a Team Labeling Task,Labeling Task Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Starting a Team Labeling Task", + "githuburl":"" + }, + { + "uri":"UpdateWorkforceTask.html", + "node_id":"updateworkforcetask.xml", + "product_code":"modelarts", + "code":"50", + "des":"This API is used to update a team labeling task.PUT /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}NoneUpdating a Team Labeling TaskStatus code", + "doc_type":"api", + "kw":"Updating a Team Labeling Task,Labeling Task Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Updating a Team Labeling Task", + "githuburl":"" + }, + { + "uri":"DeleteWorkforceTask.html", + "node_id":"deleteworkforcetask.xml", + "product_code":"modelarts", + "code":"51", + "des":"This API is used to delete a team labeling task.DELETE /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}NoneNoneDeleting a Team Labeling TaskStat", + "doc_type":"api", + "kw":"Deleting a Team Labeling Task,Labeling Task Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Deleting a Team Labeling Task", + "githuburl":"" + }, + { + "uri":"StartWorkforceSamplingTask.html", + "node_id":"startworkforcesamplingtask.xml", + "product_code":"modelarts", + "code":"52", + "des":"This API is used to create a team labeling acceptance task.POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/acceptanceStatus code: 200Creat", + "doc_type":"api", + "kw":"Creating a Team Labeling Acceptance Task,Labeling Task Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Creating a Team Labeling Acceptance Task", + "githuburl":"" + }, + { + "uri":"GetWorkforceSamplingTask.html", + "node_id":"getworkforcesamplingtask.xml", + "product_code":"modelarts", + "code":"53", + "des":"This API is used to query the report of a team labeling acceptance task.GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/acceptance/reportNo", + "doc_type":"api", + "kw":"Querying the Report of a Team Labeling Acceptance Task,Labeling Task Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Report of a Team Labeling Acceptance Task", + "githuburl":"" + }, + { + "uri":"UpdateWorkforceSamplingTask.html", + "node_id":"updateworkforcesamplingtask.xml", + "product_code":"modelarts", + "code":"54", + "des":"This API is used to update the sample status by confirming the acceptance scope and whether the labeled data is overwritten before the acceptance of the team labeling tas", + "doc_type":"api", + "kw":"Updating the Status of a Team Labeling Acceptance Task,Labeling Task Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Updating the Status of a Team Labeling Acceptance Task", + "githuburl":"" + }, + { + "uri":"ListWorkerTasks.html", + "node_id":"listworkertasks.xml", + "product_code":"modelarts", + "code":"55", + "des":"This API is used to query the team labeling task list by a team member.GET /v2/{project_id}/workforces/worker-tasksNoneStatus code: 200Querying the Team Labeling Task Lis", + "doc_type":"api", + "kw":"Querying the Team Labeling Task List by a Team Member,Labeling Task Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Team Labeling Task List by a Team Member", + "githuburl":"" + }, + { + "uri":"workforce_process_management.html", + "node_id":"workforce_process_management.xml", + "product_code":"modelarts", + "code":"56", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Team Labeling Process Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Team Labeling Process Management", + "githuburl":"" + }, + { + "uri":"AcceptSamples.html", + "node_id":"acceptsamples.xml", + "product_code":"modelarts", + "code":"57", + "des":"This API is used to submit sample review comments of an acceptance task.POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/acceptance/batch-c", + "doc_type":"api", + "kw":"Submitting Sample Review Comments of an Acceptance Task,Team Labeling Process Management,API Referen", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Submitting Sample Review Comments of an Acceptance Task", + "githuburl":"" + }, + { + "uri":"ReviewSamples.html", + "node_id":"reviewsamples.xml", + "product_code":"modelarts", + "code":"58", + "des":"This API is used to review team labeling results.POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/reviewNoneReviewing Team", + "doc_type":"api", + "kw":"Reviewing Team Labeling Results,Team Labeling Process Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Reviewing Team Labeling Results", + "githuburl":"" + }, + { + "uri":"UpdateWorkforceTaskSamples.html", + "node_id":"updateworkforcetasksamples.xml", + "product_code":"modelarts", + "code":"59", + "des":"This API is used to update labels of team labeling samples in batches.PUT /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/samp", + "doc_type":"api", + "kw":"Updating Labels of Team Labeling Samples in Batches,Team Labeling Process Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Updating Labels of Team Labeling Samples in Batches", + "githuburl":"" + }, + { + "uri":"workforce_management.html", + "node_id":"workforce_management.xml", + "product_code":"modelarts", + "code":"60", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Labeling Team Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Labeling Team Management", + "githuburl":"" + }, + { + "uri":"ListWorkforces.html", + "node_id":"listworkforces.xml", + "product_code":"modelarts", + "code":"61", + "des":"This API is used to query the labeling team list.GET /v2/{project_id}/workforcesNoneStatus code: 200Querying the Labeling Team ListStatus code: 200OKSee Error Codes.", + "doc_type":"api", + "kw":"Querying the Labeling Team List,Labeling Team Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Labeling Team List", + "githuburl":"" + }, + { + "uri":"CreateWorkforce.html", + "node_id":"createworkforce.xml", + "product_code":"modelarts", + "code":"62", + "des":"This API is used to create a labeling team.POST /v2/{project_id}/workforcesStatus code: 201Creating a Labeling TeamStatus code: 201CreatedSee Error Codes.", + "doc_type":"api", + "kw":"Creating a Labeling Team,Labeling Team Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Creating a Labeling Team", + "githuburl":"" + }, + { + "uri":"DescWorkforce.html", + "node_id":"descworkforce.xml", + "product_code":"modelarts", + "code":"63", + "des":"This API is used to query the details about a labeling team.GET /v2/{project_id}/workforces/{workforce_id}NoneStatus code: 200Querying Details About a Labeling TeamStatus", + "doc_type":"api", + "kw":"Querying Details About a Labeling Team,Labeling Team Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying Details About a Labeling Team", + "githuburl":"" + }, + { + "uri":"UpdateWorkforce.html", + "node_id":"updateworkforce.xml", + "product_code":"modelarts", + "code":"64", + "des":"This API is used to update a labeling team.PUT /v2/{project_id}/workforces/{workforce_id}NoneUpdating a Labeling TeamStatus code: 200OKSee Error Codes.", + "doc_type":"api", + "kw":"Updating a Labeling Team,Labeling Team Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Updating a Labeling Team", + "githuburl":"" + }, + { + "uri":"DeleteWorkforce.html", + "node_id":"deleteworkforce.xml", + "product_code":"modelarts", + "code":"65", + "des":"This API is used to delete a labeling team.DELETE /v2/{project_id}/workforces/{workforce_id}NoneStatus code: 204Deleting a Labeling TeamStatus code: 204No ContentSee Erro", + "doc_type":"api", + "kw":"Deleting a Labeling Team,Labeling Team Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Deleting a Labeling Team", + "githuburl":"" + }, + { + "uri":"workforce_worker_management.html", + "node_id":"workforce_worker_management.xml", + "product_code":"modelarts", + "code":"66", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Labeling Team Member Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Labeling Team Member Management", + "githuburl":"" + }, + { + "uri":"SendEmails.html", + "node_id":"sendemails.xml", + "product_code":"modelarts", + "code":"67", + "des":"This API is used to send an email to a labeling team member.POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/notifyStatus code: 200Sending ", + "doc_type":"api", + "kw":"Sending an Email to a Labeling Team Member,Labeling Team Member Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Sending an Email to a Labeling Team Member", + "githuburl":"" + }, + { + "uri":"ListAllWorkers.html", + "node_id":"listallworkers.xml", + "product_code":"modelarts", + "code":"68", + "des":"This API is used to query the list of all labeling team members.GET /v2/{project_id}/workforces/workersNoneStatus code: 200Querying All Labeling Team AdministratorsStatus", + "doc_type":"api", + "kw":"Querying the List of All Labeling Team Members,Labeling Team Member Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the List of All Labeling Team Members", + "githuburl":"" + }, + { + "uri":"ListWorkers.html", + "node_id":"listworkers.xml", + "product_code":"modelarts", + "code":"69", + "des":"This API is used to query the list of labeling team members.GET /v2/{project_id}/workforces/{workforce_id}/workersNoneStatus code: 200Querying the List of Labeling Team M", + "doc_type":"api", + "kw":"Querying the List of Labeling Team Members,Labeling Team Member Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the List of Labeling Team Members", + "githuburl":"" + }, + { + "uri":"CreateWorker.html", + "node_id":"createworker.xml", + "product_code":"modelarts", + "code":"70", + "des":"This API is used to create a labeling team member.POST /v2/{project_id}/workforces/{workforce_id}/workersNoneCreating a Labeling Team MemberStatus code: 201CreatedSee Err", + "doc_type":"api", + "kw":"Creating a Labeling Team Member,Labeling Team Member Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Creating a Labeling Team Member", + "githuburl":"" + }, + { + "uri":"DeleteWorkers.html", + "node_id":"deleteworkers.xml", + "product_code":"modelarts", + "code":"71", + "des":"This API is used to delete labeling team members in batches.POST /v2/{project_id}/workforces/{workforce_id}/workers/batch-deleteStatus code: 200Deleting Labeling Team Mem", + "doc_type":"api", + "kw":"Deleting Labeling Team Members in Batches,Labeling Team Member Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Deleting Labeling Team Members in Batches", + "githuburl":"" + }, + { + "uri":"DescWorker.html", + "node_id":"descworker.xml", + "product_code":"modelarts", + "code":"72", + "des":"This API is used to query details about labeling team members.GET /v2/{project_id}/workforces/{workforce_id}/workers/{worker_id}NoneStatus code: 200Querying Details About", + "doc_type":"api", + "kw":"Querying Details About Labeling Team Members,Labeling Team Member Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying Details About Labeling Team Members", + "githuburl":"" + }, + { + "uri":"UpdateWorker.html", + "node_id":"updateworker.xml", + "product_code":"modelarts", + "code":"73", + "des":"This API is used to update a labeling team member.PUT /v2/{project_id}/workforces/{workforce_id}/workers/{worker_id}NoneUpdating a Labeling Team MemberStatus code: 200OKS", + "doc_type":"api", + "kw":"Updating a Labeling Team Member,Labeling Team Member Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Updating a Labeling Team Member", + "githuburl":"" + }, + { + "uri":"DeleteWorker.html", + "node_id":"deleteworker.xml", + "product_code":"modelarts", + "code":"74", + "des":"This API is used to delete a labeling team member.DELETE /v2/{project_id}/workforces/{workforce_id}/workers/{worker_id}NoneNoneDeleting a Labeling Team MemberStatus code:", + "doc_type":"api", + "kw":"Deleting a Labeling Team Member,Labeling Team Member Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Deleting a Labeling Team Member", + "githuburl":"" + }, { "uri":"data_import.html", - "product_code":"", - "code":"41", + "node_id":"data_import.xml", + "product_code":"modelarts", + "code":"75", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Data Import Task", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Data Import Task", "githuburl":"" }, { "uri":"ListImportTasks.html", - "product_code":"", - "code":"42", + "node_id":"listimporttasks.xml", + "product_code":"modelarts", + "code":"76", "des":"This API is used to query the dataset import task list by page.GET /v2/{project_id}/datasets/{dataset_id}/import-tasksNoneStatus code: 200Obtaining the Dataset Import Tas", "doc_type":"api", "kw":"Querying the Dataset Import Task List,Data Import Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying the Dataset Import Task List", "githuburl":"" }, { "uri":"ImportTask.html", - "product_code":"", - "code":"43", + "node_id":"importtask.xml", + "product_code":"modelarts", + "code":"77", "des":"This API is used to create a dataset import task to import samples and labels from the storage system to the dataset.POST /v2/{project_id}/datasets/{dataset_id}/import-ta", "doc_type":"api", "kw":"Creating an Import Task,Data Import Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Creating an Import Task", "githuburl":"" }, { "uri":"DescImportTask.html", - "product_code":"", - "code":"44", + "node_id":"descimporttask.xml", + "product_code":"modelarts", + "code":"78", "des":"This API is used to query details about a dataset import task.GET /v2/{project_id}/datasets/{dataset_id}/import-tasks/{task_id}NoneStatus code: 200Querying Details About ", "doc_type":"api", "kw":"Querying Details About a Dataset Import Task,Data Import Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying Details About a Dataset Import Task", "githuburl":"" }, { "uri":"data_export.html", - "product_code":"", - "code":"45", + "node_id":"data_export.xml", + "product_code":"modelarts", + "code":"79", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Data Export Task", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Data Export Task", "githuburl":"" }, { "uri":"GetExportTasksStatusOfDataset.html", - "product_code":"", - "code":"46", + "node_id":"getexporttasksstatusofdataset.xml", + "product_code":"modelarts", + "code":"80", "des":"This API is used to query the dataset export task list by page.GET /v2/{project_id}/datasets/{dataset_id}/export-tasksNoneStatus code: 200Querying the Export Task List by", "doc_type":"api", "kw":"Querying the Dataset Export Task List,Data Export Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying the Dataset Export Task List", "githuburl":"" }, { "uri":"ExportTask.html", - "product_code":"", - "code":"47", + "node_id":"exporttask.xml", + "product_code":"modelarts", + "code":"81", "des":"This API is used to create a dataset export task to export a dataset to OBS or new datasets.POST /v2/{project_id}/datasets/{dataset_id}/export-tasksStatus code: 200Creati", "doc_type":"api", "kw":"Creating a Dataset Export Task,Data Export Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Creating a Dataset Export Task", "githuburl":"" }, { "uri":"GetExportTaskStatusOfDataset.html", - "product_code":"", - "code":"48", + "node_id":"getexporttaskstatusofdataset.xml", + "product_code":"modelarts", + "code":"82", "des":"This API is used to query the status of a dataset export task.GET /v2/{project_id}/datasets/{resource_id}/export-tasks/{task_id}NoneStatus code: 200Querying the Status of", "doc_type":"api", "kw":"Querying the Status of a Dataset Export Task,Data Export Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying the Status of a Dataset Export Task", "githuburl":"" }, { "uri":"data_sync.html", - "product_code":"", - "code":"49", + "node_id":"data_sync.xml", + "product_code":"modelarts", + "code":"83", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Data Synchronization Task", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Data Synchronization Task", "githuburl":"" }, { "uri":"SyncDataSource.html", - "product_code":"", - "code":"50", + "node_id":"syncdatasource.xml", + "product_code":"modelarts", + "code":"84", "des":"This API is used to synchronize samples and labeling information from the input dataset path to the dataset.POST /v2/{project_id}/datasets/{dataset_id}/sync-dataNoneNoneS", "doc_type":"api", "kw":"Synchronizing a Dataset,Data Synchronization Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Synchronizing a Dataset", "githuburl":"" }, { "uri":"SyncDataSourceState.html", - "product_code":"", - "code":"51", + "node_id":"syncdatasourcestate.xml", + "product_code":"modelarts", + "code":"85", "des":"This API is used to query the status of a dataset synchronization task.GET /v2/{project_id}/datasets/{dataset_id}/sync-data/statusNoneStatus code: 200Obtaining the Status", "doc_type":"api", "kw":"Querying the Status of a Dataset Synchronization Task,Data Synchronization Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying the Status of a Dataset Synchronization Task", "githuburl":"" }, { - "uri":"modelarts_03_0108.html", + "uri":"auto_task.html", + "node_id":"auto_task.xml", "product_code":"modelarts", - "code":"52", + "code":"86", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"DevEnviron", - "title":"DevEnviron", + "kw":"Intelligent Task", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Intelligent Task", + "githuburl":"" + }, + { + "uri":"ListAutoAnnotationSamples.html", + "node_id":"listautoannotationsamples.xml", + "product_code":"modelarts", + "code":"87", + "des":"This API is used to query auto labeling samples in a dataset.GET /v2/{project_id}/datasets/{dataset_id}/auto-annotations/samplesNoneStatus code: 200Querying Auto Labeling", + "doc_type":"api", + "kw":"Querying Auto Labeling Sample List,Intelligent Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying Auto Labeling Sample List", + "githuburl":"" + }, + { + "uri":"DescribeAutoAnnotationSample.html", + "node_id":"describeautoannotationsample.xml", + "product_code":"modelarts", + "code":"88", + "des":"This API is used to query details about an auto labeling sample.GET /v2/{project_id}/datasets/{dataset_id}/auto-annotations/samples/{sample_id}NoneStatus code: 200Queryin", + "doc_type":"api", + "kw":"Querying Details About an Auto Labeling Sample,Intelligent Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying Details About an Auto Labeling Sample", + "githuburl":"" + }, + { + "uri":"ListTasks.html", + "node_id":"listtasks.xml", + "product_code":"modelarts", + "code":"89", + "des":"This API is used to query the intelligent task list by page, including auto labeling and auto grouping tasks. You can specify the type parameter to query the list of a sp", + "doc_type":"api", + "kw":"Querying the Intelligent Task List by Page,Intelligent Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Intelligent Task List by Page", + "githuburl":"" + }, + { + "uri":"CreateTask.html", + "node_id":"createtask.xml", + "product_code":"modelarts", + "code":"90", + "des":"This API is used to start an intelligent task, which can be an auto labeling task or an auto grouping task. You can specify task_type in the request body to start a type ", + "doc_type":"api", + "kw":"Starting Intelligent Tasks,Intelligent Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Starting Intelligent Tasks", + "githuburl":"" + }, + { + "uri":"AutoAnnotationProgress.html", + "node_id":"autoannotationprogress.xml", + "product_code":"modelarts", + "code":"91", + "des":"This API is used to obtain information about intelligent tasks, including auto labeling, one-click model deployment, and auto grouping tasks. You can specify the task_id ", + "doc_type":"api", + "kw":"Obtaining Information About Intelligent Tasks,Intelligent Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Obtaining Information About Intelligent Tasks", + "githuburl":"" + }, + { + "uri":"StopAutoAnnotation.html", + "node_id":"stopautoannotation.xml", + "product_code":"modelarts", + "code":"92", + "des":"This API is used to stop intelligent tasks, including auto labeling, one-click model deployment, and auto grouping tasks. You can specify the task_id parameter to stop a ", + "doc_type":"api", + "kw":"Stopping an Intelligent Task,Intelligent Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Stopping an Intelligent Task", + "githuburl":"" + }, + { + "uri":"process_task.html", + "node_id":"process_task.xml", + "product_code":"modelarts", + "code":"93", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Processing Task", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Processing Task", + "githuburl":"" + }, + { + "uri":"ListProcessorTasks.html", + "node_id":"listprocessortasks.xml", + "product_code":"modelarts", + "code":"94", + "des":"This API is used to query the list of a processing task. You can specify the task_type parameter to query the list of a specific type of tasks.- Data processing refers to", + "doc_type":"api", + "kw":"Querying the List of a Processing Task,Processing Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the List of a Processing Task", + "githuburl":"" + }, + { + "uri":"CreateProcessorTask.html", + "node_id":"createprocessortask.xml", + "product_code":"modelarts", + "code":"95", + "des":"This API is used to create a processing task. You can create data processing tasks. You can specify the id field of template composite parameter in the request body to cr", + "doc_type":"api", + "kw":"Creating a Processing Task,Processing Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Creating a Processing Task", + "githuburl":"" + }, + { + "uri":"GetProcessorTaskItems.html", + "node_id":"getprocessortaskitems.xml", + "product_code":"modelarts", + "code":"96", + "des":"This API is used to query the algorithm type for data processing.GET /v2/{project_id}/processor-tasks/itemsNoneStatus code: 200Querying the List of the Algorithm Type for", + "doc_type":"api", + "kw":"Querying the Algorithm Type for Data Processing,Processing Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Algorithm Type for Data Processing", + "githuburl":"" + }, + { + "uri":"DescribeProcessorTask.html", + "node_id":"describeprocessortask.xml", + "product_code":"modelarts", + "code":"97", + "des":"This API is used to query the details about processing tasks. You can query feature analysis tasks and data processing tasks. You can specify the task_id parameter to que", + "doc_type":"api", + "kw":"Querying Details About a Processing Task,Processing Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying Details About a Processing Task", + "githuburl":"" + }, + { + "uri":"UpdateProcessorTask.html", + "node_id":"updateprocessortask.xml", + "product_code":"modelarts", + "code":"98", + "des":"This API is used to update a processing task. You can update feature analysis tasks and data processing tasks. Only the description of updated tasks is supported. You can", + "doc_type":"api", + "kw":"Updating a Processing Task,Processing Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Updating a Processing Task", + "githuburl":"" + }, + { + "uri":"DeleteProcessorTask.html", + "node_id":"deleteprocessortask.xml", + "product_code":"modelarts", + "code":"99", + "des":"This API is used to delete a processing task. You can delete feature analysis tasks and data processing tasks. A specific task can be deleted by specifying the task_id pa", + "doc_type":"api", + "kw":"Deleting a Processing Task,Processing Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Deleting a Processing Task", + "githuburl":"" + }, + { + "uri":"ListProcessorTaskVersions.html", + "node_id":"listprocessortaskversions.xml", + "product_code":"modelarts", + "code":"100", + "des":"This API is used to query the version list of a data processing task.GET /v2/{project_id}/processor-tasks/{task_id}/versionsNoneStatus code: 200Querying the Version List ", + "doc_type":"api", + "kw":"Querying the Version List of a Data Processing Task,Processing Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Version List of a Data Processing Task", + "githuburl":"" + }, + { + "uri":"CreateProcessorTaskVersion.html", + "node_id":"createprocessortaskversion.xml", + "product_code":"modelarts", + "code":"101", + "des":"This API is used to create a data processing task version.POST /v2/{project_id}/processor-tasks/{task_id}/versionsStatus code: 200Creating a Data Validation Task VersionS", + "doc_type":"api", + "kw":"Creating a Data Processing Task Version,Processing Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Creating a Data Processing Task Version", + "githuburl":"" + }, + { + "uri":"DescProcessorTaskVersion.html", + "node_id":"descprocessortaskversion.xml", + "product_code":"modelarts", + "code":"102", + "des":"This API is used to query the details about the version of a data processing task.GET /v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}NoneStatus code: 200", + "doc_type":"api", + "kw":"Querying the Details About the Version of a Data Processing Task,Processing Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Details About the Version of a Data Processing Task", + "githuburl":"" + }, + { + "uri":"DeleteProcessorTaskVersion.html", + "node_id":"deleteprocessortaskversion.xml", + "product_code":"modelarts", + "code":"103", + "des":"This API is used to delete a data processing task version.DELETE /v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}NoneNoneDeleting a Data Processing Task V", + "doc_type":"api", + "kw":"Deleting a Data Processing Task Version,Processing Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Deleting a Data Processing Task Version", + "githuburl":"" + }, + { + "uri":"ListProcessorTaskVersionResults.html", + "node_id":"listprocessortaskversionresults.xml", + "product_code":"modelarts", + "code":"104", + "des":"This API is used to query the result of a data processing task version.GET /v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}/resultsNoneStatus code: 200Que", + "doc_type":"api", + "kw":"Querying the Result of a Data Processing Task Version,Processing Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Result of a Data Processing Task Version", + "githuburl":"" + }, + { + "uri":"StopProcessorTaskVersion.html", + "node_id":"stopprocessortaskversion.xml", + "product_code":"modelarts", + "code":"105", + "des":"This API is used to stop the version of a data processing task.POST /v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}/stopNoneNoneThis API is used to stop ", + "doc_type":"api", + "kw":"Stopping the Version of a Data Processing Task,Processing Task,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Stopping the Version of a Data Processing Task", + "githuburl":"" + }, + { + "uri":"modelarts_03_0107.html", + "node_id":"modelarts_03_0107.xml", + "product_code":"modelarts", + "code":"106", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"DevEnviron (New Version)", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"DevEnviron (New Version)", + "githuburl":"" + }, + { + "uri":"notebook.html", + "node_id":"notebook.xml", + "product_code":"modelarts", + "code":"107", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"DevEnviron Instance Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"DevEnviron Instance Management", + "githuburl":"" + }, + { + "uri":"ListImage.html", + "node_id":"listimage.xml", + "product_code":"modelarts", + "code":"108", + "des":"This API is used to query all images by page based on specified conditions.NoneGET /v1/{project_id}/imagesNoneStatus code: 200NoneStatus code: 200OKSee Error Codes.", + "doc_type":"api", + "kw":"Querying Supported Images,DevEnviron Instance Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying Supported Images", + "githuburl":"" + }, + { + "uri":"ListNotebooks.html", + "node_id":"listnotebooks.xml", + "product_code":"modelarts", + "code":"109", + "des":"This API is used to query notebook instances based on specified search criteria.NoneGET /v1/{project_id}/notebooksNoneStatus code: 200NoneStatus code: 200OKSee Error Code", + "doc_type":"api", + "kw":"Querying Notebook Instances,DevEnviron Instance Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying Notebook Instances", + "githuburl":"" + }, + { + "uri":"CreateNotebook.html", + "node_id":"createnotebook.xml", + "product_code":"modelarts", + "code":"110", + "des":"This API is used to create a notebook instance based on the specified flavor, AI engine images, and storage. You can access the instance through a web page or SSH client.", + "doc_type":"api", + "kw":"Creating a Notebook Instance,DevEnviron Instance Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Creating a Notebook Instance", + "githuburl":"" + }, + { + "uri":"RunCodeLab.html", + "node_id":"runcodelab.xml", + "product_code":"modelarts", + "code":"111", + "des":"This API is used to open a free CodeLab instance. After opening it, you can switch to another instance as required.NonePOST /v1/{project_id}/notebooks/openStatus code: 20", + "doc_type":"api", + "kw":"Opening a CodeLab Instance,DevEnviron Instance Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Opening a CodeLab Instance", + "githuburl":"" + }, + { + "uri":"ShowNotebook.html", + "node_id":"shownotebook.xml", + "product_code":"modelarts", + "code":"112", + "des":"This API is used to query details about a notebook instance, including its ID, name, flavor, image, status, and accessible URLs.NoneGET /v1/{project_id}/notebooks/{id}Non", + "doc_type":"api", + "kw":"Querying Details of a Notebook Instance,DevEnviron Instance Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying Details of a Notebook Instance", + "githuburl":"" + }, + { + "uri":"UpdateNotebook.html", + "node_id":"updatenotebook.xml", + "product_code":"modelarts", + "code":"113", + "des":"This API is used to update the name, description, flavor, and image ID of a stopped notebook instance.NonePUT /v1/{project_id}/notebooks/{id}Status code: 200Status code: ", + "doc_type":"api", + "kw":"Updating a Notebook Instance,DevEnviron Instance Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Updating a Notebook Instance", + "githuburl":"" + }, + { + "uri":"DeleteNotebook.html", + "node_id":"deletenotebook.xml", + "product_code":"modelarts", + "code":"114", + "des":"This API is used to delete the container and all storage resources of a notebook instance.NoneDELETE /v1/{project_id}/notebooks/{id}NoneStatus code: 200NoneStatus code: 2", + "doc_type":"api", + "kw":"Deleting a Notebook Instance,DevEnviron Instance Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Deleting a Notebook Instance", + "githuburl":"" + }, + { + "uri":"ShowSwitchableFlavors.html", + "node_id":"showswitchableflavors.xml", + "product_code":"modelarts", + "code":"115", + "des":"This API is used to query the flavors available for a notebook instance.NoneGET /v1/{project_id}/notebooks/{id}/flavorsNoneStatus code: 200NoneStatus code: 200OKSee Error", + "doc_type":"api", + "kw":"Querying Flavors Available for a Notebook Instance,DevEnviron Instance Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying Flavors Available for a Notebook Instance", + "githuburl":"" + }, + { + "uri":"ShowLease.html", + "node_id":"showlease.xml", + "product_code":"modelarts", + "code":"116", + "des":"This API is used to query the available duration of a running notebook instance.NoneGET /v1/{project_id}/notebooks/{id}/leaseNoneStatus code: 200NoneStatus code: 200OKSee", + "doc_type":"api", + "kw":"Querying the Available Duration of a Running Notebook Instance,DevEnviron Instance Management,API Re", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Available Duration of a Running Notebook Instance", + "githuburl":"" + }, + { + "uri":"RenewLease.html", + "node_id":"renewlease.xml", + "product_code":"modelarts", + "code":"117", + "des":"This API is used to prolong a notebook instance.NonePATCH /v1/{project_id}/notebooks/{id}/leaseNoneStatus code: 200NoneStatus code: 200OKSee Error Codes.", + "doc_type":"api", + "kw":"Prolonging a Notebook Instance,DevEnviron Instance Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Prolonging a Notebook Instance", + "githuburl":"" + }, + { + "uri":"StartNotebook.html", + "node_id":"startnotebook.xml", + "product_code":"modelarts", + "code":"118", + "des":"This API is used to start a notebook instance.NonePOST /v1/{project_id}/notebooks/{id}/startStatus code: 200NoneStatus code: 200OKSee Error Codes.", + "doc_type":"api", + "kw":"Starting a Notebook Instance,DevEnviron Instance Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Starting a Notebook Instance", + "githuburl":"" + }, + { + "uri":"StopNotebook.html", + "node_id":"stopnotebook.xml", + "product_code":"modelarts", + "code":"119", + "des":"This API is used to stop a notebook instance.NonePOST /v1/{project_id}/notebooks/{id}/stopNoneStatus code: 200NoneStatus code: 200OKSee Error Codes.", + "doc_type":"api", + "kw":"Stopping a Notebook Instance,DevEnviron Instance Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Stopping a Notebook Instance", + "githuburl":"" + }, + { + "uri":"storage.html", + "node_id":"storage.xml", + "product_code":"modelarts", + "code":"120", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"OBS Storage Mounting", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"OBS Storage Mounting", + "githuburl":"" + }, + { + "uri":"ListDynamicMount.html", + "node_id":"listdynamicmount.xml", + "product_code":"modelarts", + "code":"121", + "des":"This API is used to obtain the notebook instances with OBS storage mounted.NoneGET /v1/{project_id}/notebooks/{instance_id}/storageNoneStatus code: 200NoneStatus code: 20", + "doc_type":"api", + "kw":"Obtaining the Notebook Instances with OBS Storage Mounted,OBS Storage Mounting,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Obtaining the Notebook Instances with OBS Storage Mounted", + "githuburl":"" + }, + { + "uri":"AttachObs.html", + "node_id":"attachobs.xml", + "product_code":"modelarts", + "code":"122", + "des":"This API is used to mount OBS storage to a running notebook instance so that the application layer can operate OBS parallel file system in the container.NonePOST /v1/{pro", + "doc_type":"api", + "kw":"OBS Storage Mounting,OBS Storage Mounting,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"OBS Storage Mounting", + "githuburl":"" + }, + { + "uri":"ShowAttachableObs.html", + "node_id":"showattachableobs.xml", + "product_code":"modelarts", + "code":"123", + "des":"This API is used to obtain details about a notebook instance with OBS storage mounted.NoneGET /v1/{project_id}/notebooks/{instance_id}/storage/{storage_id}NoneStatus code", + "doc_type":"api", + "kw":"Obtaining Details About a Notebook Instance with OBS Storage Mounted,OBS Storage Mounting,API Refere", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Obtaining Details About a Notebook Instance with OBS Storage Mounted", + "githuburl":"" + }, + { + "uri":"CancelObs.html", + "node_id":"cancelobs.xml", + "product_code":"modelarts", + "code":"124", + "des":"This API is used to unmount OBS storage from a notebook instance. After OBS storage is unmounted, OBS objects remain unchanged but cannot be operated in the notebook cont", + "doc_type":"api", + "kw":"Unmounting OBS Storage from a Notebook Instance,OBS Storage Mounting,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Unmounting OBS Storage from a Notebook Instance", + "githuburl":"" + }, + { + "uri":"modelarts_03_0108.html", + "node_id":"modelarts_03_0108.xml", + "product_code":"modelarts", + "code":"125", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"DevEnviron (Old Version)", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"DevEnviron (Old Version)", + "githuburl":"" + }, + { + "uri":"modelarts_03_0109.html", + "node_id":"modelarts_03_0109.xml", + "product_code":"modelarts", + "code":"126", + "des":"This API is used to query the authentication information of a development environment instance, which is used to open the development environment instance.GET /v1/{projec", + "doc_type":"api", + "kw":"Querying the Authentication Information of a Development Environment Instance,DevEnviron (Old Versio", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Authentication Information of a Development Environment Instance", "githuburl":"" }, { "uri":"modelarts_03_0110.html", + "node_id":"modelarts_03_0110.xml", "product_code":"modelarts", - "code":"53", + "code":"127", "des":"This API is used to create a development environment instance for code development.Calling this API is an asynchronous operation. The job status can be obtained by callin", "doc_type":"api", - "kw":"Creating a Development Environment Instance,DevEnviron,API Reference", + "kw":"Creating a Development Environment Instance,DevEnviron (Old Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Creating a Development Environment Instance", "githuburl":"" }, { "uri":"modelarts_03_0111.html", + "node_id":"modelarts_03_0111.xml", "product_code":"modelarts", - "code":"54", + "code":"128", "des":"This API is used to query the development environment instances that meet the search criteria.GET /v1/{project_id}/demanager/instances?de_type={de_type}&provision_type={p", "doc_type":"api", - "kw":"Querying a List of Development Environment Instances,DevEnviron,API Reference", + "kw":"Querying a List of Development Environment Instances,DevEnviron (Old Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying a List of Development Environment Instances", "githuburl":"" }, { "uri":"modelarts_03_0112.html", + "node_id":"modelarts_03_0112.xml", "product_code":"modelarts", - "code":"55", + "code":"129", "des":"This API is used to query the details about a development environment instance.GET /v1/{project_id}/demanager/instances/{instance_id}Table 1 describes the required parame", "doc_type":"api", - "kw":"Querying Details About a Development Environment Instance,DevEnviron,API Reference", + "kw":"Querying Details About a Development Environment Instance,DevEnviron (Old Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying Details About a Development Environment Instance", "githuburl":"" }, { "uri":"modelarts_03_0113.html", + "node_id":"modelarts_03_0113.xml", "product_code":"modelarts", - "code":"56", + "code":"130", "des":"This API is used to modify the description of a development environment instance or information about the auto stop function.PUT /v1/{project_id}/demanager/instances/{ins", "doc_type":"api", - "kw":"Modifying the Description of a Development Environment Instance,DevEnviron,API Reference", + "kw":"Modifying the Description of a Development Environment Instance,DevEnviron (Old Version),API Referen", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Modifying the Description of a Development Environment Instance", "githuburl":"" }, { "uri":"modelarts_03_0114.html", + "node_id":"modelarts_03_0114.xml", "product_code":"modelarts", - "code":"57", + "code":"131", "des":"This API is used to delete a development environment instance.DELETE /v1/{project_id}/demanager/instances/{instance_id}Table 1 describes the required parameters.Parameter", "doc_type":"api", - "kw":"Deleting a Development Environment Instance,DevEnviron,API Reference", + "kw":"Deleting a Development Environment Instance,DevEnviron (Old Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Deleting a Development Environment Instance", "githuburl":"" }, { "uri":"modelarts_03_0115.html", + "node_id":"modelarts_03_0115.xml", "product_code":"modelarts", - "code":"58", + "code":"132", "des":"This API is used to startor stop a notebook instance.POST /v1/{project_id}/demanager/instances/{instance_id}/actionTable 1 describes the required parameters.ParametersPar", "doc_type":"api", - "kw":"Managing a Development Environment Instance,DevEnviron,API Reference", + "kw":"Managing a Development Environment Instance,DevEnviron (Old Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Managing a Development Environment Instance", "githuburl":"" }, { - "uri":"modelarts_03_0043.html", + "uri":"modelarts_03_0119.html", + "node_id":"modelarts_03_0119.xml", "product_code":"modelarts", - "code":"59", + "code":"133", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Training Management", - "title":"Training Management", + "kw":"Training Management (New Version)", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Training Management (New Version)", "githuburl":"" }, { - "uri":"modelarts_03_0044.html", + "uri":"algorithms.html", + "node_id":"algorithms.xml", "product_code":"modelarts", - "code":"60", + "code":"134", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Training Jobs", - "title":"Training Jobs", + "kw":"Algorithm Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Algorithm Management", "githuburl":"" }, { - "uri":"modelarts_03_0045.html", + "uri":"CreateAlgorithm.html", + "node_id":"createalgorithm.xml", "product_code":"modelarts", - "code":"61", - "des":"This API is used to create a training job.Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Querying a Traini", + "code":"135", + "des":"This API is used to create an algorithm.POST /v2/{project_id}/algorithmsStatus code: 201The following shows how to create an algorithm whose name is TestModelArtsalgorith", "doc_type":"api", - "kw":"Creating a Training Job,Training Jobs,API Reference", + "kw":"Creating an Algorithm,Algorithm Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Creating an Algorithm", + "githuburl":"" + }, + { + "uri":"ListAlgorithms.html", + "node_id":"listalgorithms.xml", + "product_code":"modelarts", + "code":"136", + "des":"This API is used to query the algorithm list.GET /v2/{project_id}/algorithmsNoneStatus code: 200The following shows how to query all algorithms in jobs whose names contai", + "doc_type":"api", + "kw":"Querying the Algorithm List,Algorithm Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Algorithm List", + "githuburl":"" + }, + { + "uri":"ShowAlgorithmByUuid.html", + "node_id":"showalgorithmbyuuid.xml", + "product_code":"modelarts", + "code":"137", + "des":"This API is used to query a specified algorithm based on the algorithm ID.GET /v2/{project_id}/algorithms/{algorithm_id}NoneStatus code: 200The following shows how to que", + "doc_type":"api", + "kw":"Querying Algorithm Details,Algorithm Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying Algorithm Details", + "githuburl":"" + }, + { + "uri":"ChangeAlgorithm.html", + "node_id":"changealgorithm.xml", + "product_code":"modelarts", + "code":"138", + "des":"This API is used to modify an algorithm.PUT /v2/{project_id}/algorithms/{algorithm_id}Status code: 201The following shows how to modify the algorithm whose UUID is 2e5451", + "doc_type":"api", + "kw":"Modifying an Algorithm,Algorithm Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Modifying an Algorithm", + "githuburl":"" + }, + { + "uri":"DeleteAlgorithm.html", + "node_id":"deletealgorithm.xml", + "product_code":"modelarts", + "code":"139", + "des":"This API is used to delete an algorithm.DELETE /v2/{project_id}/algorithms/{algorithm_id}NoneNoneThe following shows how to modify the algorithm whose UUID is 2e5451fe-91", + "doc_type":"api", + "kw":"Deleting an Algorithm,Algorithm Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Deleting an Algorithm", + "githuburl":"" + }, + { + "uri":"ListSearchAlgorithms.html", + "node_id":"listsearchalgorithms.xml", + "product_code":"modelarts", + "code":"140", + "des":"This API is used tp query the hyperparameter search algorithm list.GET /v2/{project_id}/search-algorithmsNoneStatus code: 200The following shows how to query information ", + "doc_type":"api", + "kw":"Querying the Hyperparameter Search Algorithm List,Algorithm Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Hyperparameter Search Algorithm List", + "githuburl":"" + }, + { + "uri":"trainingJobs.html", + "node_id":"trainingjobs.xml", + "product_code":"modelarts", + "code":"141", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Training Job Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Training Job Management", + "githuburl":"" + }, + { + "uri":"CreateTrainingJob.html", + "node_id":"createtrainingjob.xml", + "product_code":"modelarts", + "code":"142", + "des":"This API is used to create a training job.POST /v2/{project_id}/training-jobsStatus code: 201The following shows how to create a training job named TestModelArtsJob. The ", + "doc_type":"api", + "kw":"Creating a Training Job,Training Job Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Creating a Training Job", "githuburl":"" }, { - "uri":"modelarts_03_0046.html", + "uri":"ShowTrainingJobInfomation.html", + "node_id":"showtrainingjobinfomation.xml", "product_code":"modelarts", - "code":"62", - "des":"This API is used to query the created training jobs that meet the search criteria.GET /v1/{project_id}/training-jobsTable 1 describes the required parameters.URI paramete", + "code":"143", + "des":"This API is used to query the details about a training job.GET /v2/{project_id}/training-jobs/{training_job_id}NoneStatus code: 200The following shows how to query a trai", "doc_type":"api", - "kw":"Querying a Training Job List,Training Jobs,API Reference", - "title":"Querying a Training Job List", + "kw":"Querying the Details About a Training Job,Training Job Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Details About a Training Job", "githuburl":"" }, { - "uri":"modelarts_03_0047.html", + "uri":"ChangeTrainingJobDescription.html", + "node_id":"changetrainingjobdescription.xml", "product_code":"modelarts", - "code":"63", - "des":"This API is used to query the details about a specified training job based on the job ID.GET /v1/{project_id}/training-jobs/{job_id}/versions/{version_id}Table 1 describe", + "code":"144", + "des":"This API is used to modify the description of a training job.PUT /v2/{project_id}/training-jobs/{training_job_id}NoneThe following shows how to modify a training job whos", "doc_type":"api", - "kw":"Querying the Details About a Training Job Version,Training Jobs,API Reference", - "title":"Querying the Details About a Training Job Version", - "githuburl":"" - }, - { - "uri":"modelarts_03_0048.html", - "product_code":"modelarts", - "code":"64", - "des":"This API is used to delete a version of a training job.Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Quer", - "doc_type":"api", - "kw":"Deleting a Version of a Training Job,Training Jobs,API Reference", - "title":"Deleting a Version of a Training Job", - "githuburl":"" - }, - { - "uri":"modelarts_03_0049.html", - "product_code":"modelarts", - "code":"65", - "des":"This API is used to query the version of a specified training job based on the job ID.GET /v1/{project_id}/training-jobs/{job_id}/versionsTable 1 describes the required p", - "doc_type":"api", - "kw":"Querying a List of Training Job Versions,Training Jobs,API Reference", - "title":"Querying a List of Training Job Versions", - "githuburl":"" - }, - { - "uri":"modelarts_03_0050.html", - "product_code":"modelarts", - "code":"66", - "des":"This API is used to create a version of a training job.Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Quer", - "doc_type":"api", - "kw":"Creating a Version of a Training Job,Training Jobs,API Reference", - "title":"Creating a Version of a Training Job", - "githuburl":"" - }, - { - "uri":"modelarts_03_0051.html", - "product_code":"modelarts", - "code":"67", - "des":"This API is used to stop a training job.Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Querying a Training", - "doc_type":"api", - "kw":"Stopping a Training Job,Training Jobs,API Reference", - "title":"Stopping a Training Job", - "githuburl":"" - }, - { - "uri":"modelarts_03_0052.html", - "product_code":"modelarts", - "code":"68", - "des":"This API is used to modify the description of a training job.PUT /v1/{project_id}/training-jobs/{job_id}Table 1 describes the required parameters.ParametersParameterManda", - "doc_type":"api", - "kw":"Modifying the Description of a Training Job,Training Jobs,API Reference", + "kw":"Modifying the Description of a Training Job,Training Job Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Modifying the Description of a Training Job", "githuburl":"" }, { - "uri":"modelarts_03_0053.html", + "uri":"DeleteTrainingJob.html", + "node_id":"deletetrainingjob.xml", "product_code":"modelarts", - "code":"69", - "des":"This API is used to delete a training job.Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Querying a Traini", + "code":"145", + "des":"This API is used to delete a training job.DELETE /v2/{project_id}/training-jobs/{training_job_id}NoneNoneThe following shows how to delete a training job whose UUID is 3f", "doc_type":"api", - "kw":"Deleting a Training Job,Training Jobs,API Reference", + "kw":"Deleting a Training Job,Training Job Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Deleting a Training Job", "githuburl":"" }, { - "uri":"modelarts_03_0054.html", + "uri":"StopTrainingJob.html", + "node_id":"stoptrainingjob.xml", "product_code":"modelarts", - "code":"70", - "des":"This API is used to obtain the name of a training job log file.GET /v1/{project_id}/training-jobs/{job_id}/versions/{version_id}/log/file-namesTable 1 describes the requi", + "code":"146", + "des":"This API is used to terminate a training job. Only jobs in the Creating, Waiting, or Running state can be terminated.POST /v2/{project_id}/training-jobs/{training_job_id}", "doc_type":"api", - "kw":"Obtaining the Name of a Training Job Log File,Training Jobs,API Reference", - "title":"Obtaining the Name of a Training Job Log File", + "kw":"Terminating a Training Job,Training Job Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Terminating a Training Job", "githuburl":"" }, { - "uri":"modelarts_03_0056.html", + "uri":"ShowTrainingJobLogsPreview.html", + "node_id":"showtrainingjoblogspreview.xml", "product_code":"modelarts", - "code":"71", - "des":"This API is used to query the details about a built-in model.GET /v1/{project_id}/built-in-algorithmsTable 1 describes the required parameters.ParametersParameterMandator", + "code":"147", + "des":"This API is used to query the logs of a specified task in a given training job (preview).GET /v2/{project_id}/training-jobs/{training_job_id}/tasks/{task_id}/logs/preview", "doc_type":"api", - "kw":"Querying a Built-in Algorithm,Training Jobs,API Reference", - "title":"Querying a Built-in Algorithm", + "kw":"Querying the Logs of a Specified Task in a Given Training Job (Preview),Training Job Management,API ", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Logs of a Specified Task in a Given Training Job (Preview)", "githuburl":"" }, { - "uri":"modelarts_03_0149.html", + "uri":"ShowTrainingJobLogsFromObs.html", + "node_id":"showtrainingjoblogsfromobs.xml", "product_code":"modelarts", - "code":"72", - "des":"This API is used to query detailed information about training job logs by row.GET /v1/{project_id}/training-jobs/{job_id}/versions/{version_id}/aom-logTable 1 describes t", + "code":"148", + "des":"This API is used to query the logs of a specified task in a given training job (OBS URL). You can view or download all logs.GET /v2/{project_id}/training-jobs/{training_j", "doc_type":"api", - "kw":"Querying Training Job Logs,Training Jobs,API Reference", - "title":"Querying Training Job Logs", + "kw":"Querying the Logs of a Specified Taks in a Given Training Job (OBS URL),Training Job Management,API ", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Logs of a Specified Taks in a Given Training Job (OBS URL)", "githuburl":"" }, { - "uri":"modelarts_03_0057.html", + "uri":"ShowTrainingJobMetrics.html", + "node_id":"showtrainingjobmetrics.xml", "product_code":"modelarts", - "code":"73", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "code":"149", + "des":"This API is used to query the running metrics of a specified task in a training job.GET /v2/{project_id}/training-jobs/{training_job_id}/metrics/{task_id}NoneStatus code:", "doc_type":"api", - "kw":"Training Job Parameter Configuration", - "title":"Training Job Parameter Configuration", + "kw":"Querying the Running Metrics of a Specified Task in a Training Job,Training Job Management,API Refer", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Running Metrics of a Specified Task in a Training Job", "githuburl":"" }, { - "uri":"modelarts_03_0058.html", + "uri":"ListTrainingJobs.html", + "node_id":"listtrainingjobs.xml", "product_code":"modelarts", - "code":"74", - "des":"This API is used to create a training job configuration.POST /v1/{project_id}/training-job-configsTable 1 describes the required parameters.ParametersParameterMandatoryTy", + "code":"150", + "des":"This API is used to query the the created training jobs that meet the search criteria.POST /v2/{project_id}/training-job-searchesStatus code: 200The following shows how t", "doc_type":"api", - "kw":"Creating a Training Job Configuration,Training Job Parameter Configuration,API Reference", - "title":"Creating a Training Job Configuration", + "kw":"Querying a Training Job List,Training Job Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying a Training Job List", "githuburl":"" }, { - "uri":"modelarts_03_0059.html", + "uri":"ShowAutoSearchTrials.html", + "node_id":"showautosearchtrials.xml", "product_code":"modelarts", - "code":"75", - "des":"This API is used to query the created training job configurations that meet the search criteria.GET /v1/{project_id}/training-job-configsTable 1 describes the required pa", + "code":"151", + "des":"This API is used to query all trails using hyperparameter search.GET /v2/{project_id}/training-jobs/{training_job_id}/autosearch-trialsNoneStatus code: 200The following s", "doc_type":"api", - "kw":"Querying a List of Training Job Configurations,Training Job Parameter Configuration,API Reference", - "title":"Querying a List of Training Job Configurations", + "kw":"Querying All Trials Using Hyperparameter Search,Training Job Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying All Trials Using Hyperparameter Search", "githuburl":"" }, { - "uri":"modelarts_03_0060.html", + "uri":"ShowAutoSearchPerTrial.html", + "node_id":"showautosearchpertrial.xml", "product_code":"modelarts", - "code":"76", - "des":"This API is used to modify a training job configuration.PUT /v1/{project_id}/training-job-configs/{config_name}Table 1 describes the required parameters.ParametersParamet", + "code":"152", + "des":"This API is used to query information about a trial using hyperparameter search based on the trial_id.GET /v2/{project_id}/training-jobs/{training_job_id}/autosearch-tria", "doc_type":"api", - "kw":"Modifying a Training Job Configuration,Training Job Parameter Configuration,API Reference", - "title":"Modifying a Training Job Configuration", + "kw":"Querying Information About a Trial Using Hyperparameter Search,Training Job Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying Information About a Trial Using Hyperparameter Search", "githuburl":"" }, { - "uri":"modelarts_03_0061.html", + "uri":"ShowAutoSearchParamsAnalysis.html", + "node_id":"showautosearchparamsanalysis.xml", "product_code":"modelarts", - "code":"77", - "des":"This API is used to delete a training job configuration.DELETE /v1/{project_id}/training-job-configs/{config_name}Table 1 describes the required parameters.Parameter desc", + "code":"153", + "des":"This API is used to obtain the summary of hyperparameter sensitivity analysis results.GET /v2/{project_id}/training-jobs/{training_job_id}/autosearch-parameter-analysisNo", "doc_type":"api", - "kw":"Deleting a Training Job Configuration,Training Job Parameter Configuration,API Reference", - "title":"Deleting a Training Job Configuration", + "kw":"Obtaining the Hyperparameter Sensitivity Analysis Result,Training Job Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Obtaining the Hyperparameter Sensitivity Analysis Result", "githuburl":"" }, { - "uri":"modelarts_03_0062.html", + "uri":"ShowAutoSearchParamAnalysisResultPath.html", + "node_id":"showautosearchparamanalysisresultpath.xml", "product_code":"modelarts", - "code":"78", - "des":"This API is used to query the details about a specified training job configuration.GET /v1/{project_id}/training-job-configs/{config_name}Table 1 describes the required p", + "code":"154", + "des":"This API is used to obtain the path for storing a hyperparameter sensitivity analysis image.GET /v2/{project_id}/training-jobs/{training_job_id}/autosearch-parameter-anal", "doc_type":"api", - "kw":"Querying the Details About a Training Job Configuration,Training Job Parameter Configuration,API Ref", - "title":"Querying the Details About a Training Job Configuration", + "kw":"Obtaining the Path for Storing a Hyperparameter Sensitivity Analysis Image,Training Job Management,A", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Obtaining the Path for Storing a Hyperparameter Sensitivity Analysis Image", "githuburl":"" }, { - "uri":"modelarts_03_0063.html", + "uri":"ShowAutoSearchTrialEarlyStop.html", + "node_id":"showautosearchtrialearlystop.xml", "product_code":"modelarts", - "code":"79", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "code":"155", + "des":"This API is used to early stop a trial of an auto search job.POST /v2/{project_id}/training-jobs/{training_job_id}/autosearch-trial-earlystop/{trial_id}NoneStatus code: 2", "doc_type":"api", - "kw":"Visualization Jobs", - "title":"Visualization Jobs", + "kw":"Early Stopping a Trial of an Auto Search Job,Training Job Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Early Stopping a Trial of an Auto Search Job", "githuburl":"" }, { - "uri":"modelarts_03_0064.html", + "uri":"ShowAutoSearchYamlTemplatesInfo.html", + "node_id":"showautosearchyamltemplatesinfo.xml", "product_code":"modelarts", - "code":"80", - "des":"This API is used to create a visualization job.Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Querying a V", + "code":"156", + "des":"This API is used to obtain information about the YAML template of an auto search job.GET /v2/{project_id}/training-jobs/autosearch/yaml-templatesNoneStatus code: 200The f", "doc_type":"api", - "kw":"Creating a Visualization Job,Visualization Jobs,API Reference", - "title":"Creating a Visualization Job", + "kw":"Obtaining Information About the YAML Template of an Auto Search Job,Training Job Management,API Refe", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Obtaining Information About the YAML Template of an Auto Search Job", "githuburl":"" }, { - "uri":"modelarts_03_0065.html", + "uri":"ShowAutoSearchYamlTemplateContent.html", + "node_id":"showautosearchyamltemplatecontent.xml", "product_code":"modelarts", - "code":"81", - "des":"This API is used to query the visualization jobs that meet the search criteria.GET /v1/{project_id}/visualization-jobsTable 1 describes the required parameters.Parameters", + "code":"157", + "des":"This API is used to obtain the content of the YAML template of an auto search job.GET /v2/{project_id}/training-jobs/autosearch/yaml-templates/{algorithm_type}/{algorithm", "doc_type":"api", - "kw":"Querying a Visualization Job List,Visualization Jobs,API Reference", - "title":"Querying a Visualization Job List", + "kw":"Obtaining the Content of the YAML Template of an Auto Search Job,Training Job Management,API Referen", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Obtaining the Content of the YAML Template of an Auto Search Job", "githuburl":"" }, { - "uri":"modelarts_03_0066.html", + "uri":"resources.html", + "node_id":"resources.xml", "product_code":"modelarts", - "code":"82", - "des":"This API is used to query the details about a specified visualization job based on the job name.GET /v1/{project_id}/visualization-jobs/{job_id}Table 1 describes the requ", - "doc_type":"api", - "kw":"Querying the Details About a Visualization Job,Visualization Jobs,API Reference", - "title":"Querying the Details About a Visualization Job", - "githuburl":"" - }, - { - "uri":"modelarts_03_0067.html", - "product_code":"modelarts", - "code":"83", - "des":"This API is used to modify the description of a visualization job.PUT /v1/{project_id}/visualization-jobs/{job_id}Table 1 describes the required parameters.ParametersPara", - "doc_type":"api", - "kw":"Modifying the Description of a Visualization Job,Visualization Jobs,API Reference", - "title":"Modifying the Description of a Visualization Job", - "githuburl":"" - }, - { - "uri":"modelarts_03_0068.html", - "product_code":"modelarts", - "code":"84", - "des":"This API is used to delete a visualization job. Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Querying a ", - "doc_type":"api", - "kw":"Deleting a Visualization Job,Visualization Jobs,API Reference", - "title":"Deleting a Visualization Job", - "githuburl":"" - }, - { - "uri":"modelarts_03_0069.html", - "product_code":"modelarts", - "code":"85", - "des":"This API is used to stop a visualization job. Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Querying a Vi", - "doc_type":"api", - "kw":"Stopping a Visualization Job,Visualization Jobs,API Reference", - "title":"Stopping a Visualization Job", - "githuburl":"" - }, - { - "uri":"modelarts_03_0070.html", - "product_code":"modelarts", - "code":"86", - "des":"This API is used to restart a visualization job. Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Querying a", - "doc_type":"api", - "kw":"Restarting a Visualization Job,Visualization Jobs,API Reference", - "title":"Restarting a Visualization Job", - "githuburl":"" - }, - { - "uri":"modelarts_03_0071.html", - "product_code":"modelarts", - "code":"87", + "code":"158", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Resource and Engine Specifications", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Resource and Engine Specifications", "githuburl":"" }, { - "uri":"modelarts_03_0072.html", + "uri":"ListTrainingJobFlavors.html", + "node_id":"listtrainingjobflavors.xml", "product_code":"modelarts", - "code":"88", - "des":"This API is used to query the resource specifications of a specified job.You must specify the resource specifications when creating a training job or an inference job.GET", + "code":"159", + "des":"This API is used to query the list of public flavors supported by a training job.GET /v2/{project_id}/training-job-flavorsNoneStatus code: 200The following shows how to q", "doc_type":"api", - "kw":"Querying Job Resource Specifications,Resource and Engine Specifications,API Reference", - "title":"Querying Job Resource Specifications", + "kw":"Querying the Public Flavor List Supported by a Training Job,Resource and Engine Specifications,API R", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the Public Flavor List Supported by a Training Job", "githuburl":"" }, { - "uri":"modelarts_03_0073.html", + "uri":"ListTrainingJobEngines.html", + "node_id":"listtrainingjobengines.xml", "product_code":"modelarts", - "code":"89", - "des":"This API is used to query the engine type and version of a specified job.You must specify the engine specifications when creating a training job or an inference job.GET /", + "code":"160", + "des":"This API is used to query the list of AI engines supported by a training job.GET /v2/{project_id}/training-job-enginesNoneStatus code: 200The following shows how to query", "doc_type":"api", - "kw":"Querying Job Engine Specifications,Resource and Engine Specifications,API Reference", - "title":"Querying Job Engine Specifications", + "kw":"Querying the AI Engine List Supported by a Training Job,Resource and Engine Specifications,API Refer", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Querying the AI Engine List Supported by a Training Job", "githuburl":"" }, { - "uri":"modelarts_03_0074.html", + "uri":"modelarts_03_0153.html", + "node_id":"modelarts_03_0153.xml", "product_code":"modelarts", - "code":"90", - "des":"Table 1 describes the job statuses.", - "doc_type":"api", - "kw":"Job Statuses,Training Management,API Reference", - "title":"Job Statuses", - "githuburl":"" - }, - { - "uri":"modelarts_03_0075.html", - "product_code":"modelarts", - "code":"91", + "code":"161", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Model Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Model Management", "githuburl":"" }, { "uri":"modelarts_03_0076.html", + "node_id":"modelarts_03_0076.xml", "product_code":"modelarts", - "code":"92", + "code":"162", "des":"You can use the API to import a model.Ensure that the execution code and model have been uploaded to OBS. By default, the models generated by a training job are stored in", "doc_type":"api", "kw":"Importing a Model,Model Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Importing a Model", "githuburl":"" }, { "uri":"modelarts_03_0077.html", + "node_id":"modelarts_03_0077.xml", "product_code":"modelarts", - "code":"93", + "code":"163", "des":"This API is used to query the models that meet the search criteria.GET /v1/{project_id}/modelsTable 1 describes the required parameters.ParametersParameterMandatoryTypeDe", "doc_type":"api", "kw":"Querying a Model List,Model Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying a Model List", "githuburl":"" }, { "uri":"modelarts_03_0078.html", + "node_id":"modelarts_03_0078.xml", "product_code":"modelarts", - "code":"94", + "code":"164", "des":"This API is used to query details about a model based on the model ID.GET /v1/{project_id}/models/{model_id}Table 1 describes the required parameters.ParametersParameterM", "doc_type":"api", "kw":"Querying the Details About a Model,Model Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying the Details About a Model", "githuburl":"" }, { "uri":"modelarts_03_0079.html", + "node_id":"modelarts_03_0079.xml", "product_code":"modelarts", - "code":"95", + "code":"165", "des":"This API is used to delete a model based on the model ID. When cascade is set to true, the model specified by the model ID and models of different versions with the same ", "doc_type":"api", "kw":"Deleting a Model,Model Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Deleting a Model", "githuburl":"" }, { "uri":"modelarts_03_0081.html", + "node_id":"modelarts_03_0081.xml", "product_code":"modelarts", - "code":"96", + "code":"166", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Service Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Service Management", "githuburl":"" }, { "uri":"modelarts_03_0082.html", + "node_id":"modelarts_03_0082.xml", "product_code":"modelarts", - "code":"97", + "code":"167", "des":"This API is used to deploy a model as a service.POST /v1/{project_id}/servicesTable 1 describes the required parameters.ParametersParameterMandatoryTypeDescriptionproject", "doc_type":"api", "kw":"Deploying a Model as a Service,Service Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Deploying a Model as a Service", "githuburl":"" }, { "uri":"modelarts_03_0083.html", + "node_id":"modelarts_03_0083.xml", "product_code":"modelarts", - "code":"98", + "code":"168", "des":"This API is used to obtain model services.GET /v1/{project_id}/servicesTable 1 describes the required parameters.ParametersParameterMandatoryTypeDescriptionproject_idYesS", "doc_type":"api", "kw":"Querying a Service List,Service Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying a Service List", "githuburl":"" }, { "uri":"modelarts_03_0084.html", + "node_id":"modelarts_03_0084.xml", "product_code":"modelarts", - "code":"99", + "code":"169", "des":"This API is used to query the details about a model service based on the service ID.GET /v1/{project_id}/services/{service_id}Table 1 describes the required parameters.Pa", "doc_type":"api", "kw":"Querying the Details About a Service,Service Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying the Details About a Service", "githuburl":"" }, { "uri":"modelarts_03_0086.html", + "node_id":"modelarts_03_0086.xml", "product_code":"modelarts", - "code":"100", + "code":"170", "des":"This API is used to update configurations of a model service. It can also be used to start or stop a service.PUT /v1/{project_id}/services/{service_id}Table 1 describes t", "doc_type":"api", "kw":"Updating Service Configurations,Service Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Updating Service Configurations", "githuburl":"" }, { "uri":"modelarts_03_0087.html", + "node_id":"modelarts_03_0087.xml", "product_code":"modelarts", - "code":"101", + "code":"171", "des":"This API is used to query service monitoring information.GET /v1/{project_id}/services/{service_id}/monitorTable 1 describes the required parameters.ParametersParameterMa", "doc_type":"api", "kw":"Querying Service Monitoring Information,Service Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying Service Monitoring Information", "githuburl":"" }, { "uri":"modelarts_03_0088.html", + "node_id":"modelarts_03_0088.xml", "product_code":"modelarts", - "code":"102", + "code":"172", "des":"This API is used to query the update logs of a real-time service.GET /v1/{project_id}/services/{service_id}/logsTable 1 describes the required parameters.ParametersParame", "doc_type":"api", "kw":"Querying Service Update Logs,Service Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying Service Update Logs", "githuburl":"" }, { "uri":"modelarts_03_0155.html", + "node_id":"modelarts_03_0155.xml", "product_code":"modelarts", - "code":"103", + "code":"173", "des":"This API is used to query service event logs, including service operation records, key actions during deployment, and deployment failure causes.GET /v1/{project_id}/servi", "doc_type":"api", "kw":"Querying Service Event Logs,Service Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying Service Event Logs", "githuburl":"" }, { "uri":"modelarts_03_0089.html", + "node_id":"modelarts_03_0089.xml", "product_code":"modelarts", - "code":"104", - "des":"This API is used to delete a model service. You can delete your own services only.Table 1 describes the required parameters.ParametersParameterMandatoryTypeDescriptionpro", + "code":"174", + "des":"This API is used to delete a service. You can delete your own services only.Table 1 describes the required parameters.ParametersParameterMandatoryTypeDescriptionproject_i", "doc_type":"api", "kw":"Deleting a Service,Service Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Deleting a Service", "githuburl":"" }, { "uri":"modelarts_03_0200.html", + "node_id":"modelarts_03_0200.xml", "product_code":"modelarts", - "code":"105", + "code":"175", "des":"This API is used to query supported service deployment specifications.URIGET /v1/{project_id}/services/specificationsNoneSample requestGET https://endpoint/v1/{project", "doc_type":"api", "kw":"Querying Supported Service Deployment Specifications,Service Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Querying Supported Service Deployment Specifications", "githuburl":"" }, { - "uri":"modelarts_03_0201.html", + "uri":"authorization.html", + "node_id":"authorization.xml", "product_code":"modelarts", - "code":"106", - "des":"This API is used to query dedicated resource pools.GET /v1/{project_id}/clustersParametersParameterMandatoryTypeDescriptionproject_idYesStringProject ID. For details abou", - "doc_type":"api", - "kw":"Querying Dedicated Resource Pools,Service Management,API Reference", - "title":"Querying Dedicated Resource Pools", - "githuburl":"" - }, - { - "uri":"modelarts_03_0408.html", - "product_code":"modelarts", - "code":"107", + "code":"176", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Authorization Management", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Authorization Management", "githuburl":"" }, { - "uri":"modelarts_03_0409.html", + "uri":"CreateAuthorization.html", + "node_id":"createauthorization.xml", "product_code":"modelarts", - "code":"108", + "code":"177", "des":"This API is used to configure ModelArts authorization. ModelArts functions such as training management, development environment, data management, and real-time services c", "doc_type":"api", "kw":"Configuring Authorization,Authorization Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Configuring Authorization", "githuburl":"" }, { - "uri":"modelarts_03_0410.html", + "uri":"GetAuthorizations.html", + "node_id":"getauthorizations.xml", "product_code":"modelarts", - "code":"109", + "code":"178", "des":"This API is used to view an authorization list.GET /v2/{project_id}/authorizationsNoneStatus code: 200View an authorization list.Status code: 200OKSee Error Codes.", "doc_type":"api", "kw":"Viewing an Authorization List,Authorization Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Viewing an Authorization List", "githuburl":"" }, { - "uri":"modelarts_03_0411.html", + "uri":"DeleteAuthorizations.html", + "node_id":"deleteauthorizations.xml", "product_code":"modelarts", - "code":"110", + "code":"179", "des":"This API is used to delete the authorization of a specified user or all users.DELETE /v2/{project_id}/authorizationsNoneNoneDelete the authorization of a specified user.S", "doc_type":"api", "kw":"Deleting Authorization,Authorization Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Deleting Authorization", "githuburl":"" }, { - "uri":"modelarts_03_0412.html", + "uri":"CreateModelArtsAgency.html", + "node_id":"createmodelartsagency.xml", "product_code":"modelarts", - "code":"111", + "code":"180", "des":"This API is used to create a ModelArts agency for dependent services such as OBS, SWR, and IEF.POST /v2/{project_id}/agencyNoneCreate a ModelArts agency.Status code: 200O", "doc_type":"api", "kw":"Creating a ModelArts Agency,Authorization Management,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Creating a ModelArts Agency", "githuburl":"" }, - { - "uri":"modelarts_03_0400.html", - "product_code":"modelarts", - "code":"112", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"Application Cases", - "title":"Application Cases", - "githuburl":"" - }, - { - "uri":"modelarts_03_0401.html", - "product_code":"modelarts", - "code":"113", - "des":"This section describes how to train a model on ModelArts by calling a series of APIs.The process for creating a training job using the TensorFlow framework is as follows:", - "doc_type":"api", - "kw":"Creating a Training Job Using the TensorFlow Framework,Application Cases,API Reference", - "title":"Creating a Training Job Using the TensorFlow Framework", - "githuburl":"" - }, { "uri":"modelarts_03_0138.html", + "node_id":"modelarts_03_0138.xml", "product_code":"modelarts", - "code":"114", + "code":"181", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Permissions Policies and Supported Actions", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Permissions Policies and Supported Actions", "githuburl":"" }, { "uri":"modelarts_03_0146.html", + "node_id":"modelarts_03_0146.xml", "product_code":"modelarts", - "code":"115", - "des":"This section describes fine-grained permissions management for your ModelArts. If your current account does not require individual IAM users, skip this section.By default", + "code":"182", + "des":"This section describes fine-grained permissions management for your ModelArts. If your account does not require individual IAM users, skip this section.By default, new IA", "doc_type":"api", "kw":"Introduction,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Introduction", "githuburl":"" }, { "uri":"modelarts_03_0234.html", + "node_id":"modelarts_03_0234.xml", "product_code":"modelarts", - "code":"116", + "code":"183", "des":"ExeML APIs are inaccessible to external systems. To use ExeML functions on the console and manage permissions, perform the operations described in the following table.", "doc_type":"api", "kw":"ExeML Permissions,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"ExeML Permissions", "githuburl":"" }, { "uri":"modelarts_03_0161.html", + "node_id":"modelarts_03_0161.xml", "product_code":"modelarts", - "code":"117", + "code":"184", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Data Management Permissions,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Data Management Permissions", "githuburl":"" }, { "uri":"modelarts_03_0162.html", + "node_id":"modelarts_03_0162.xml", "product_code":"modelarts", - "code":"118", + "code":"185", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"DevEnviron Permissions,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"DevEnviron Permissions", "githuburl":"" }, { "uri":"modelarts_03_0163.html", + "node_id":"modelarts_03_0163.xml", "product_code":"modelarts", - "code":"119", + "code":"186", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Training Job Permissions,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Training Job Permissions", "githuburl":"" }, { "uri":"modelarts_03_0164.html", + "node_id":"modelarts_03_0164.xml", "product_code":"modelarts", - "code":"120", + "code":"187", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Model Management Permissions,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Model Management Permissions", "githuburl":"" }, { "uri":"modelarts_03_0165.html", + "node_id":"modelarts_03_0165.xml", "product_code":"modelarts", - "code":"121", + "code":"188", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Service Management Permissions,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Service Management Permissions", "githuburl":"" }, { - "uri":"modelarts_03_0093.html", + "uri":"modelarts_03_0166.html", + "node_id":"modelarts_03_0166.xml", "product_code":"modelarts", - "code":"122", + "code":"189", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Workspace Management Permissions,Permissions Policies and Supported Actions,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Workspace Management Permissions", + "githuburl":"" + }, + { + "uri":"modelarts_03_0093.html", + "node_id":"modelarts_03_0093.xml", + "product_code":"modelarts", + "code":"190", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Common Parameters", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Common Parameters", "githuburl":"" }, { "uri":"modelarts_03_0094.html", + "node_id":"modelarts_03_0094.xml", "product_code":"modelarts", - "code":"123", + "code":"191", "des":"Table 1 describes the status codes.", "doc_type":"api", "kw":"Status Code,Common Parameters,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Status Code", "githuburl":"" }, { "uri":"modelarts_03_0095.html", + "node_id":"modelarts_03_0095.xml", "product_code":"modelarts", - "code":"124", + "code":"192", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Error Codes,Common Parameters,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Error Codes", "githuburl":"" }, { "uri":"modelarts_03_0147.html", + "node_id":"modelarts_03_0147.xml", "product_code":"modelarts", - "code":"125", - "des":"A project ID is required for some requests when an API is called. Therefore, obtain the project ID before calling the API. Use either of the following methods:Obtaining a", + "code":"193", + "des":"A project ID or name is required for some requests when an API is called. Therefore, obtain the project ID and name before calling the API. Use either of the following me", "doc_type":"api", - "kw":"Obtaining a Project ID,Common Parameters,API Reference", - "title":"Obtaining a Project ID", + "kw":"Obtaining a Project ID and Name,Common Parameters,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Obtaining a Project ID and Name", "githuburl":"" }, { "uri":"modelarts_03_0148.html", + "node_id":"modelarts_03_0148.xml", "product_code":"modelarts", - "code":"126", - "des":"When you call APIs, certain requests require the account name and ID. To obtain an account name and ID, do as follows:Sign up and log in to the console.Hover the cursor o", + "code":"194", + "des":"When you call APIs, certain requests require the account name and ID. To obtain an account name and ID, do as follows:Log in to the console.Hover the cursor on the userna", "doc_type":"api", - "kw":"Obtaining an Account Name and ID,Common Parameters,API Reference", - "title":"Obtaining an Account Name and ID", + "kw":"Obtaining the Account Name and Account ID,Common Parameters,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], + "title":"Obtaining the Account Name and Account ID", "githuburl":"" }, { "uri":"modelarts_03_0006.html", + "node_id":"modelarts_03_0006.xml", "product_code":"modelarts", - "code":"127", - "des":"When you call APIs, certain requests require the username and ID. To obtain a username and ID, do as follows:Log in to the management console after registration.Hover the", + "code":"195", + "des":"When you call APIs, certain requests require the username and ID. To obtain a username and ID, do as follows:Log in to the console.Hover the cursor on the username and ch", "doc_type":"api", "kw":"Obtaining a Username and ID,Common Parameters,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Obtaining a Username and ID", "githuburl":"" }, - { - "uri":"modelarts_03_0247.html", - "product_code":"modelarts", - "code":"128", - "des":"A project ID or name is required for some requests when an API is called. Therefore, obtain the project ID and name before calling the API.To do so, perform the following", - "doc_type":"api", - "kw":"Obtaining a Project Name,Common Parameters,API Reference", - "title":"Obtaining a Project Name", - "githuburl":"" - }, { "uri":"modelarts_03_0097.html", + "node_id":"modelarts_03_0097.xml", "product_code":"modelarts", - "code":"129", + "code":"196", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Change History,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"modelarts", + "opensource":"true" + } + ], "title":"Change History", "githuburl":"" } diff --git a/docs/modelarts/api-ref/AcceptSamples.html b/docs/modelarts/api-ref/AcceptSamples.html new file mode 100644 index 00000000..099ad636 --- /dev/null +++ b/docs/modelarts/api-ref/AcceptSamples.html @@ -0,0 +1,191 @@ + + +

Submitting Sample Review Comments of an Acceptance Task

+

Function

This API is used to submit sample review comments of an acceptance task.

+
+

URI

POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/acceptance/batch-comment

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

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.

+

workforce_task_id

+

Yes

+

String

+

ID of a labeling task.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

comments

+

No

+

Array of SampleComment objects

+

Review comment list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 SampleComment

Parameter

+

Mandatory

+

Type

+

Description

+

accept

+

Yes

+

Boolean

+

Whether the submitted sample review comments are passed. The options are as follows:

+
  • true: passed

    +
  • false: not passed

    +
+

comment

+

No

+

String

+

Review comment, which contains 0 to 256 characters, excluding special characters (!<>=&"'').

+

sample_id

+

No

+

String

+

Sample ID.

+

score

+

No

+

String

+

Review score, whose value can be A, B, C, or D, in descending order.

+

worker_id

+

No

+

String

+

ID of a labeling team member.

+
+
+
+

Response Parameters

None

+
+

Example Requests

Submitting Sample Review Comments of an Acceptance Task

+
{
+  "comments" : [ {
+    "worker_id" : "8c15ad080d3eabad14037b4eb00d6a6f",
+    "sample_id" : "09ac49d5b06385849c8769fdcf0f6d60",
+    "accept" : true,
+    "comment" : "",
+    "score" : "A"
+  } ]
+}
+
+

Example Responses

Status code: 200

+

OK

+
{ }
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/modelarts/api-ref/AttachObs.html b/docs/modelarts/api-ref/AttachObs.html new file mode 100644 index 00000000..7e3b9db7 --- /dev/null +++ b/docs/modelarts/api-ref/AttachObs.html @@ -0,0 +1,193 @@ + + +

OBS Storage Mounting

+

Function

This API is used to mount OBS storage to a running notebook instance so that the application layer can operate OBS parallel file system in the container.

+
+

Constraints

None

+
+

URI

POST /v1/{project_id}/notebooks/{instance_id}/storage

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

instance_id

+

Yes

+

String

+

Notebook instance ID.

+

project_id

+

Yes

+

String

+

Project ID. For details, see Obtaining a Project ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

category

+

No

+

String

+

Storage category. Options: - OBS

+

mount_path

+

No

+

String

+

Path where OBS storage is mounted, which must be in a subdirectory of /data/ of the notebook instance.

+

uri

+

No

+

String

+

OBS parallel file system path, for example, obs://modelarts/notebook/.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

category

+

String

+

Storage category. Options: - OBS

+

id

+

String

+

ID of the instance with OBS storage mounted.

+

mount_path

+

String

+

Path where OBS storage is mounted to a notebook instance.

+

status

+

String

+

Status of OBS storage to be mounted. Options: \r\n-MOUNTING: OBS storage is being mounted. \r\n-MOUNT_FAILED: OBS storage fails to be mounted. \r\n-MOUNTED: OBS storage is mounted. \r\n-UNMOUNTING: OBS storage is being unmounted.\r\n-UNMOUNT_FAILED: OBS storage fails to be unmounted.\r\n-UNMOUNTED: OBS is unmounted.

+

uri

+

String

+

OBS parallel file system path.

+
+
+
+

Example Requests

{
+  "category" : "OBS",
+  "mount_path" : "/data/wang/",
+  "uri" : "obs://authoring-test/wang/"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "id" : "91dd2d3f-2d92-475f-a375-04636af26cc9",
+  "category" : "OBSFS",
+  "mount_path" : "/data/wang/",
+  "uri" : "obs://authoring-test/wang/",
+  "status" : "MOUNTING"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

201

+

Created

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/modelarts/api-ref/AutoAnnotationProgress.html b/docs/modelarts/api-ref/AutoAnnotationProgress.html new file mode 100644 index 00000000..4adf8fe9 --- /dev/null +++ b/docs/modelarts/api-ref/AutoAnnotationProgress.html @@ -0,0 +1,1548 @@ + + +

Obtaining Information About Intelligent Tasks

+

Function

This API is used to obtain information about intelligent tasks, including auto labeling, one-click model deployment, and auto grouping tasks. You can specify the task_id parameter to query the details about a specific task.

+
+

URI

GET /v2/{project_id}/datasets/{dataset_id}/tasks/{task_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

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.

+

task_id

+

Yes

+

String

+

Task ID.

+
+
+
+

Request Parameters

None

+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Response body parameters

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:

+
  • -1: queuing
  • 0: initialized
  • 1: running
  • 2: failed
  • 3: succeeded
  • 4: stopping
  • 5: stopped
+

task_id

+

String

+

Task ID.

+

task_name

+

String

+

Task name.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 SmartTaskConfig

Parameter

+

Type

+

Description

+

algorithm_type

+

String

+

Algorithm type for auto labeling. Options:

+
  • fast: Only labeled samples are used for training. This type of algorithm achieves faster labeling.
  • accurate: In addition to labeled samples, unlabeled samples are used for semi-supervised training. This type of algorithm achieves more accurate labeling.
+

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. The options are as follows:

+
  • true: Enable sample collection. (Default value)
  • false: Do not enable sample collection.
+

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. The options are as follows:

+
  • 1: tree structure. For example: cat/1.jpg,rabbit/2.jpg.
  • 2: tile structure. For example: 1.jpg, 1.txt; 2.jpg,2.txt.
+

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-Dataset ID/annotation/auto-deploy/. Example: /test/work_1608083108676/dataset123-g6IO9qSu6hoxwCAirfm/annotation/auto-deploy/.

+

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. The options are as follows:

+
  • 0: Save to OBS.
  • 1: Save to samples.
+

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. The options are as follows:

+
  • Default: default format
  • CarbonData: CarbonData (supported only by table datasets)
  • CSV: CSV
+

worker_server_num

+

Integer

+

Number of workers in a training job.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 ExportParams

Parameter

+

Type

+

Description

+

clear_hard_property

+

Boolean

+

Whether to clear hard example attributes. The options are as follows:

+
  • true: Clear hard example attributes. (Default value)
  • false: Do not clear hard example attributes.
+

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. The options are as follows:

+
  • DIR: Export data to OBS. (Default value)
  • NEW_DATASET: Export data to a new dataset.
+

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. The options are as follows:

+
  • true: Allocate the training set and validation set.
  • false: Do not allocate the training set and validation set. (Default value)
+

sample_state

+

String

+

Sample status. The options are as follows:

+
  • ALL: labeled
  • NONE: unlabeled
  • UNCHECK: pending acceptance
  • ACCEPTED: accepted
  • REJECTED: rejected
  • UNREVIEWED: pending review
  • REVIEWED: reviewed
  • WORKFORCE_SAMPLED: sampled
  • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
  • WORKFORCE_SAMPLED_CHECKED: sampling checked
  • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
  • WORKFORCE_SAMPLED_REJECTED: sampling rejected
  • AUTO_ANNOTATION: to be confirmed
+

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.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 SearchCondition

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. The options are as follows:

+
  • 0: non-hard sample
  • 1: hard sample
+

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. The options are as follows:- month: Search for samples added from 30 days ago to the current day.- day: Search for samples added from yesterday (one day ago) to the current day.- yyyyMMdd-yyyyMMdd: Search for samples added in a specified period (at most 30 days), in the format of Start date-End date. For example, 20190901-2019091501 indicates that samples generated from September 1 to September 15, 2019 are searched.

+

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.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 SearchLabels

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. The options are as follows:

+
  • OR: OR operation
  • AND: AND operation
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 7 SearchLabel

Parameter

+

Type

+

Description

+

name

+

String

+

Label name.

+

op

+

String

+

Operation type between multiple attributes. The options are as follows:

+
  • OR: OR operation
  • AND: AND operation
+

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. The options are as follows:

+
  • 0: image classification
  • 1: object detection
  • 100: text classification
  • 101: named entity recognition
  • 102: text triplet relationship
  • 103: text triplet entity
  • 200: speech classification
  • 201: speech content
  • 202: speech paragraph labeling
  • 600: video classification
+
+
+ +
+ + + + + + + + + + + + + +
Table 8 SearchProp

Parameter

+

Type

+

Description

+

op

+

String

+

Relationship between attribute values. The options are as follows:

+
  • AND: AND relationship
  • OR: OR relationship
+

props

+

Map<String,Array<String>>

+

Search criteria of an attribute. Multiple search criteria can be set.

+
+
+ +
+ + + + + + + + + +
Table 9 Flavor

Parameter

+

Type

+

Description

+

code

+

String

+

Attribute code of a resource specification, which is used for task creating.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 10 InfConfig

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, such as plaintext passwords, 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.

+
+
+ +
+ + + + + + + + + + + + + +
Table 11 TrainingParameter

Parameter

+

Type

+

Description

+

label

+

String

+

Parameter name.

+

value

+

String

+

Parameter value.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 12 Result

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. The options are as follows:

+
  • 0: image classification
  • 1: object detection
  • 100: text classification
  • 101: named entity recognition
  • 102: text triplet
  • 200: sound classification
  • 201: speech content
  • 202: speech paragraph labeling
  • 400: table dataset
  • 600: video labeling
  • 900: custom format
+

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.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 13 Event

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. The options are as follows:

+
  • waiting: waiting
  • running: running
  • failed: failed
  • success: successful
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 14 HardSelectTask

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.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 15 SampleLabels

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. The options are as follows:

+
  • 0: image
  • 1: text
  • 2: speech
  • 4: table
  • 6: video
  • 9: custom format
+

sample_usage

+

String

+

Sample usage. The options are as follows:

+
  • TRAIN: training
  • EVAL: evaluation
  • TEST: test
  • INFERENCE: inference
+

source

+

String

+

Source address of sample data.

+

worker_id

+

String

+

ID of a labeling team member.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 16 SampleLabel

Parameter

+

Type

+

Description

+

annotated_by

+

String

+

Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

+
  • human: manual labeling
  • auto: automatic labeling
+

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. The options are as follows:

+
  • 0: image classification
  • 1: object detection
  • 100: text classification
  • 101: named entity recognition
  • 102: text triplet relationship
  • 103: text triplet entity
  • 200: speech classification
  • 201: speech content
  • 202: speech paragraph labeling
  • 600: video classification
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 17 SampleLabelProperty

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. Examples are as follows.- If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.- If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.

+

@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 an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:- bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.- polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].- circle: consists of the center point and radius, for example, [[100,100],[50]].- line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- point: consists of one point, for example, [[0,100]].- polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].

+

@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:

+
  • 0/false: not a hard example
  • 1/true: hard example
+

@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. The options are as follows:

+
  • 0: No target objects are identified.
  • 1: The confidence is low.
  • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
  • 3: The prediction result is greatly different from the data of the same type in the training dataset.
  • 4: The prediction results of multiple consecutive similar images are inconsistent.
  • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
  • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
  • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
  • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
  • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
  • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
  • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
  • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
  • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
  • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
  • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
  • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
  • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
  • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
  • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
  • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
  • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
  • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
  • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
  • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
  • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
  • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
  • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
  • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
  • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
  • 30: The data is predicted to be abnormal.
+

@modelarts:shape

+

String

+

Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

+
  • bndbox: rectangle
  • polygon: polygon
  • circle: circle
  • line: straight line
  • dashed: dotted line
  • point: point
  • polyline: polyline
+

@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.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 18 SampleMetadata

Parameter

+

Type

+

Description

+

@modelarts:hard

+

Double

+

Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

+
  • 0: non-hard sample
  • 1: hard sample
+

@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. The options are as follows:

+
  • 0: No target objects are identified.
  • 1: The confidence is low.
  • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
  • 3: The prediction result is greatly different from the data of the same type in the training dataset.
  • 4: The prediction results of multiple consecutive similar images are inconsistent.
  • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
  • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
  • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
  • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
  • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
  • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
  • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
  • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
  • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
  • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
  • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
  • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
  • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
  • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
  • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
  • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
  • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
  • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
  • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
  • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
  • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
  • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
  • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
  • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
  • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
  • 30: The data is predicted to be abnormal.
+

@modelarts:size

+

Array of objects

+

Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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,
+    "continuity" : false
+  },
+  "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.

+
+
+
+ +
+ diff --git a/docs/modelarts/api-ref/CLASS.TXT.json b/docs/modelarts/api-ref/CLASS.TXT.json index da99177c..fbde4b31 100644 --- a/docs/modelarts/api-ref/CLASS.TXT.json +++ b/docs/modelarts/api-ref/CLASS.TXT.json @@ -18,7 +18,7 @@ "code":"2" }, { - "desc":"ModelArts supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS. For details about API calling, see Calling APIs.In addition, ModelA", + "desc":"ModelArts supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS. For details about API calling, see Calling APIs.", "product_code":"modelarts", "title":"API Calling", "uri":"modelarts_03_0140.html", @@ -27,9 +27,9 @@ "code":"3" }, { - "desc":"An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. For the endpoints of all services, see Regions and Endpoints.If a", + "desc":"An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. For the endpoints of all services, see Regions and Endpoints.", "product_code":"modelarts", - "title":"Endpoints", + "title":"Endpoint", "uri":"modelarts_03_0141.html", "doc_type":"api", "p_code":"1", @@ -45,7 +45,7 @@ "code":"5" }, { - "desc":"All ModelArts APIs are proprietary.You can use these APIs to manage datasets, training jobs, models, and services.Data management APIs include the APIs for managing datas", + "desc":"All ModelArts APIs are proprietary.Data management APIs include the APIs for managing datasets, dataset versions, samples, and labels. Use these APIs to create datasets a", "product_code":"modelarts", "title":"API Overview", "uri":"modelarts_03_0002.html", @@ -179,6 +179,24 @@ "p_code":"13", "code":"20" }, + { + "desc":"This API is used to query details about team labeling task statistics.GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/stat", + "product_code":"modelarts", + "title":"Querying Details About Team Labeling Task Statistics", + "uri":"ListWorkforceTaskStats.html", + "doc_type":"api", + "p_code":"13", + "code":"21" + }, + { + "desc":"This API is used to query details about the progress of a team labeling task member.GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/metrics", + "product_code":"modelarts", + "title":"Querying Details About the Progress of a Team Labeling Task Member", + "uri":"GetWorkforceTaskMetrics.html", + "doc_type":"api", + "p_code":"13", + "code":"22" + }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"modelarts", @@ -186,7 +204,7 @@ "uri":"dataset_version_management.html", "doc_type":"api", "p_code":"11", - "code":"21" + "code":"23" }, { "desc":"This API is used to query the version list of a specific dataset.GET /v2/{project_id}/datasets/{dataset_id}/versionsNoneStatus code: 200Querying the Version List of a Spe", @@ -194,8 +212,8 @@ "title":"Querying the Dataset Version List", "uri":"ListDatasetVersions.html", "doc_type":"api", - "p_code":"21", - "code":"22" + "p_code":"23", + "code":"24" }, { "desc":"This API is used to create a dataset labeling version.POST /v2/{project_id}/datasets/{dataset_id}/versionsStatus code: 201Creating a Dataset Labeling VersionStatus code: ", @@ -203,8 +221,8 @@ "title":"Creating a Dataset Labeling Version", "uri":"CreateDatasetVersion.html", "doc_type":"api", - "p_code":"21", - "code":"23" + "p_code":"23", + "code":"25" }, { "desc":"This API is used to query the details about a dataset version.GET /v2/{project_id}/datasets/{dataset_id}/versions/{version_id}NoneStatus code: 200Querying Details About a", @@ -212,8 +230,8 @@ "title":"Querying Details About a Dataset Version", "uri":"DescribeDatasetVersion.html", "doc_type":"api", - "p_code":"21", - "code":"24" + "p_code":"23", + "code":"26" }, { "desc":"This API is used to delete a dataset labeling version.DELETE /v2/{project_id}/datasets/{dataset_id}/versions/{version_id}NoneNoneDeleting a Dataset Labeling VersionStatus", @@ -221,8 +239,8 @@ "title":"Deleting a Dataset Labeling Version", "uri":"DeleteDatasetVersion.html", "doc_type":"api", - "p_code":"21", - "code":"25" + "p_code":"23", + "code":"27" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -231,7 +249,7 @@ "uri":"sample_management.html", "doc_type":"api", "p_code":"11", - "code":"26" + "code":"28" }, { "desc":"This API is used to query the sample list by page.GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/samplesNoneStatus code: 200Querying the Sample List by PageS", @@ -239,8 +257,8 @@ "title":"Querying the Sample List", "uri":"ListSamples.html", "doc_type":"api", - "p_code":"26", - "code":"27" + "p_code":"28", + "code":"29" }, { "desc":"This API is used to add samples in batches.POST /v2/{project_id}/datasets/{dataset_id}/data-annotations/samplesStatus code: 200Adding Samples in BatchesStatus code: 200OK", @@ -248,8 +266,8 @@ "title":"Adding Samples in Batches", "uri":"UploadSamplesJson.html", "doc_type":"api", - "p_code":"26", - "code":"28" + "p_code":"28", + "code":"30" }, { "desc":"This API is used to delete samples in batches.POST /v2/{project_id}/datasets/{dataset_id}/data-annotations/samples/deleteStatus code: 200Deleting Samples in BatchesStatus", @@ -257,8 +275,8 @@ "title":"Deleting Samples in Batches", "uri":"DeleteSamples.html", "doc_type":"api", - "p_code":"26", - "code":"29" + "p_code":"28", + "code":"31" }, { "desc":"Query details about a sample.GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/samples/{sample_id}NoneStatus code: 200Querying Details About a SampleStatus code", @@ -266,8 +284,8 @@ "title":"Querying Details About a Sample", "uri":"DescribeSample.html", "doc_type":"api", - "p_code":"26", - "code":"30" + "p_code":"28", + "code":"32" }, { "desc":"This API is used to obtain sample search condition.GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/search-conditionNoneStatus code: 200Obtaining Sample Search", @@ -275,17 +293,35 @@ "title":"Obtaining Sample Search Condition", "uri":"ListSearch.html", "doc_type":"api", - "p_code":"26", - "code":"31" + "p_code":"28", + "code":"33" + }, + { + "desc":"This API is used to query the sample list of a team labeling task by page.GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/", + "product_code":"modelarts", + "title":"Querying the Sample List of a Team Labeling Task by Page", + "uri":"ListWorkforceTaskSamples.html", + "doc_type":"api", + "p_code":"28", + "code":"34" + }, + { + "desc":"This API is used to query details about team labeling samples.GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/samples/{sam", + "product_code":"modelarts", + "title":"Querying Details About Team Labeling Samples", + "uri":"DescribeWorkforceTaskSample.html", + "doc_type":"api", + "p_code":"28", + "code":"35" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"modelarts", "title":"Label Management", - "uri":"topic_300000012.html", + "uri":"label_management.html", "doc_type":"api", "p_code":"11", - "code":"32" + "code":"36" }, { "desc":"This API is used to query all labels of a dataset.GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/labelsNoneStatus code: 200Querying All Labels of a DatasetSt", @@ -293,8 +329,8 @@ "title":"Querying the Dataset Label List", "uri":"ListLabels.html", "doc_type":"api", - "p_code":"32", - "code":"33" + "p_code":"36", + "code":"37" }, { "desc":"This API is used to create a dataset label.POST /v2/{project_id}/datasets/{dataset_id}/data-annotations/labelsStatus code: 200Creating a Dataset LabelStatus code: 200OKSe", @@ -302,8 +338,8 @@ "title":"Creating a Dataset Label", "uri":"CreateLabels.html", "doc_type":"api", - "p_code":"32", - "code":"34" + "p_code":"36", + "code":"38" }, { "desc":"This API is used to modify labels in batches.PUT /v2/{project_id}/datasets/{dataset_id}/data-annotations/labelsStatus code: 200Modifying Labels in BatchesStatus code: 200", @@ -311,8 +347,8 @@ "title":"Modifying Labels in Batches", "uri":"UpdateLabels.html", "doc_type":"api", - "p_code":"32", - "code":"35" + "p_code":"36", + "code":"39" }, { "desc":"This API is used to delete labels in batches.POST /v2/{project_id}/datasets/{dataset_id}/data-annotations/labels/deleteStatus code: 200Deleting Labels in BatchesStatus co", @@ -320,8 +356,8 @@ "title":"Deleting Labels in Batches", "uri":"DeleteLabels.html", "doc_type":"api", - "p_code":"32", - "code":"36" + "p_code":"36", + "code":"40" }, { "desc":"This API is used to update a label by label names.PUT /v2/{project_id}/datasets/{dataset_id}/data-annotations/labels/{label_name}Status code: 204Updating a Label by Label", @@ -329,8 +365,8 @@ "title":"Updating a Label by Label Names", "uri":"UpdateLabel.html", "doc_type":"api", - "p_code":"32", - "code":"37" + "p_code":"36", + "code":"41" }, { "desc":"This API is used to delete a label and the files that only contain this label.DELETE /v2/{project_id}/datasets/{dataset_id}/data-annotations/labels/{label_name}NoneStatus", @@ -338,8 +374,8 @@ "title":"Deleting a Label and the Files that Only Contain the Label", "uri":"DeleteLabelAndSamples.html", "doc_type":"api", - "p_code":"32", - "code":"38" + "p_code":"36", + "code":"42" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -348,7 +384,7 @@ "uri":"manual_annotation_management.html", "doc_type":"api", "p_code":"11", - "code":"39" + "code":"43" }, { "desc":"This API is used to update sample labels in batches, including adding, modifying, and deleting sample labels. If the parameter Labels of a sample in the request body is n", @@ -356,8 +392,278 @@ "title":"Updating Sample Labels in Batches", "uri":"UpdateSamples.html", "doc_type":"api", - "p_code":"39", - "code":"40" + "p_code":"43", + "code":"44" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"modelarts", + "title":"Labeling Task Management", + "uri":"label_task_management.html", + "doc_type":"api", + "p_code":"11", + "code":"45" + }, + { + "desc":"This API is used to query the team labeling task list of a dataset.GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasksNoneStatus code: 200Querying the Team Labelin", + "product_code":"modelarts", + "title":"Querying the Team Labeling Task List of a Dataset", + "uri":"ListWorkforceTasks.html", + "doc_type":"api", + "p_code":"45", + "code":"46" + }, + { + "desc":"This API is used to create a team labeling task.POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasksStatus code: 200Creating a Team Labeling TaskStatus code: 200OK", + "product_code":"modelarts", + "title":"Creating a Team Labeling Task", + "uri":"CreateWorkforceTask.html", + "doc_type":"api", + "p_code":"45", + "code":"47" + }, + { + "desc":"This API is used to query the details about a team labeling task.GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}NoneStatus code: 200Queryin", + "product_code":"modelarts", + "title":"Querying Details About a Team Labeling Task", + "uri":"DescWorkforceTask.html", + "doc_type":"api", + "p_code":"45", + "code":"48" + }, + { + "desc":"This API is used to start a team labeling task.POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}NoneStarting a Team Labeling TaskStatus code", + "product_code":"modelarts", + "title":"Starting a Team Labeling Task", + "uri":"StartWorkforceTask.html", + "doc_type":"api", + "p_code":"45", + "code":"49" + }, + { + "desc":"This API is used to update a team labeling task.PUT /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}NoneUpdating a Team Labeling TaskStatus code", + "product_code":"modelarts", + "title":"Updating a Team Labeling Task", + "uri":"UpdateWorkforceTask.html", + "doc_type":"api", + "p_code":"45", + "code":"50" + }, + { + "desc":"This API is used to delete a team labeling task.DELETE /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}NoneNoneDeleting a Team Labeling TaskStat", + "product_code":"modelarts", + "title":"Deleting a Team Labeling Task", + "uri":"DeleteWorkforceTask.html", + "doc_type":"api", + "p_code":"45", + "code":"51" + }, + { + "desc":"This API is used to create a team labeling acceptance task.POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/acceptanceStatus code: 200Creat", + "product_code":"modelarts", + "title":"Creating a Team Labeling Acceptance Task", + "uri":"StartWorkforceSamplingTask.html", + "doc_type":"api", + "p_code":"45", + "code":"52" + }, + { + "desc":"This API is used to query the report of a team labeling acceptance task.GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/acceptance/reportNo", + "product_code":"modelarts", + "title":"Querying the Report of a Team Labeling Acceptance Task", + "uri":"GetWorkforceSamplingTask.html", + "doc_type":"api", + "p_code":"45", + "code":"53" + }, + { + "desc":"This API is used to update the sample status by confirming the acceptance scope and whether the labeled data is overwritten before the acceptance of the team labeling tas", + "product_code":"modelarts", + "title":"Updating the Status of a Team Labeling Acceptance Task", + "uri":"UpdateWorkforceSamplingTask.html", + "doc_type":"api", + "p_code":"45", + "code":"54" + }, + { + "desc":"This API is used to query the team labeling task list by a team member.GET /v2/{project_id}/workforces/worker-tasksNoneStatus code: 200Querying the Team Labeling Task Lis", + "product_code":"modelarts", + "title":"Querying the Team Labeling Task List by a Team Member", + "uri":"ListWorkerTasks.html", + "doc_type":"api", + "p_code":"45", + "code":"55" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"modelarts", + "title":"Team Labeling Process Management", + "uri":"workforce_process_management.html", + "doc_type":"api", + "p_code":"11", + "code":"56" + }, + { + "desc":"This API is used to submit sample review comments of an acceptance task.POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/acceptance/batch-c", + "product_code":"modelarts", + "title":"Submitting Sample Review Comments of an Acceptance Task", + "uri":"AcceptSamples.html", + "doc_type":"api", + "p_code":"56", + "code":"57" + }, + { + "desc":"This API is used to review team labeling results.POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/reviewNoneReviewing Team", + "product_code":"modelarts", + "title":"Reviewing Team Labeling Results", + "uri":"ReviewSamples.html", + "doc_type":"api", + "p_code":"56", + "code":"58" + }, + { + "desc":"This API is used to update labels of team labeling samples in batches.PUT /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/samp", + "product_code":"modelarts", + "title":"Updating Labels of Team Labeling Samples in Batches", + "uri":"UpdateWorkforceTaskSamples.html", + "doc_type":"api", + "p_code":"56", + "code":"59" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"modelarts", + "title":"Labeling Team Management", + "uri":"workforce_management.html", + "doc_type":"api", + "p_code":"11", + "code":"60" + }, + { + "desc":"This API is used to query the labeling team list.GET /v2/{project_id}/workforcesNoneStatus code: 200Querying the Labeling Team ListStatus code: 200OKSee Error Codes.", + "product_code":"modelarts", + "title":"Querying the Labeling Team List", + "uri":"ListWorkforces.html", + "doc_type":"api", + "p_code":"60", + "code":"61" + }, + { + "desc":"This API is used to create a labeling team.POST /v2/{project_id}/workforcesStatus code: 201Creating a Labeling TeamStatus code: 201CreatedSee Error Codes.", + "product_code":"modelarts", + "title":"Creating a Labeling Team", + "uri":"CreateWorkforce.html", + "doc_type":"api", + "p_code":"60", + "code":"62" + }, + { + "desc":"This API is used to query the details about a labeling team.GET /v2/{project_id}/workforces/{workforce_id}NoneStatus code: 200Querying Details About a Labeling TeamStatus", + "product_code":"modelarts", + "title":"Querying Details About a Labeling Team", + "uri":"DescWorkforce.html", + "doc_type":"api", + "p_code":"60", + "code":"63" + }, + { + "desc":"This API is used to update a labeling team.PUT /v2/{project_id}/workforces/{workforce_id}NoneUpdating a Labeling TeamStatus code: 200OKSee Error Codes.", + "product_code":"modelarts", + "title":"Updating a Labeling Team", + "uri":"UpdateWorkforce.html", + "doc_type":"api", + "p_code":"60", + "code":"64" + }, + { + "desc":"This API is used to delete a labeling team.DELETE /v2/{project_id}/workforces/{workforce_id}NoneStatus code: 204Deleting a Labeling TeamStatus code: 204No ContentSee Erro", + "product_code":"modelarts", + "title":"Deleting a Labeling Team", + "uri":"DeleteWorkforce.html", + "doc_type":"api", + "p_code":"60", + "code":"65" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"modelarts", + "title":"Labeling Team Member Management", + "uri":"workforce_worker_management.html", + "doc_type":"api", + "p_code":"11", + "code":"66" + }, + { + "desc":"This API is used to send an email to a labeling team member.POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/notifyStatus code: 200Sending ", + "product_code":"modelarts", + "title":"Sending an Email to a Labeling Team Member", + "uri":"SendEmails.html", + "doc_type":"api", + "p_code":"66", + "code":"67" + }, + { + "desc":"This API is used to query the list of all labeling team members.GET /v2/{project_id}/workforces/workersNoneStatus code: 200Querying All Labeling Team AdministratorsStatus", + "product_code":"modelarts", + "title":"Querying the List of All Labeling Team Members", + "uri":"ListAllWorkers.html", + "doc_type":"api", + "p_code":"66", + "code":"68" + }, + { + "desc":"This API is used to query the list of labeling team members.GET /v2/{project_id}/workforces/{workforce_id}/workersNoneStatus code: 200Querying the List of Labeling Team M", + "product_code":"modelarts", + "title":"Querying the List of Labeling Team Members", + "uri":"ListWorkers.html", + "doc_type":"api", + "p_code":"66", + "code":"69" + }, + { + "desc":"This API is used to create a labeling team member.POST /v2/{project_id}/workforces/{workforce_id}/workersNoneCreating a Labeling Team MemberStatus code: 201CreatedSee Err", + "product_code":"modelarts", + "title":"Creating a Labeling Team Member", + "uri":"CreateWorker.html", + "doc_type":"api", + "p_code":"66", + "code":"70" + }, + { + "desc":"This API is used to delete labeling team members in batches.POST /v2/{project_id}/workforces/{workforce_id}/workers/batch-deleteStatus code: 200Deleting Labeling Team Mem", + "product_code":"modelarts", + "title":"Deleting Labeling Team Members in Batches", + "uri":"DeleteWorkers.html", + "doc_type":"api", + "p_code":"66", + "code":"71" + }, + { + "desc":"This API is used to query details about labeling team members.GET /v2/{project_id}/workforces/{workforce_id}/workers/{worker_id}NoneStatus code: 200Querying Details About", + "product_code":"modelarts", + "title":"Querying Details About Labeling Team Members", + "uri":"DescWorker.html", + "doc_type":"api", + "p_code":"66", + "code":"72" + }, + { + "desc":"This API is used to update a labeling team member.PUT /v2/{project_id}/workforces/{workforce_id}/workers/{worker_id}NoneUpdating a Labeling Team MemberStatus code: 200OKS", + "product_code":"modelarts", + "title":"Updating a Labeling Team Member", + "uri":"UpdateWorker.html", + "doc_type":"api", + "p_code":"66", + "code":"73" + }, + { + "desc":"This API is used to delete a labeling team member.DELETE /v2/{project_id}/workforces/{workforce_id}/workers/{worker_id}NoneNoneDeleting a Labeling Team MemberStatus code:", + "product_code":"modelarts", + "title":"Deleting a Labeling Team Member", + "uri":"DeleteWorker.html", + "doc_type":"api", + "p_code":"66", + "code":"74" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -366,7 +672,7 @@ "uri":"data_import.html", "doc_type":"api", "p_code":"11", - "code":"41" + "code":"75" }, { "desc":"This API is used to query the dataset import task list by page.GET /v2/{project_id}/datasets/{dataset_id}/import-tasksNoneStatus code: 200Obtaining the Dataset Import Tas", @@ -374,8 +680,8 @@ "title":"Querying the Dataset Import Task List", "uri":"ListImportTasks.html", "doc_type":"api", - "p_code":"41", - "code":"42" + "p_code":"75", + "code":"76" }, { "desc":"This API is used to create a dataset import task to import samples and labels from the storage system to the dataset.POST /v2/{project_id}/datasets/{dataset_id}/import-ta", @@ -383,8 +689,8 @@ "title":"Creating an Import Task", "uri":"ImportTask.html", "doc_type":"api", - "p_code":"41", - "code":"43" + "p_code":"75", + "code":"77" }, { "desc":"This API is used to query details about a dataset import task.GET /v2/{project_id}/datasets/{dataset_id}/import-tasks/{task_id}NoneStatus code: 200Querying Details About ", @@ -392,8 +698,8 @@ "title":"Querying Details About a Dataset Import Task", "uri":"DescImportTask.html", "doc_type":"api", - "p_code":"41", - "code":"44" + "p_code":"75", + "code":"78" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -402,7 +708,7 @@ "uri":"data_export.html", "doc_type":"api", "p_code":"11", - "code":"45" + "code":"79" }, { "desc":"This API is used to query the dataset export task list by page.GET /v2/{project_id}/datasets/{dataset_id}/export-tasksNoneStatus code: 200Querying the Export Task List by", @@ -410,8 +716,8 @@ "title":"Querying the Dataset Export Task List", "uri":"GetExportTasksStatusOfDataset.html", "doc_type":"api", - "p_code":"45", - "code":"46" + "p_code":"79", + "code":"80" }, { "desc":"This API is used to create a dataset export task to export a dataset to OBS or new datasets.POST /v2/{project_id}/datasets/{dataset_id}/export-tasksStatus code: 200Creati", @@ -419,8 +725,8 @@ "title":"Creating a Dataset Export Task", "uri":"ExportTask.html", "doc_type":"api", - "p_code":"45", - "code":"47" + "p_code":"79", + "code":"81" }, { "desc":"This API is used to query the status of a dataset export task.GET /v2/{project_id}/datasets/{resource_id}/export-tasks/{task_id}NoneStatus code: 200Querying the Status of", @@ -428,8 +734,8 @@ "title":"Querying the Status of a Dataset Export Task", "uri":"GetExportTaskStatusOfDataset.html", "doc_type":"api", - "p_code":"45", - "code":"48" + "p_code":"79", + "code":"82" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -438,7 +744,7 @@ "uri":"data_sync.html", "doc_type":"api", "p_code":"11", - "code":"49" + "code":"83" }, { "desc":"This API is used to synchronize samples and labeling information from the input dataset path to the dataset.POST /v2/{project_id}/datasets/{dataset_id}/sync-dataNoneNoneS", @@ -446,8 +752,8 @@ "title":"Synchronizing a Dataset", "uri":"SyncDataSource.html", "doc_type":"api", - "p_code":"49", - "code":"50" + "p_code":"83", + "code":"84" }, { "desc":"This API is used to query the status of a dataset synchronization task.GET /v2/{project_id}/datasets/{dataset_id}/sync-data/statusNoneStatus code: 200Obtaining the Status", @@ -455,17 +761,377 @@ "title":"Querying the Status of a Dataset Synchronization Task", "uri":"SyncDataSourceState.html", "doc_type":"api", - "p_code":"49", - "code":"51" + "p_code":"83", + "code":"85" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"modelarts", - "title":"DevEnviron", + "title":"Intelligent Task", + "uri":"auto_task.html", + "doc_type":"api", + "p_code":"11", + "code":"86" + }, + { + "desc":"This API is used to query auto labeling samples in a dataset.GET /v2/{project_id}/datasets/{dataset_id}/auto-annotations/samplesNoneStatus code: 200Querying Auto Labeling", + "product_code":"modelarts", + "title":"Querying Auto Labeling Sample List", + "uri":"ListAutoAnnotationSamples.html", + "doc_type":"api", + "p_code":"86", + "code":"87" + }, + { + "desc":"This API is used to query details about an auto labeling sample.GET /v2/{project_id}/datasets/{dataset_id}/auto-annotations/samples/{sample_id}NoneStatus code: 200Queryin", + "product_code":"modelarts", + "title":"Querying Details About an Auto Labeling Sample", + "uri":"DescribeAutoAnnotationSample.html", + "doc_type":"api", + "p_code":"86", + "code":"88" + }, + { + "desc":"This API is used to query the intelligent task list by page, including auto labeling and auto grouping tasks. You can specify the type parameter to query the list of a sp", + "product_code":"modelarts", + "title":"Querying the Intelligent Task List by Page", + "uri":"ListTasks.html", + "doc_type":"api", + "p_code":"86", + "code":"89" + }, + { + "desc":"This API is used to start an intelligent task, which can be an auto labeling task or an auto grouping task. You can specify task_type in the request body to start a type ", + "product_code":"modelarts", + "title":"Starting Intelligent Tasks", + "uri":"CreateTask.html", + "doc_type":"api", + "p_code":"86", + "code":"90" + }, + { + "desc":"This API is used to obtain information about intelligent tasks, including auto labeling, one-click model deployment, and auto grouping tasks. You can specify the task_id ", + "product_code":"modelarts", + "title":"Obtaining Information About Intelligent Tasks", + "uri":"AutoAnnotationProgress.html", + "doc_type":"api", + "p_code":"86", + "code":"91" + }, + { + "desc":"This API is used to stop intelligent tasks, including auto labeling, one-click model deployment, and auto grouping tasks. You can specify the task_id parameter to stop a ", + "product_code":"modelarts", + "title":"Stopping an Intelligent Task", + "uri":"StopAutoAnnotation.html", + "doc_type":"api", + "p_code":"86", + "code":"92" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"modelarts", + "title":"Processing Task", + "uri":"process_task.html", + "doc_type":"api", + "p_code":"11", + "code":"93" + }, + { + "desc":"This API is used to query the list of a processing task. You can specify the task_type parameter to query the list of a specific type of tasks.- Data processing refers to", + "product_code":"modelarts", + "title":"Querying the List of a Processing Task", + "uri":"ListProcessorTasks.html", + "doc_type":"api", + "p_code":"93", + "code":"94" + }, + { + "desc":"This API is used to create a processing task. You can create data processing tasks. You can specify the id field of template composite parameter in the request body to cr", + "product_code":"modelarts", + "title":"Creating a Processing Task", + "uri":"CreateProcessorTask.html", + "doc_type":"api", + "p_code":"93", + "code":"95" + }, + { + "desc":"This API is used to query the algorithm type for data processing.GET /v2/{project_id}/processor-tasks/itemsNoneStatus code: 200Querying the List of the Algorithm Type for", + "product_code":"modelarts", + "title":"Querying the Algorithm Type for Data Processing", + "uri":"GetProcessorTaskItems.html", + "doc_type":"api", + "p_code":"93", + "code":"96" + }, + { + "desc":"This API is used to query the details about processing tasks. You can query feature analysis tasks and data processing tasks. You can specify the task_id parameter to que", + "product_code":"modelarts", + "title":"Querying Details About a Processing Task", + "uri":"DescribeProcessorTask.html", + "doc_type":"api", + "p_code":"93", + "code":"97" + }, + { + "desc":"This API is used to update a processing task. You can update feature analysis tasks and data processing tasks. Only the description of updated tasks is supported. You can", + "product_code":"modelarts", + "title":"Updating a Processing Task", + "uri":"UpdateProcessorTask.html", + "doc_type":"api", + "p_code":"93", + "code":"98" + }, + { + "desc":"This API is used to delete a processing task. You can delete feature analysis tasks and data processing tasks. A specific task can be deleted by specifying the task_id pa", + "product_code":"modelarts", + "title":"Deleting a Processing Task", + "uri":"DeleteProcessorTask.html", + "doc_type":"api", + "p_code":"93", + "code":"99" + }, + { + "desc":"This API is used to query the version list of a data processing task.GET /v2/{project_id}/processor-tasks/{task_id}/versionsNoneStatus code: 200Querying the Version List ", + "product_code":"modelarts", + "title":"Querying the Version List of a Data Processing Task", + "uri":"ListProcessorTaskVersions.html", + "doc_type":"api", + "p_code":"93", + "code":"100" + }, + { + "desc":"This API is used to create a data processing task version.POST /v2/{project_id}/processor-tasks/{task_id}/versionsStatus code: 200Creating a Data Validation Task VersionS", + "product_code":"modelarts", + "title":"Creating a Data Processing Task Version", + "uri":"CreateProcessorTaskVersion.html", + "doc_type":"api", + "p_code":"93", + "code":"101" + }, + { + "desc":"This API is used to query the details about the version of a data processing task.GET /v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}NoneStatus code: 200", + "product_code":"modelarts", + "title":"Querying the Details About the Version of a Data Processing Task", + "uri":"DescProcessorTaskVersion.html", + "doc_type":"api", + "p_code":"93", + "code":"102" + }, + { + "desc":"This API is used to delete a data processing task version.DELETE /v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}NoneNoneDeleting a Data Processing Task V", + "product_code":"modelarts", + "title":"Deleting a Data Processing Task Version", + "uri":"DeleteProcessorTaskVersion.html", + "doc_type":"api", + "p_code":"93", + "code":"103" + }, + { + "desc":"This API is used to query the result of a data processing task version.GET /v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}/resultsNoneStatus code: 200Que", + "product_code":"modelarts", + "title":"Querying the Result of a Data Processing Task Version", + "uri":"ListProcessorTaskVersionResults.html", + "doc_type":"api", + "p_code":"93", + "code":"104" + }, + { + "desc":"This API is used to stop the version of a data processing task.POST /v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}/stopNoneNoneThis API is used to stop ", + "product_code":"modelarts", + "title":"Stopping the Version of a Data Processing Task", + "uri":"StopProcessorTaskVersion.html", + "doc_type":"api", + "p_code":"93", + "code":"105" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"modelarts", + "title":"DevEnviron (New Version)", + "uri":"modelarts_03_0107.html", + "doc_type":"api", + "p_code":"", + "code":"106" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"modelarts", + "title":"DevEnviron Instance Management", + "uri":"notebook.html", + "doc_type":"api", + "p_code":"106", + "code":"107" + }, + { + "desc":"This API is used to query all images by page based on specified conditions.NoneGET /v1/{project_id}/imagesNoneStatus code: 200NoneStatus code: 200OKSee Error Codes.", + "product_code":"modelarts", + "title":"Querying Supported Images", + "uri":"ListImage.html", + "doc_type":"api", + "p_code":"107", + "code":"108" + }, + { + "desc":"This API is used to query notebook instances based on specified search criteria.NoneGET /v1/{project_id}/notebooksNoneStatus code: 200NoneStatus code: 200OKSee Error Code", + "product_code":"modelarts", + "title":"Querying Notebook Instances", + "uri":"ListNotebooks.html", + "doc_type":"api", + "p_code":"107", + "code":"109" + }, + { + "desc":"This API is used to create a notebook instance based on the specified flavor, AI engine images, and storage. You can access the instance through a web page or SSH client.", + "product_code":"modelarts", + "title":"Creating a Notebook Instance", + "uri":"CreateNotebook.html", + "doc_type":"api", + "p_code":"107", + "code":"110" + }, + { + "desc":"This API is used to open a free CodeLab instance. After opening it, you can switch to another instance as required.NonePOST /v1/{project_id}/notebooks/openStatus code: 20", + "product_code":"modelarts", + "title":"Opening a CodeLab Instance", + "uri":"RunCodeLab.html", + "doc_type":"api", + "p_code":"107", + "code":"111" + }, + { + "desc":"This API is used to query details about a notebook instance, including its ID, name, flavor, image, status, and accessible URLs.NoneGET /v1/{project_id}/notebooks/{id}Non", + "product_code":"modelarts", + "title":"Querying Details of a Notebook Instance", + "uri":"ShowNotebook.html", + "doc_type":"api", + "p_code":"107", + "code":"112" + }, + { + "desc":"This API is used to update the name, description, flavor, and image ID of a stopped notebook instance.NonePUT /v1/{project_id}/notebooks/{id}Status code: 200Status code: ", + "product_code":"modelarts", + "title":"Updating a Notebook Instance", + "uri":"UpdateNotebook.html", + "doc_type":"api", + "p_code":"107", + "code":"113" + }, + { + "desc":"This API is used to delete the container and all storage resources of a notebook instance.NoneDELETE /v1/{project_id}/notebooks/{id}NoneStatus code: 200NoneStatus code: 2", + "product_code":"modelarts", + "title":"Deleting a Notebook Instance", + "uri":"DeleteNotebook.html", + "doc_type":"api", + "p_code":"107", + "code":"114" + }, + { + "desc":"This API is used to query the flavors available for a notebook instance.NoneGET /v1/{project_id}/notebooks/{id}/flavorsNoneStatus code: 200NoneStatus code: 200OKSee Error", + "product_code":"modelarts", + "title":"Querying Flavors Available for a Notebook Instance", + "uri":"ShowSwitchableFlavors.html", + "doc_type":"api", + "p_code":"107", + "code":"115" + }, + { + "desc":"This API is used to query the available duration of a running notebook instance.NoneGET /v1/{project_id}/notebooks/{id}/leaseNoneStatus code: 200NoneStatus code: 200OKSee", + "product_code":"modelarts", + "title":"Querying the Available Duration of a Running Notebook Instance", + "uri":"ShowLease.html", + "doc_type":"api", + "p_code":"107", + "code":"116" + }, + { + "desc":"This API is used to prolong a notebook instance.NonePATCH /v1/{project_id}/notebooks/{id}/leaseNoneStatus code: 200NoneStatus code: 200OKSee Error Codes.", + "product_code":"modelarts", + "title":"Prolonging a Notebook Instance", + "uri":"RenewLease.html", + "doc_type":"api", + "p_code":"107", + "code":"117" + }, + { + "desc":"This API is used to start a notebook instance.NonePOST /v1/{project_id}/notebooks/{id}/startStatus code: 200NoneStatus code: 200OKSee Error Codes.", + "product_code":"modelarts", + "title":"Starting a Notebook Instance", + "uri":"StartNotebook.html", + "doc_type":"api", + "p_code":"107", + "code":"118" + }, + { + "desc":"This API is used to stop a notebook instance.NonePOST /v1/{project_id}/notebooks/{id}/stopNoneStatus code: 200NoneStatus code: 200OKSee Error Codes.", + "product_code":"modelarts", + "title":"Stopping a Notebook Instance", + "uri":"StopNotebook.html", + "doc_type":"api", + "p_code":"107", + "code":"119" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"modelarts", + "title":"OBS Storage Mounting", + "uri":"storage.html", + "doc_type":"api", + "p_code":"106", + "code":"120" + }, + { + "desc":"This API is used to obtain the notebook instances with OBS storage mounted.NoneGET /v1/{project_id}/notebooks/{instance_id}/storageNoneStatus code: 200NoneStatus code: 20", + "product_code":"modelarts", + "title":"Obtaining the Notebook Instances with OBS Storage Mounted", + "uri":"ListDynamicMount.html", + "doc_type":"api", + "p_code":"120", + "code":"121" + }, + { + "desc":"This API is used to mount OBS storage to a running notebook instance so that the application layer can operate OBS parallel file system in the container.NonePOST /v1/{pro", + "product_code":"modelarts", + "title":"OBS Storage Mounting", + "uri":"AttachObs.html", + "doc_type":"api", + "p_code":"120", + "code":"122" + }, + { + "desc":"This API is used to obtain details about a notebook instance with OBS storage mounted.NoneGET /v1/{project_id}/notebooks/{instance_id}/storage/{storage_id}NoneStatus code", + "product_code":"modelarts", + "title":"Obtaining Details About a Notebook Instance with OBS Storage Mounted", + "uri":"ShowAttachableObs.html", + "doc_type":"api", + "p_code":"120", + "code":"123" + }, + { + "desc":"This API is used to unmount OBS storage from a notebook instance. After OBS storage is unmounted, OBS objects remain unchanged but cannot be operated in the notebook cont", + "product_code":"modelarts", + "title":"Unmounting OBS Storage from a Notebook Instance", + "uri":"CancelObs.html", + "doc_type":"api", + "p_code":"120", + "code":"124" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"modelarts", + "title":"DevEnviron (Old Version)", "uri":"modelarts_03_0108.html", "doc_type":"api", "p_code":"", - "code":"52" + "code":"125" + }, + { + "desc":"This API is used to query the authentication information of a development environment instance, which is used to open the development environment instance.GET /v1/{projec", + "product_code":"modelarts", + "title":"Querying the Authentication Information of a Development Environment Instance", + "uri":"modelarts_03_0109.html", + "doc_type":"api", + "p_code":"125", + "code":"126" }, { "desc":"This API is used to create a development environment instance for code development.Calling this API is an asynchronous operation. The job status can be obtained by callin", @@ -473,8 +1139,8 @@ "title":"Creating a Development Environment Instance", "uri":"modelarts_03_0110.html", "doc_type":"api", - "p_code":"52", - "code":"53" + "p_code":"125", + "code":"127" }, { "desc":"This API is used to query the development environment instances that meet the search criteria.GET /v1/{project_id}/demanager/instances?de_type={de_type}&provision_type={p", @@ -482,8 +1148,8 @@ "title":"Querying a List of Development Environment Instances", "uri":"modelarts_03_0111.html", "doc_type":"api", - "p_code":"52", - "code":"54" + "p_code":"125", + "code":"128" }, { "desc":"This API is used to query the details about a development environment instance.GET /v1/{project_id}/demanager/instances/{instance_id}Table 1 describes the required parame", @@ -491,8 +1157,8 @@ "title":"Querying Details About a Development Environment Instance", "uri":"modelarts_03_0112.html", "doc_type":"api", - "p_code":"52", - "code":"55" + "p_code":"125", + "code":"129" }, { "desc":"This API is used to modify the description of a development environment instance or information about the auto stop function.PUT /v1/{project_id}/demanager/instances/{ins", @@ -500,8 +1166,8 @@ "title":"Modifying the Description of a Development Environment Instance", "uri":"modelarts_03_0113.html", "doc_type":"api", - "p_code":"52", - "code":"56" + "p_code":"125", + "code":"130" }, { "desc":"This API is used to delete a development environment instance.DELETE /v1/{project_id}/demanager/instances/{instance_id}Table 1 describes the required parameters.Parameter", @@ -509,8 +1175,8 @@ "title":"Deleting a Development Environment Instance", "uri":"modelarts_03_0114.html", "doc_type":"api", - "p_code":"52", - "code":"57" + "p_code":"125", + "code":"131" }, { "desc":"This API is used to startor stop a notebook instance.POST /v1/{project_id}/demanager/instances/{instance_id}/actionTable 1 describes the required parameters.ParametersPar", @@ -518,305 +1184,269 @@ "title":"Managing a Development Environment Instance", "uri":"modelarts_03_0115.html", "doc_type":"api", - "p_code":"52", - "code":"58" + "p_code":"125", + "code":"132" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"modelarts", - "title":"Training Management", - "uri":"modelarts_03_0043.html", + "title":"Training Management (New Version)", + "uri":"modelarts_03_0119.html", "doc_type":"api", "p_code":"", - "code":"59" + "code":"133" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"modelarts", - "title":"Training Jobs", - "uri":"modelarts_03_0044.html", + "title":"Algorithm Management", + "uri":"algorithms.html", "doc_type":"api", - "p_code":"59", - "code":"60" + "p_code":"133", + "code":"134" }, { - "desc":"This API is used to create a training job.Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Querying a Traini", + "desc":"This API is used to create an algorithm.POST /v2/{project_id}/algorithmsStatus code: 201The following shows how to create an algorithm whose name is TestModelArtsalgorith", + "product_code":"modelarts", + "title":"Creating an Algorithm", + "uri":"CreateAlgorithm.html", + "doc_type":"api", + "p_code":"134", + "code":"135" + }, + { + "desc":"This API is used to query the algorithm list.GET /v2/{project_id}/algorithmsNoneStatus code: 200The following shows how to query all algorithms in jobs whose names contai", + "product_code":"modelarts", + "title":"Querying the Algorithm List", + "uri":"ListAlgorithms.html", + "doc_type":"api", + "p_code":"134", + "code":"136" + }, + { + "desc":"This API is used to query a specified algorithm based on the algorithm ID.GET /v2/{project_id}/algorithms/{algorithm_id}NoneStatus code: 200The following shows how to que", + "product_code":"modelarts", + "title":"Querying Algorithm Details", + "uri":"ShowAlgorithmByUuid.html", + "doc_type":"api", + "p_code":"134", + "code":"137" + }, + { + "desc":"This API is used to modify an algorithm.PUT /v2/{project_id}/algorithms/{algorithm_id}Status code: 201The following shows how to modify the algorithm whose UUID is 2e5451", + "product_code":"modelarts", + "title":"Modifying an Algorithm", + "uri":"ChangeAlgorithm.html", + "doc_type":"api", + "p_code":"134", + "code":"138" + }, + { + "desc":"This API is used to delete an algorithm.DELETE /v2/{project_id}/algorithms/{algorithm_id}NoneNoneThe following shows how to modify the algorithm whose UUID is 2e5451fe-91", + "product_code":"modelarts", + "title":"Deleting an Algorithm", + "uri":"DeleteAlgorithm.html", + "doc_type":"api", + "p_code":"134", + "code":"139" + }, + { + "desc":"This API is used tp query the hyperparameter search algorithm list.GET /v2/{project_id}/search-algorithmsNoneStatus code: 200The following shows how to query information ", + "product_code":"modelarts", + "title":"Querying the Hyperparameter Search Algorithm List", + "uri":"ListSearchAlgorithms.html", + "doc_type":"api", + "p_code":"134", + "code":"140" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"modelarts", + "title":"Training Job Management", + "uri":"trainingJobs.html", + "doc_type":"api", + "p_code":"133", + "code":"141" + }, + { + "desc":"This API is used to create a training job.POST /v2/{project_id}/training-jobsStatus code: 201The following shows how to create a training job named TestModelArtsJob. The ", "product_code":"modelarts", "title":"Creating a Training Job", - "uri":"modelarts_03_0045.html", + "uri":"CreateTrainingJob.html", "doc_type":"api", - "p_code":"60", - "code":"61" + "p_code":"141", + "code":"142" }, { - "desc":"This API is used to query the created training jobs that meet the search criteria.GET /v1/{project_id}/training-jobsTable 1 describes the required parameters.URI paramete", + "desc":"This API is used to query the details about a training job.GET /v2/{project_id}/training-jobs/{training_job_id}NoneStatus code: 200The following shows how to query a trai", "product_code":"modelarts", - "title":"Querying a Training Job List", - "uri":"modelarts_03_0046.html", + "title":"Querying the Details About a Training Job", + "uri":"ShowTrainingJobInfomation.html", "doc_type":"api", - "p_code":"60", - "code":"62" + "p_code":"141", + "code":"143" }, { - "desc":"This API is used to query the details about a specified training job based on the job ID.GET /v1/{project_id}/training-jobs/{job_id}/versions/{version_id}Table 1 describe", - "product_code":"modelarts", - "title":"Querying the Details About a Training Job Version", - "uri":"modelarts_03_0047.html", - "doc_type":"api", - "p_code":"60", - "code":"63" - }, - { - "desc":"This API is used to delete a version of a training job.Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Quer", - "product_code":"modelarts", - "title":"Deleting a Version of a Training Job", - "uri":"modelarts_03_0048.html", - "doc_type":"api", - "p_code":"60", - "code":"64" - }, - { - "desc":"This API is used to query the version of a specified training job based on the job ID.GET /v1/{project_id}/training-jobs/{job_id}/versionsTable 1 describes the required p", - "product_code":"modelarts", - "title":"Querying a List of Training Job Versions", - "uri":"modelarts_03_0049.html", - "doc_type":"api", - "p_code":"60", - "code":"65" - }, - { - "desc":"This API is used to create a version of a training job.Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Quer", - "product_code":"modelarts", - "title":"Creating a Version of a Training Job", - "uri":"modelarts_03_0050.html", - "doc_type":"api", - "p_code":"60", - "code":"66" - }, - { - "desc":"This API is used to stop a training job.Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Querying a Training", - "product_code":"modelarts", - "title":"Stopping a Training Job", - "uri":"modelarts_03_0051.html", - "doc_type":"api", - "p_code":"60", - "code":"67" - }, - { - "desc":"This API is used to modify the description of a training job.PUT /v1/{project_id}/training-jobs/{job_id}Table 1 describes the required parameters.ParametersParameterManda", + "desc":"This API is used to modify the description of a training job.PUT /v2/{project_id}/training-jobs/{training_job_id}NoneThe following shows how to modify a training job whos", "product_code":"modelarts", "title":"Modifying the Description of a Training Job", - "uri":"modelarts_03_0052.html", + "uri":"ChangeTrainingJobDescription.html", "doc_type":"api", - "p_code":"60", - "code":"68" + "p_code":"141", + "code":"144" }, { - "desc":"This API is used to delete a training job.Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Querying a Traini", + "desc":"This API is used to delete a training job.DELETE /v2/{project_id}/training-jobs/{training_job_id}NoneNoneThe following shows how to delete a training job whose UUID is 3f", "product_code":"modelarts", "title":"Deleting a Training Job", - "uri":"modelarts_03_0053.html", + "uri":"DeleteTrainingJob.html", "doc_type":"api", - "p_code":"60", - "code":"69" + "p_code":"141", + "code":"145" }, { - "desc":"This API is used to obtain the name of a training job log file.GET /v1/{project_id}/training-jobs/{job_id}/versions/{version_id}/log/file-namesTable 1 describes the requi", + "desc":"This API is used to terminate a training job. Only jobs in the Creating, Waiting, or Running state can be terminated.POST /v2/{project_id}/training-jobs/{training_job_id}", "product_code":"modelarts", - "title":"Obtaining the Name of a Training Job Log File", - "uri":"modelarts_03_0054.html", + "title":"Terminating a Training Job", + "uri":"StopTrainingJob.html", "doc_type":"api", - "p_code":"60", - "code":"70" + "p_code":"141", + "code":"146" }, { - "desc":"This API is used to query the details about a built-in model.GET /v1/{project_id}/built-in-algorithmsTable 1 describes the required parameters.ParametersParameterMandator", + "desc":"This API is used to query the logs of a specified task in a given training job (preview).GET /v2/{project_id}/training-jobs/{training_job_id}/tasks/{task_id}/logs/preview", "product_code":"modelarts", - "title":"Querying a Built-in Algorithm", - "uri":"modelarts_03_0056.html", + "title":"Querying the Logs of a Specified Task in a Given Training Job (Preview)", + "uri":"ShowTrainingJobLogsPreview.html", "doc_type":"api", - "p_code":"60", - "code":"71" + "p_code":"141", + "code":"147" }, { - "desc":"This API is used to query detailed information about training job logs by row.GET /v1/{project_id}/training-jobs/{job_id}/versions/{version_id}/aom-logTable 1 describes t", + "desc":"This API is used to query the logs of a specified task in a given training job (OBS URL). You can view or download all logs.GET /v2/{project_id}/training-jobs/{training_j", "product_code":"modelarts", - "title":"Querying Training Job Logs", - "uri":"modelarts_03_0149.html", + "title":"Querying the Logs of a Specified Taks in a Given Training Job (OBS URL)", + "uri":"ShowTrainingJobLogsFromObs.html", "doc_type":"api", - "p_code":"60", - "code":"72" + "p_code":"141", + "code":"148" }, { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "desc":"This API is used to query the running metrics of a specified task in a training job.GET /v2/{project_id}/training-jobs/{training_job_id}/metrics/{task_id}NoneStatus code:", "product_code":"modelarts", - "title":"Training Job Parameter Configuration", - "uri":"modelarts_03_0057.html", + "title":"Querying the Running Metrics of a Specified Task in a Training Job", + "uri":"ShowTrainingJobMetrics.html", "doc_type":"api", - "p_code":"59", - "code":"73" + "p_code":"141", + "code":"149" }, { - "desc":"This API is used to create a training job configuration.POST /v1/{project_id}/training-job-configsTable 1 describes the required parameters.ParametersParameterMandatoryTy", + "desc":"This API is used to query the the created training jobs that meet the search criteria.POST /v2/{project_id}/training-job-searchesStatus code: 200The following shows how t", "product_code":"modelarts", - "title":"Creating a Training Job Configuration", - "uri":"modelarts_03_0058.html", + "title":"Querying a Training Job List", + "uri":"ListTrainingJobs.html", "doc_type":"api", - "p_code":"73", - "code":"74" + "p_code":"141", + "code":"150" }, { - "desc":"This API is used to query the created training job configurations that meet the search criteria.GET /v1/{project_id}/training-job-configsTable 1 describes the required pa", + "desc":"This API is used to query all trails using hyperparameter search.GET /v2/{project_id}/training-jobs/{training_job_id}/autosearch-trialsNoneStatus code: 200The following s", "product_code":"modelarts", - "title":"Querying a List of Training Job Configurations", - "uri":"modelarts_03_0059.html", + "title":"Querying All Trials Using Hyperparameter Search", + "uri":"ShowAutoSearchTrials.html", "doc_type":"api", - "p_code":"73", - "code":"75" + "p_code":"141", + "code":"151" }, { - "desc":"This API is used to modify a training job configuration.PUT /v1/{project_id}/training-job-configs/{config_name}Table 1 describes the required parameters.ParametersParamet", + "desc":"This API is used to query information about a trial using hyperparameter search based on the trial_id.GET /v2/{project_id}/training-jobs/{training_job_id}/autosearch-tria", "product_code":"modelarts", - "title":"Modifying a Training Job Configuration", - "uri":"modelarts_03_0060.html", + "title":"Querying Information About a Trial Using Hyperparameter Search", + "uri":"ShowAutoSearchPerTrial.html", "doc_type":"api", - "p_code":"73", - "code":"76" + "p_code":"141", + "code":"152" }, { - "desc":"This API is used to delete a training job configuration.DELETE /v1/{project_id}/training-job-configs/{config_name}Table 1 describes the required parameters.Parameter desc", + "desc":"This API is used to obtain the summary of hyperparameter sensitivity analysis results.GET /v2/{project_id}/training-jobs/{training_job_id}/autosearch-parameter-analysisNo", "product_code":"modelarts", - "title":"Deleting a Training Job Configuration", - "uri":"modelarts_03_0061.html", + "title":"Obtaining the Hyperparameter Sensitivity Analysis Result", + "uri":"ShowAutoSearchParamsAnalysis.html", "doc_type":"api", - "p_code":"73", - "code":"77" + "p_code":"141", + "code":"153" }, { - "desc":"This API is used to query the details about a specified training job configuration.GET /v1/{project_id}/training-job-configs/{config_name}Table 1 describes the required p", + "desc":"This API is used to obtain the path for storing a hyperparameter sensitivity analysis image.GET /v2/{project_id}/training-jobs/{training_job_id}/autosearch-parameter-anal", "product_code":"modelarts", - "title":"Querying the Details About a Training Job Configuration", - "uri":"modelarts_03_0062.html", + "title":"Obtaining the Path for Storing a Hyperparameter Sensitivity Analysis Image", + "uri":"ShowAutoSearchParamAnalysisResultPath.html", "doc_type":"api", - "p_code":"73", - "code":"78" + "p_code":"141", + "code":"154" }, { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "desc":"This API is used to early stop a trial of an auto search job.POST /v2/{project_id}/training-jobs/{training_job_id}/autosearch-trial-earlystop/{trial_id}NoneStatus code: 2", "product_code":"modelarts", - "title":"Visualization Jobs", - "uri":"modelarts_03_0063.html", + "title":"Early Stopping a Trial of an Auto Search Job", + "uri":"ShowAutoSearchTrialEarlyStop.html", "doc_type":"api", - "p_code":"59", - "code":"79" + "p_code":"141", + "code":"155" }, { - "desc":"This API is used to create a visualization job.Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Querying a V", + "desc":"This API is used to obtain information about the YAML template of an auto search job.GET /v2/{project_id}/training-jobs/autosearch/yaml-templatesNoneStatus code: 200The f", "product_code":"modelarts", - "title":"Creating a Visualization Job", - "uri":"modelarts_03_0064.html", + "title":"Obtaining Information About the YAML Template of an Auto Search Job", + "uri":"ShowAutoSearchYamlTemplatesInfo.html", "doc_type":"api", - "p_code":"79", - "code":"80" + "p_code":"141", + "code":"156" }, { - "desc":"This API is used to query the visualization jobs that meet the search criteria.GET /v1/{project_id}/visualization-jobsTable 1 describes the required parameters.Parameters", + "desc":"This API is used to obtain the content of the YAML template of an auto search job.GET /v2/{project_id}/training-jobs/autosearch/yaml-templates/{algorithm_type}/{algorithm", "product_code":"modelarts", - "title":"Querying a Visualization Job List", - "uri":"modelarts_03_0065.html", + "title":"Obtaining the Content of the YAML Template of an Auto Search Job", + "uri":"ShowAutoSearchYamlTemplateContent.html", "doc_type":"api", - "p_code":"79", - "code":"81" - }, - { - "desc":"This API is used to query the details about a specified visualization job based on the job name.GET /v1/{project_id}/visualization-jobs/{job_id}Table 1 describes the requ", - "product_code":"modelarts", - "title":"Querying the Details About a Visualization Job", - "uri":"modelarts_03_0066.html", - "doc_type":"api", - "p_code":"79", - "code":"82" - }, - { - "desc":"This API is used to modify the description of a visualization job.PUT /v1/{project_id}/visualization-jobs/{job_id}Table 1 describes the required parameters.ParametersPara", - "product_code":"modelarts", - "title":"Modifying the Description of a Visualization Job", - "uri":"modelarts_03_0067.html", - "doc_type":"api", - "p_code":"79", - "code":"83" - }, - { - "desc":"This API is used to delete a visualization job. Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Querying a ", - "product_code":"modelarts", - "title":"Deleting a Visualization Job", - "uri":"modelarts_03_0068.html", - "doc_type":"api", - "p_code":"79", - "code":"84" - }, - { - "desc":"This API is used to stop a visualization job. Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Querying a Vi", - "product_code":"modelarts", - "title":"Stopping a Visualization Job", - "uri":"modelarts_03_0069.html", - "doc_type":"api", - "p_code":"79", - "code":"85" - }, - { - "desc":"This API is used to restart a visualization job. Calling this API is an asynchronous operation. The job status can be obtained by calling the APIs described in Querying a", - "product_code":"modelarts", - "title":"Restarting a Visualization Job", - "uri":"modelarts_03_0070.html", - "doc_type":"api", - "p_code":"79", - "code":"86" + "p_code":"141", + "code":"157" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"modelarts", "title":"Resource and Engine Specifications", - "uri":"modelarts_03_0071.html", + "uri":"resources.html", "doc_type":"api", - "p_code":"59", - "code":"87" + "p_code":"133", + "code":"158" }, { - "desc":"This API is used to query the resource specifications of a specified job.You must specify the resource specifications when creating a training job or an inference job.GET", + "desc":"This API is used to query the list of public flavors supported by a training job.GET /v2/{project_id}/training-job-flavorsNoneStatus code: 200The following shows how to q", "product_code":"modelarts", - "title":"Querying Job Resource Specifications", - "uri":"modelarts_03_0072.html", + "title":"Querying the Public Flavor List Supported by a Training Job", + "uri":"ListTrainingJobFlavors.html", "doc_type":"api", - "p_code":"87", - "code":"88" + "p_code":"158", + "code":"159" }, { - "desc":"This API is used to query the engine type and version of a specified job.You must specify the engine specifications when creating a training job or an inference job.GET /", + "desc":"This API is used to query the list of AI engines supported by a training job.GET /v2/{project_id}/training-job-enginesNoneStatus code: 200The following shows how to query", "product_code":"modelarts", - "title":"Querying Job Engine Specifications", - "uri":"modelarts_03_0073.html", + "title":"Querying the AI Engine List Supported by a Training Job", + "uri":"ListTrainingJobEngines.html", "doc_type":"api", - "p_code":"87", - "code":"89" - }, - { - "desc":"Table 1 describes the job statuses.", - "product_code":"modelarts", - "title":"Job Statuses", - "uri":"modelarts_03_0074.html", - "doc_type":"api", - "p_code":"59", - "code":"90" + "p_code":"158", + "code":"160" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"modelarts", "title":"Model Management", - "uri":"modelarts_03_0075.html", + "uri":"modelarts_03_0153.html", "doc_type":"api", "p_code":"", - "code":"91" + "code":"161" }, { "desc":"You can use the API to import a model.Ensure that the execution code and model have been uploaded to OBS. By default, the models generated by a training job are stored in", @@ -824,8 +1454,8 @@ "title":"Importing a Model", "uri":"modelarts_03_0076.html", "doc_type":"api", - "p_code":"91", - "code":"92" + "p_code":"161", + "code":"162" }, { "desc":"This API is used to query the models that meet the search criteria.GET /v1/{project_id}/modelsTable 1 describes the required parameters.ParametersParameterMandatoryTypeDe", @@ -833,8 +1463,8 @@ "title":"Querying a Model List", "uri":"modelarts_03_0077.html", "doc_type":"api", - "p_code":"91", - "code":"93" + "p_code":"161", + "code":"163" }, { "desc":"This API is used to query details about a model based on the model ID.GET /v1/{project_id}/models/{model_id}Table 1 describes the required parameters.ParametersParameterM", @@ -842,8 +1472,8 @@ "title":"Querying the Details About a Model", "uri":"modelarts_03_0078.html", "doc_type":"api", - "p_code":"91", - "code":"94" + "p_code":"161", + "code":"164" }, { "desc":"This API is used to delete a model based on the model ID. When cascade is set to true, the model specified by the model ID and models of different versions with the same ", @@ -851,8 +1481,8 @@ "title":"Deleting a Model", "uri":"modelarts_03_0079.html", "doc_type":"api", - "p_code":"91", - "code":"95" + "p_code":"161", + "code":"165" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -861,7 +1491,7 @@ "uri":"modelarts_03_0081.html", "doc_type":"api", "p_code":"", - "code":"96" + "code":"166" }, { "desc":"This API is used to deploy a model as a service.POST /v1/{project_id}/servicesTable 1 describes the required parameters.ParametersParameterMandatoryTypeDescriptionproject", @@ -869,8 +1499,8 @@ "title":"Deploying a Model as a Service", "uri":"modelarts_03_0082.html", "doc_type":"api", - "p_code":"96", - "code":"97" + "p_code":"166", + "code":"167" }, { "desc":"This API is used to obtain model services.GET /v1/{project_id}/servicesTable 1 describes the required parameters.ParametersParameterMandatoryTypeDescriptionproject_idYesS", @@ -878,8 +1508,8 @@ "title":"Querying a Service List", "uri":"modelarts_03_0083.html", "doc_type":"api", - "p_code":"96", - "code":"98" + "p_code":"166", + "code":"168" }, { "desc":"This API is used to query the details about a model service based on the service ID.GET /v1/{project_id}/services/{service_id}Table 1 describes the required parameters.Pa", @@ -887,8 +1517,8 @@ "title":"Querying the Details About a Service", "uri":"modelarts_03_0084.html", "doc_type":"api", - "p_code":"96", - "code":"99" + "p_code":"166", + "code":"169" }, { "desc":"This API is used to update configurations of a model service. It can also be used to start or stop a service.PUT /v1/{project_id}/services/{service_id}Table 1 describes t", @@ -896,8 +1526,8 @@ "title":"Updating Service Configurations", "uri":"modelarts_03_0086.html", "doc_type":"api", - "p_code":"96", - "code":"100" + "p_code":"166", + "code":"170" }, { "desc":"This API is used to query service monitoring information.GET /v1/{project_id}/services/{service_id}/monitorTable 1 describes the required parameters.ParametersParameterMa", @@ -905,8 +1535,8 @@ "title":"Querying Service Monitoring Information", "uri":"modelarts_03_0087.html", "doc_type":"api", - "p_code":"96", - "code":"101" + "p_code":"166", + "code":"171" }, { "desc":"This API is used to query the update logs of a real-time service.GET /v1/{project_id}/services/{service_id}/logsTable 1 describes the required parameters.ParametersParame", @@ -914,8 +1544,8 @@ "title":"Querying Service Update Logs", "uri":"modelarts_03_0088.html", "doc_type":"api", - "p_code":"96", - "code":"102" + "p_code":"166", + "code":"172" }, { "desc":"This API is used to query service event logs, including service operation records, key actions during deployment, and deployment failure causes.GET /v1/{project_id}/servi", @@ -923,17 +1553,17 @@ "title":"Querying Service Event Logs", "uri":"modelarts_03_0155.html", "doc_type":"api", - "p_code":"96", - "code":"103" + "p_code":"166", + "code":"173" }, { - "desc":"This API is used to delete a model service. You can delete your own services only.Table 1 describes the required parameters.ParametersParameterMandatoryTypeDescriptionpro", + "desc":"This API is used to delete a service. You can delete your own services only.Table 1 describes the required parameters.ParametersParameterMandatoryTypeDescriptionproject_i", "product_code":"modelarts", "title":"Deleting a Service", "uri":"modelarts_03_0089.html", "doc_type":"api", - "p_code":"96", - "code":"104" + "p_code":"166", + "code":"174" }, { "desc":"This API is used to query supported service deployment specifications.URIGET /v1/{project_id}/services/specificationsNoneSample requestGET https://endpoint/v1/{project", @@ -941,80 +1571,53 @@ "title":"Querying Supported Service Deployment Specifications", "uri":"modelarts_03_0200.html", "doc_type":"api", - "p_code":"96", - "code":"105" - }, - { - "desc":"This API is used to query dedicated resource pools.GET /v1/{project_id}/clustersParametersParameterMandatoryTypeDescriptionproject_idYesStringProject ID. For details abou", - "product_code":"modelarts", - "title":"Querying Dedicated Resource Pools", - "uri":"modelarts_03_0201.html", - "doc_type":"api", - "p_code":"96", - "code":"106" + "p_code":"166", + "code":"175" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"modelarts", "title":"Authorization Management", - "uri":"modelarts_03_0408.html", + "uri":"authorization.html", "doc_type":"api", "p_code":"", - "code":"107" + "code":"176" }, { "desc":"This API is used to configure ModelArts authorization. ModelArts functions such as training management, development environment, data management, and real-time services c", "product_code":"modelarts", "title":"Configuring Authorization", - "uri":"modelarts_03_0409.html", + "uri":"CreateAuthorization.html", "doc_type":"api", - "p_code":"107", - "code":"108" + "p_code":"176", + "code":"177" }, { "desc":"This API is used to view an authorization list.GET /v2/{project_id}/authorizationsNoneStatus code: 200View an authorization list.Status code: 200OKSee Error Codes.", "product_code":"modelarts", "title":"Viewing an Authorization List", - "uri":"modelarts_03_0410.html", + "uri":"GetAuthorizations.html", "doc_type":"api", - "p_code":"107", - "code":"109" + "p_code":"176", + "code":"178" }, { "desc":"This API is used to delete the authorization of a specified user or all users.DELETE /v2/{project_id}/authorizationsNoneNoneDelete the authorization of a specified user.S", "product_code":"modelarts", "title":"Deleting Authorization", - "uri":"modelarts_03_0411.html", + "uri":"DeleteAuthorizations.html", "doc_type":"api", - "p_code":"107", - "code":"110" + "p_code":"176", + "code":"179" }, { "desc":"This API is used to create a ModelArts agency for dependent services such as OBS, SWR, and IEF.POST /v2/{project_id}/agencyNoneCreate a ModelArts agency.Status code: 200O", "product_code":"modelarts", "title":"Creating a ModelArts Agency", - "uri":"modelarts_03_0412.html", + "uri":"CreateModelArtsAgency.html", "doc_type":"api", - "p_code":"107", - "code":"111" - }, - { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "product_code":"modelarts", - "title":"Application Cases", - "uri":"modelarts_03_0400.html", - "doc_type":"api", - "p_code":"", - "code":"112" - }, - { - "desc":"This section describes how to train a model on ModelArts by calling a series of APIs.The process for creating a training job using the TensorFlow framework is as follows:", - "product_code":"modelarts", - "title":"Creating a Training Job Using the TensorFlow Framework", - "uri":"modelarts_03_0401.html", - "doc_type":"api", - "p_code":"112", - "code":"113" + "p_code":"176", + "code":"180" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -1023,16 +1626,16 @@ "uri":"modelarts_03_0138.html", "doc_type":"api", "p_code":"", - "code":"114" + "code":"181" }, { - "desc":"This section describes fine-grained permissions management for your ModelArts. If your current account does not require individual IAM users, skip this section.By default", + "desc":"This section describes fine-grained permissions management for your ModelArts. If your account does not require individual IAM users, skip this section.By default, new IA", "product_code":"modelarts", "title":"Introduction", "uri":"modelarts_03_0146.html", "doc_type":"api", - "p_code":"114", - "code":"115" + "p_code":"181", + "code":"182" }, { "desc":"ExeML APIs are inaccessible to external systems. To use ExeML functions on the console and manage permissions, perform the operations described in the following table.", @@ -1040,8 +1643,8 @@ "title":"ExeML Permissions", "uri":"modelarts_03_0234.html", "doc_type":"api", - "p_code":"114", - "code":"116" + "p_code":"181", + "code":"183" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -1049,8 +1652,8 @@ "title":"Data Management Permissions", "uri":"modelarts_03_0161.html", "doc_type":"api", - "p_code":"114", - "code":"117" + "p_code":"181", + "code":"184" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -1058,8 +1661,8 @@ "title":"DevEnviron Permissions", "uri":"modelarts_03_0162.html", "doc_type":"api", - "p_code":"114", - "code":"118" + "p_code":"181", + "code":"185" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -1067,8 +1670,8 @@ "title":"Training Job Permissions", "uri":"modelarts_03_0163.html", "doc_type":"api", - "p_code":"114", - "code":"119" + "p_code":"181", + "code":"186" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -1076,8 +1679,8 @@ "title":"Model Management Permissions", "uri":"modelarts_03_0164.html", "doc_type":"api", - "p_code":"114", - "code":"120" + "p_code":"181", + "code":"187" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -1085,8 +1688,17 @@ "title":"Service Management Permissions", "uri":"modelarts_03_0165.html", "doc_type":"api", - "p_code":"114", - "code":"121" + "p_code":"181", + "code":"188" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"modelarts", + "title":"Workspace Management Permissions", + "uri":"modelarts_03_0166.html", + "doc_type":"api", + "p_code":"181", + "code":"189" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -1095,7 +1707,7 @@ "uri":"modelarts_03_0093.html", "doc_type":"api", "p_code":"", - "code":"122" + "code":"190" }, { "desc":"Table 1 describes the status codes.", @@ -1103,8 +1715,8 @@ "title":"Status Code", "uri":"modelarts_03_0094.html", "doc_type":"api", - "p_code":"122", - "code":"123" + "p_code":"190", + "code":"191" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -1112,44 +1724,35 @@ "title":"Error Codes", "uri":"modelarts_03_0095.html", "doc_type":"api", - "p_code":"122", - "code":"124" + "p_code":"190", + "code":"192" }, { - "desc":"A project ID is required for some requests when an API is called. Therefore, obtain the project ID before calling the API. Use either of the following methods:Obtaining a", + "desc":"A project ID or name is required for some requests when an API is called. Therefore, obtain the project ID and name before calling the API. Use either of the following me", "product_code":"modelarts", - "title":"Obtaining a Project ID", + "title":"Obtaining a Project ID and Name", "uri":"modelarts_03_0147.html", "doc_type":"api", - "p_code":"122", - "code":"125" + "p_code":"190", + "code":"193" }, { - "desc":"When you call APIs, certain requests require the account name and ID. To obtain an account name and ID, do as follows:Sign up and log in to the console.Hover the cursor o", + "desc":"When you call APIs, certain requests require the account name and ID. To obtain an account name and ID, do as follows:Log in to the console.Hover the cursor on the userna", "product_code":"modelarts", - "title":"Obtaining an Account Name and ID", + "title":"Obtaining the Account Name and Account ID", "uri":"modelarts_03_0148.html", "doc_type":"api", - "p_code":"122", - "code":"126" + "p_code":"190", + "code":"194" }, { - "desc":"When you call APIs, certain requests require the username and ID. To obtain a username and ID, do as follows:Log in to the management console after registration.Hover the", + "desc":"When you call APIs, certain requests require the username and ID. To obtain a username and ID, do as follows:Log in to the console.Hover the cursor on the username and ch", "product_code":"modelarts", "title":"Obtaining a Username and ID", "uri":"modelarts_03_0006.html", "doc_type":"api", - "p_code":"122", - "code":"127" - }, - { - "desc":"A project ID or name is required for some requests when an API is called. Therefore, obtain the project ID and name before calling the API.To do so, perform the following", - "product_code":"modelarts", - "title":"Obtaining a Project Name", - "uri":"modelarts_03_0247.html", - "doc_type":"api", - "p_code":"122", - "code":"128" + "p_code":"190", + "code":"195" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -1158,6 +1761,6 @@ "uri":"modelarts_03_0097.html", "doc_type":"api", "p_code":"", - "code":"129" + "code":"196" } ] \ No newline at end of file diff --git a/docs/modelarts/api-ref/CancelObs.html b/docs/modelarts/api-ref/CancelObs.html new file mode 100644 index 00000000..b57da3f3 --- /dev/null +++ b/docs/modelarts/api-ref/CancelObs.html @@ -0,0 +1,153 @@ + + +

Unmounting OBS Storage from a Notebook Instance

+

Function

This API is used to unmount OBS storage from a notebook instance. After OBS storage is unmounted, OBS objects remain unchanged but cannot be operated in the notebook container.

+
+

Constraints

None

+
+

URI

DELETE /v1/{project_id}/notebooks/{instance_id}/storage/{storage_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

instance_id

+

Yes

+

String

+

Notebook instance ID.

+

project_id

+

Yes

+

String

+

Project ID. For details, see Obtaining a Project ID.

+

storage_id

+

Yes

+

String

+

OBS storage ID.

+
+
+
+

Request Parameters

None

+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Response body parameters

Parameter

+

Type

+

Description

+

category

+

String

+

Storage category. Options: - OBS

+

id

+

String

+

ID of the instance with OBS storage mounted.

+

mount_path

+

String

+

Path where OBS storage is mounted to a notebook instance.

+

status

+

String

+

Status of OBS storage to be mounted. Options: \r\n-MOUNTING: OBS storage is being mounted. \r\n-MOUNT_FAILED: OBS storage fails to be mounted. \r\n-MOUNTED: OBS storage is mounted. \r\n-UNMOUNTING: OBS storage is being unmounted.\r\n-UNMOUNT_FAILED: OBS storage fails to be unmounted.\r\n-UNMOUNTED: OBS is unmounted.

+

uri

+

String

+

OBS parallel file system path.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "category" : "OBSFS",
+  "id" : "91dd2d3f-2d92-475f-a375-04636af26cc9",
+  "mount_path" : "/data/wang/",
+  "status" : "UNMOUNTING",
+  "uri" : "obs://authoring-test/wang/"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

204

+

No Content

+

401

+

Unauthorized

+

403

+

Forbidden

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/modelarts/api-ref/ChangeAlgorithm.html b/docs/modelarts/api-ref/ChangeAlgorithm.html new file mode 100644 index 00000000..886c22d6 --- /dev/null +++ b/docs/modelarts/api-ref/ChangeAlgorithm.html @@ -0,0 +1,1767 @@ + + +

Modifying an Algorithm

+

Function

This API is used to modify an algorithm.

+
+

URI

PUT /v2/{project_id}/algorithms/{algorithm_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details, see Obtaining a Project ID.

+

algorithm_id

+

Yes

+

String

+

Algorithm ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

metadata

+

No

+

metadata object

+

Algorithm metadata, which describes basic algorithm information.

+

job_config

+

No

+

job_config object

+

Algorithm configuration, such as the boot file.

+

resource_requirements

+

No

+

Array of resource_requirements objects

+

Algorithm resource constraint. You can disable this function by not setting this parameter.

+

advanced_config

+

No

+

advanced_config object

+

Advanced algorithm configuration. Currently, autosearch is supported.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 metadata

Parameter

+

Mandatory

+

Type

+

Description

+

id

+

No

+

Integer

+

Algorithm UUID. You do not need to set this parameter when creating an algorithm.

+

name

+

Yes

+

String

+

Algorithm name. The value must contain 1 to 64 characters consisting of only digits, letters, underscores (_), and hyphens (-).

+

description

+

No

+

String

+

Algorithm description. The value must contain 0 to 256 characters. The default value is NULL.

+

workspace_id

+

No

+

String

+

Workspace where a specified algorithm is located. The default value is 0.

+

ai_project

+

No

+

String

+

AI project to which a specified algorithm belongs. The default value is default-ai-project.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 job_config

Parameter

+

Mandatory

+

Type

+

Description

+

code_dir

+

No

+

String

+

Algorithm code directory, for example, /usr/app/. This parameter must be used together with boot_file.

+

boot_file

+

No

+

String

+

Code boot file of the algorithm, which needs to be stored in the code directory, for example, /usr/app/boot.py. This parameter must be used together with code_dir.

+

command

+

No

+

String

+

Container startup command of a custom image algorithm.

+

parameters

+

No

+

Array of Parameter objects

+

Running parameter of an algorithm.

+

inputs

+

No

+

Array of inputs objects

+

Data input of an algorithm.

+

outputs

+

No

+

Array of outputs objects

+

Data output of an algorithm.

+

engine

+

No

+

engine object

+

Algorithm engine.

+

parameters_customization

+

No

+

Boolean

+

Whether the algorithm allows hyperparameter customization during training job creation.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 Parameter

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

No

+

String

+

Parameter name.

+

value

+

No

+

String

+

Parameter value.

+

description

+

No

+

String

+

Parameter description.

+

constraint

+

No

+

constraint object

+

Parameter constraint.

+

i18n_description

+

No

+

i18n_description object

+

Internationalization description.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 constraint

Parameter

+

Mandatory

+

Type

+

Description

+

type

+

No

+

String

+

Parameter type.

+

editable

+

No

+

Boolean

+

Whether the parameter is editable.

+

required

+

No

+

Boolean

+

Whether the parameter is mandatory.

+

sensitive

+

No

+

Boolean

+

Whether the parameter is sensitive.

+

valid_type

+

No

+

String

+

Valid type.

+

valid_range

+

No

+

Array of strings

+

Valid range.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 7 i18n_description

Parameter

+

Mandatory

+

Type

+

Description

+

language

+

No

+

String

+

Internationalization language.

+

description

+

No

+

String

+

Description.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 8 inputs

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Name of the data input channel.

+

description

+

No

+

String

+

Description of the data input channel.

+

remote_constraints

+

No

+

Array of remote_constraints objects

+

Data input constraint.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 9 remote_constraints

Parameter

+

Mandatory

+

Type

+

Description

+

data_type

+

No

+

String

+

Data input type, including the data storage location and dataset.

+

attributes

+

No

+

Array of Map<String,String> objects

+

Attributes if a dataset is used as the data input. Options:

+
  • data_format: Data format

    +
  • data_segmentation: Data segmentation

    +
  • dataset_type: Labeling type

    +
+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 10 outputs

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Name of the data output channel.

+

description

+

No

+

String

+

Description of the data output channel.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 11 engine

Parameter

+

Mandatory

+

Type

+

Description

+

engine_id

+

No

+

String

+

Engine ID selected for an algorithm.

+

engine_name

+

No

+

String

+

Engine version name selected for an algorithm. If engine_id is specified, leave this parameter blank.

+

engine_version

+

No

+

String

+

Engine version name selected for an algorithm. If engine_id is specified, leave this parameter blank.

+

image_url

+

No

+

String

+

Custom image URL selected by an algorithm.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 12 resource_requirements

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

No

+

String

+

Resource constraint. The options are as follows:- flavor_type: flavor type. The value can be CPU or GPU.- device_distributed_mode: whether to support multi-device training. The value can be multiple (supported) or singular (not supported).-host_distributed_mode: whether to support distributed training. The value can be multiple (supported) or singular (not supported).

+

values

+

No

+

Array of strings

+

Value of the resource constraint key.

+

operator

+

No

+

String

+

Relationship between keys and values. Currently, only in is supported. For example: flavor_type in [CPU,GPU].

+
+
+ +
+ + + + + + + + + + + +
Table 13 advanced_config

Parameter

+

Mandatory

+

Type

+

Description

+

auto_search

+

No

+

auto_search object

+

Hyperparameter search policy.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 15 reward_attrs

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

No

+

String

+

Metric name.

+

mode

+

No

+

String

+

Search direction.

+
  • max: A larger metric value indicates better performance.

    +
  • min: A smaller metric value indicates better performance.

    +
+

regex

+

No

+

String

+

Regular expression of a metric.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 16 search_params

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

No

+

String

+

Hyperparameter name.

+

param_type

+

No

+

String

+

Parameter type.

+
  • continuous: The hyperparameter is of the continuous type.

    +
  • discrete: The hyperparameter is of the discrete type.

    +
+

lower_bound

+

No

+

String

+

Lower bound of the hyperparameter.

+

upper_bound

+

No

+

String

+

Upper bound of the hyperparameter.

+

discrete_points_num

+

No

+

String

+

Number of discrete points of a continuous hyperparameter.

+

discrete_values

+

No

+

String

+

List of discrete hyperparameter values.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 17 algo_configs

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

No

+

String

+

Name of the search algorithm.

+

params

+

No

+

Array of AutoSearchAlgoConfigParameter objects

+

Search algorithm parameters.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 18 AutoSearchAlgoConfigParameter

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

No

+

String

+

Parameter key.

+

value

+

No

+

String

+

Parameter value.

+

type

+

No

+

String

+

Parameter type.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 19 Response body parameters

Parameter

+

Type

+

Description

+

metadata

+

metadata object

+

Algorithm metadata, which describes basic algorithm information.

+

job_config

+

job_config object

+

Algorithm configuration, such as the boot file.

+

resource_requirements

+

Array of resource_requirements objects

+

Algorithm resource constraint. You can disable this function by not setting this parameter.

+

advanced_config

+

advanced_config object

+

Advanced algorithm configuration. Currently, autosearch is supported.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 20 metadata

Parameter

+

Type

+

Description

+

id

+

Integer

+

Algorithm UUID. You do not need to set this parameter when creating an algorithm.

+

name

+

String

+

Algorithm name. The value must contain 1 to 64 characters consisting of only digits, letters, underscores (_), and hyphens (-).

+

description

+

String

+

Algorithm description. The value must contain 0 to 256 characters. The default value is NULL.

+

workspace_id

+

String

+

Workspace where a specified algorithm is located. The default value is 0.

+

ai_project

+

String

+

AI project to which a specified algorithm belongs. The default value is default-ai-project.

+

user_name

+

String

+

Username.

+

domain_id

+

String

+

Domain ID of a user.

+

source

+

String

+

Algorithm source.

+

api_version

+

String

+

Algorithm API version, which identifies the old and new ones.

+

is_valid

+

String

+

Algorithm availability.

+

state

+

String

+

Algorithm state.

+

tags

+

Array of Map<String,String> objects

+

Algorithm tags.

+

attr_list

+

Array of strings

+

Algorithm attribute list.

+

version_num

+

Integer

+

Number of algorithm versions. The default value is 0.

+

size

+

Integer

+

Algorithm size.

+

create_time

+

Long

+

Timestamp when the algorithm is created.

+

update_time

+

Long

+

Timestamp when the algorithm is updated.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 21 job_config

Parameter

+

Type

+

Description

+

code_dir

+

String

+

Algorithm code directory, for example, /usr/app/. This parameter must be used together with boot_file.

+

boot_file

+

String

+

Code boot file of the algorithm, which needs to be stored in the code directory, for example, /usr/app/boot.py. This parameter must be used together with code_dir.

+

command

+

String

+

Container startup command of a custom image algorithm.

+

parameters

+

Array of Parameter objects

+

Running parameter of an algorithm.

+

inputs

+

Array of inputs objects

+

Data input of an algorithm.

+

outputs

+

Array of outputs objects

+

Data output of an algorithm.

+

engine

+

engine object

+

Algorithm engine.

+

code_tree

+

Array of code_tree objects

+

Algorithm directory tree.

+

parameters_customization

+

Boolean

+

Whether the algorithm allows hyperparameter customization during training job creation.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 22 Parameter

Parameter

+

Type

+

Description

+

name

+

String

+

Parameter name.

+

value

+

String

+

Parameter value.

+

description

+

String

+

Parameter description.

+

constraint

+

constraint object

+

Parameter constraint.

+

i18n_description

+

i18n_description object

+

Internationalization description.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 23 constraint

Parameter

+

Type

+

Description

+

type

+

String

+

Parameter type.

+

editable

+

Boolean

+

Whether the parameter is editable.

+

required

+

Boolean

+

Whether the parameter is mandatory.

+

sensitive

+

Boolean

+

Whether the parameter is sensitive.

+

valid_type

+

String

+

Valid type.

+

valid_range

+

Array of strings

+

Valid range.

+
+
+ +
+ + + + + + + + + + + + + +
Table 24 i18n_description

Parameter

+

Type

+

Description

+

language

+

String

+

Internationalization language.

+

description

+

String

+

Description.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 25 inputs

Parameter

+

Type

+

Description

+

name

+

String

+

Name of the data input channel.

+

description

+

String

+

Description of the data input channel.

+

remote_constraints

+

Array of remote_constraints objects

+

Data input constraint.

+
+
+ +
+ + + + + + + + + + + + + +
Table 26 remote_constraints

Parameter

+

Type

+

Description

+

data_type

+

String

+

Data input type, including the data storage location and dataset.

+

attributes

+

Array of Map<String,String> objects

+

Attributes if a dataset is used as the data input. Options:

+
  • data_format: Data format

    +
  • data_segmentation: Data segmentation

    +
  • dataset_type: Labeling type

    +
+
+
+ +
+ + + + + + + + + + + + + +
Table 27 outputs

Parameter

+

Type

+

Description

+

name

+

String

+

Name of the data output channel.

+

description

+

String

+

Description of the data output channel.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 28 engine

Parameter

+

Type

+

Description

+

engine_id

+

String

+

Engine ID selected for an algorithm.

+

engine_name

+

String

+

Engine version name selected for an algorithm. If engine_id is specified, leave this parameter blank.

+

engine_version

+

String

+

Engine version name selected for an algorithm. If engine_id is specified, leave this parameter blank.

+

image_url

+

String

+

Custom image URL selected by an algorithm.

+
+
+ +
+ + + + + + + + + + + + + +
Table 29 code_tree

Parameter

+

Type

+

Description

+

name

+

String

+

Name of the current directory in the algorithm directory tree.

+

children

+

Object

+

Subfiles and subdirectories in the current directory of the algorithm directory tree.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 30 resource_requirements

Parameter

+

Type

+

Description

+

key

+

String

+

Resource constraint. Options:flavor_type: flavor type. The value can be CPU, Ascend, or GPU.device_distributed_mode: whether to support multi-device training. The value can be multiple (supported) or singular (not supported).host_distributed_mode: whether to support distributed training. The value can be multiple (supported) or singular (not supported).

+

value

+

Array of strings

+

Value of the resource constraint key.

+

operator

+

String

+

Relationship between keys and values. Currently, only in is supported. For example: flavor_type in [CPU,GPU].

+
+
+ +
+ + + + + + + + + +
Table 31 advanced_config

Parameter

+

Type

+

Description

+

auto_search

+

auto_search object

+

Hyperparameter search policy.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + +
Table 33 reward_attrs

Parameter

+

Type

+

Description

+

name

+

String

+

Metric name.

+

mode

+

String

+

Search direction.

+
  • max: A larger metric value indicates better performance.

    +
  • min: A smaller metric value indicates better performance.

    +
+

regex

+

String

+

Regular expression of a metric.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 34 search_params

Parameter

+

Type

+

Description

+

name

+

String

+

Hyperparameter name.

+

param_type

+

String

+

Parameter type.

+
  • continuous: The hyperparameter is of the continuous type.

    +
  • discrete: The hyperparameter is of the discrete type.

    +
+

lower_bound

+

String

+

Lower bound of the hyperparameter.

+

upper_bound

+

String

+

Upper bound of the hyperparameter.

+

discrete_points_num

+

String

+

Number of discrete points of a continuous hyperparameter.

+

discrete_values

+

String

+

List of discrete hyperparameter values.

+
+
+ +
+ + + + + + + + + + + + + +
Table 35 algo_configs

Parameter

+

Type

+

Description

+

name

+

String

+

Name of the search algorithm.

+

params

+

Array of AutoSearchAlgoConfigParameter objects

+

Search algorithm parameters.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 36 AutoSearchAlgoConfigParameter

Parameter

+

Type

+

Description

+

key

+

String

+

Parameter key.

+

value

+

String

+

Parameter value.

+

type

+

String

+

Parameter type.

+
+
+
+

Example Requests

The following shows how to modify the algorithm whose UUID is 2e5451fe-913f-4492-821a-2981031382f7.

+
PUT    https://endpoint/v2/{project_id}/algorithms/2e5451fe-913f-4492-821a-2981031382f7
+
+{
+  "metadata" : {
+    "name" : "TestModelArtsalgorithm",
+    "description" : "This is a ModelArts algorithm modified",
+    "tags" : [ ]
+  },
+  "job_config" : {
+    "code_dir" : "/algo-test/pytorch/work1/code/",
+    "boot_file" : "/algo-test/pytorch/work1/code/test-pytorch.py",
+    "parameters" : [ {
+      "name" : "test-parameter",
+      "value" : "10",
+      "constraint" : {
+        "type" : "String",
+        "editable" : true,
+        "required" : false,
+        "sensitive" : false,
+        "valid_type" : "None",
+        "valid_range" : [ ]
+      }
+    } ],
+    "parameters_customization" : true,
+    "inputs" : [ {
+      "name" : "data_url",
+      "description" : "data source."
+    } ],
+    "outputs" : [ {
+      "name" : "train_url",
+      "description" : "model output."
+    } ],
+    "engine" : {
+      "engine_name" : "PyTorch",
+      "engine_version" : "PyTorch-1.3.0-python3.6"
+    }
+  }
+}
+
+

Example Responses

Status code: 201

+

ok

+
{
+  "metadata" : {
+    "id" : "2e5451fe-913f-4492-821a-2981031382f7",
+    "name" : "TestModelArtsalgorithm",
+    "description" : "This is a ModelArts algorithm modified",
+    "create_time" : 1636600721742,
+    "workspace_id" : "0",
+    "ai_project" : "default-ai-project",
+    "user_name" : "",
+    "domain_id" : "xxxxxxxxxxxxxxxxxxxxxxxxxx",
+    "source" : "custom",
+    "api_version" : "",
+    "is_valid" : true,
+    "state" : "",
+    "size" : 4791,
+    "tags" : [ ],
+    "attr_list" : null,
+    "version_num" : 0,
+    "update_time" : 0
+  },
+  "share_info" : { },
+  "job_config" : {
+    "code_dir" : "/algo-test/pytorch/work1/code/",
+    "boot_file" : "/algo-test/pytorch/work1/code/test-pytorch.py",
+    "command" : "",
+    "parameters" : [ {
+      "name" : "test-parameter",
+      "description" : "",
+      "i18n_description" : null,
+      "value" : "10",
+      "constraint" : {
+        "type" : "String",
+        "editable" : true,
+        "required" : false,
+        "sensitive" : false,
+        "valid_type" : "None",
+        "valid_range" : [ ]
+      }
+    } ],
+    "parameters_customization" : true,
+    "inputs" : [ {
+      "name" : "data_url",
+      "description" : "name to translate"
+    } ],
+    "outputs" : [ {
+      "name" : "train_url",
+      "description" : "name to translate"
+    } ],
+    "engine" : {
+      "engine_id" : "pytorch-cp36-1.3.0",
+      "engine_name" : "PyTorch",
+      "engine_version" : "PyTorch-1.3.0-python3.6",
+      "v1_compatible" : true,
+      "run_user" : "",
+      "image_info" : {
+        "cpu_image_url" : "modelarts-job-dev-image/pytorch-cpu-cp36:1.3.0",
+        "gpu_image_url" : "modelarts-job-dev-image/pytorch-gpu-cuda10-cp36:1.3.0",
+        "image_version" : "3.1.0"
+      }
+    },
+    "code_tree" : {
+      "name" : "code/",
+      "children" : [ {
+        "name" : "test-pytorch.py"
+      } ]
+    }
+  },
+  "resource_requirements" : null,
+  "advanced_config" : { }
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

201

+

ok

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/modelarts/api-ref/ChangeTrainingJobDescription.html b/docs/modelarts/api-ref/ChangeTrainingJobDescription.html new file mode 100644 index 00000000..b7e5bfc5 --- /dev/null +++ b/docs/modelarts/api-ref/ChangeTrainingJobDescription.html @@ -0,0 +1,101 @@ + + +

Modifying the Description of a Training Job

+

Function

This API is used to modify the description of a training job.

+
+

URI

PUT /v2/{project_id}/training-jobs/{training_job_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details, see Obtaining a Project ID.

+

training_job_id

+

Yes

+

String

+

ID of a training job.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

description

+

No

+

String

+

Training job description, which consists of 0 to 256 characters. The default value is NULL.

+
+
+
+

Response Parameters

None

+
+

Example Requests

The following shows how to modify a training job whose UUID is 3faf5c03-aaa1-4cbe-879d-24b05d997347. After the modification is successful, call the Querying a training job API to view the modified description.

+
PUT    https://endpoint/v2/{project_id}/training-jobs/3faf5c03-aaa1-4cbe-879d-24b05d997347
+
+{
+  "description" : "hahaha"
+}
+
+

Example Responses

Status code: 200

+

No Content

+
null
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

200

+

No Content

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/modelarts/api-ref/CreateAlgorithm.html b/docs/modelarts/api-ref/CreateAlgorithm.html new file mode 100644 index 00000000..4d4ebb44 --- /dev/null +++ b/docs/modelarts/api-ref/CreateAlgorithm.html @@ -0,0 +1,1758 @@ + + +

Creating an Algorithm

+

Function

This API is used to create an algorithm.

+
+

URI

POST /v2/{project_id}/algorithms

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details, see Obtaining a Project ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

metadata

+

No

+

metadata object

+

Algorithm metadata, which describes basic algorithm information.

+

job_config

+

No

+

job_config object

+

Algorithm configuration, such as the boot file.

+

resource_requirements

+

No

+

Array of resource_requirements objects

+

Algorithm resource constraint. You can disable this function by not setting this parameter.

+

advanced_config

+

No

+

advanced_config object

+

Advanced algorithm configuration. Currently, autosearch is supported.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 metadata

Parameter

+

Mandatory

+

Type

+

Description

+

id

+

No

+

Integer

+

Algorithm UUID. You do not need to set this parameter when creating an algorithm.

+

name

+

Yes

+

String

+

Algorithm name. The value must contain 1 to 64 characters consisting of only digits, letters, underscores (_), and hyphens (-).

+

description

+

No

+

String

+

Algorithm description. The value must contain 0 to 256 characters. The default value is NULL.

+

workspace_id

+

No

+

String

+

Workspace where a specified algorithm is located. The default value is 0.

+

ai_project

+

No

+

String

+

AI project to which a specified algorithm belongs. The default value is default-ai-project.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 job_config

Parameter

+

Mandatory

+

Type

+

Description

+

code_dir

+

No

+

String

+

Algorithm code directory, for example, /usr/app/. This parameter must be used together with boot_file.

+

boot_file

+

No

+

String

+

Code boot file of the algorithm, which needs to be stored in the code directory, for example, /usr/app/boot.py. This parameter must be used together with code_dir.

+

command

+

No

+

String

+

Container startup command of a custom image algorithm.

+

parameters

+

No

+

Array of Parameter objects

+

Running parameter of an algorithm.

+

inputs

+

No

+

Array of inputs objects

+

Data input of an algorithm.

+

outputs

+

No

+

Array of outputs objects

+

Data output of an algorithm.

+

engine

+

No

+

engine object

+

Algorithm engine.

+

parameters_customization

+

No

+

Boolean

+

Whether the algorithm allows hyperparameter customization during training job creation.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 Parameter

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

No

+

String

+

Parameter name.

+

value

+

No

+

String

+

Parameter value.

+

description

+

No

+

String

+

Parameter description.

+

constraint

+

No

+

constraint object

+

Parameter constraint.

+

i18n_description

+

No

+

i18n_description object

+

Internationalization description.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 constraint

Parameter

+

Mandatory

+

Type

+

Description

+

type

+

No

+

String

+

Parameter type.

+

editable

+

No

+

Boolean

+

Whether the parameter is editable.

+

required

+

No

+

Boolean

+

Whether the parameter is mandatory.

+

sensitive

+

No

+

Boolean

+

Whether the parameter is sensitive.

+

valid_type

+

No

+

String

+

Valid type.

+

valid_range

+

No

+

Array of strings

+

Valid range.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 7 i18n_description

Parameter

+

Mandatory

+

Type

+

Description

+

language

+

No

+

String

+

Internationalization language.

+

description

+

No

+

String

+

Description.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 8 inputs

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Name of the data input channel.

+

description

+

No

+

String

+

Description of the data input channel.

+

remote_constraints

+

No

+

Array of remote_constraints objects

+

Data input constraint.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 9 remote_constraints

Parameter

+

Mandatory

+

Type

+

Description

+

data_type

+

No

+

String

+

Data input type, including the data storage location and dataset.

+

attributes

+

No

+

Array of Map<String,String> objects

+

Attributes if a dataset is used as the data input. Options:

+
  • data_format: Data format

    +
  • data_segmentation: Data segmentation

    +
  • dataset_type: Labeling type

    +
+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 10 outputs

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Name of the data output channel.

+

description

+

No

+

String

+

Description of the data output channel.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 11 engine

Parameter

+

Mandatory

+

Type

+

Description

+

engine_id

+

No

+

String

+

Engine ID selected for an algorithm.

+

engine_name

+

No

+

String

+

Engine version name selected for an algorithm. If engine_id is specified, leave this parameter blank.

+

engine_version

+

No

+

String

+

Engine version name selected for an algorithm. If engine_id is specified, leave this parameter blank.

+

image_url

+

No

+

String

+

Custom image URL selected by an algorithm.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 12 resource_requirements

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

No

+

String

+

Resource constraint. The options are as follows:- flavor_type: flavor type. The value can be CPU or GPU.- device_distributed_mode: whether to support multi-device training. The value can be multiple (supported) or singular (not supported).-host_distributed_mode: whether to support distributed training. The value can be multiple (supported) or singular (not supported).

+

values

+

No

+

Array of strings

+

Value of the resource constraint key.

+

operator

+

No

+

String

+

Relationship between keys and values. Currently, only in is supported. For example: flavor_type in [CPU,GPU].

+
+
+ +
+ + + + + + + + + + + +
Table 13 advanced_config

Parameter

+

Mandatory

+

Type

+

Description

+

auto_search

+

No

+

auto_search object

+

Hyperparameter search policy.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 15 reward_attrs

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

No

+

String

+

Metric name.

+

mode

+

No

+

String

+

Search direction.

+
  • max: A larger metric value indicates better performance.

    +
  • min: A smaller metric value indicates better performance.

    +
+

regex

+

No

+

String

+

Regular expression of a metric.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 16 search_params

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

No

+

String

+

Hyperparameter name.

+

param_type

+

No

+

String

+

Parameter type.

+
  • continuous: The hyperparameter is of the continuous type.

    +
  • discrete: The hyperparameter is of the discrete type.

    +
+

lower_bound

+

No

+

String

+

Lower bound of the hyperparameter.

+

upper_bound

+

No

+

String

+

Upper bound of the hyperparameter.

+

discrete_points_num

+

No

+

String

+

Number of discrete points of a continuous hyperparameter.

+

discrete_values

+

No

+

String

+

List of discrete hyperparameter values.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 17 algo_configs

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

No

+

String

+

Name of the search algorithm.

+

params

+

No

+

Array of AutoSearchAlgoConfigParameter objects

+

Search algorithm parameters.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 18 AutoSearchAlgoConfigParameter

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

No

+

String

+

Parameter key.

+

value

+

No

+

String

+

Parameter value.

+

type

+

No

+

String

+

Parameter type.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 19 Response body parameters

Parameter

+

Type

+

Description

+

metadata

+

metadata object

+

Algorithm metadata, which describes basic algorithm information.

+

job_config

+

job_config object

+

Algorithm configuration, such as the boot file.

+

resource_requirements

+

Array of resource_requirements objects

+

Algorithm resource constraint. You can disable this function by not setting this parameter.

+

advanced_config

+

advanced_config object

+

Advanced algorithm configuration. Currently, autosearch is supported.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 20 metadata

Parameter

+

Type

+

Description

+

id

+

Integer

+

Algorithm UUID. You do not need to set this parameter when creating an algorithm.

+

name

+

String

+

Algorithm name. The value must contain 1 to 64 characters consisting of only digits, letters, underscores (_), and hyphens (-).

+

description

+

String

+

Algorithm description. The value must contain 0 to 256 characters. The default value is NULL.

+

workspace_id

+

String

+

Workspace where a specified algorithm is located. The default value is 0.

+

ai_project

+

String

+

AI project to which a specified algorithm belongs. The default value is default-ai-project.

+

user_name

+

String

+

Username.

+

domain_id

+

String

+

Domain ID of a user.

+

source

+

String

+

Algorithm source.

+

api_version

+

String

+

Algorithm API version, which identifies the old and new ones.

+

is_valid

+

String

+

Algorithm availability.

+

state

+

String

+

Algorithm state.

+

tags

+

Array of Map<String,String> objects

+

Algorithm tags.

+

attr_list

+

Array of strings

+

Algorithm attribute list.

+

version_num

+

Integer

+

Number of algorithm versions. The default value is 0.

+

size

+

Integer

+

Algorithm size.

+

create_time

+

Long

+

Timestamp when the algorithm is created.

+

update_time

+

Long

+

Timestamp when the algorithm is updated.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 21 job_config

Parameter

+

Type

+

Description

+

code_dir

+

String

+

Algorithm code directory, for example, /usr/app/. This parameter must be used together with boot_file.

+

boot_file

+

String

+

Code boot file of the algorithm, which needs to be stored in the code directory, for example, /usr/app/boot.py. This parameter must be used together with code_dir.

+

command

+

String

+

Container startup command of a custom image algorithm.

+

parameters

+

Array of Parameter objects

+

Running parameter of an algorithm.

+

inputs

+

Array of inputs objects

+

Data input of an algorithm.

+

outputs

+

Array of outputs objects

+

Data output of an algorithm.

+

engine

+

engine object

+

Algorithm engine.

+

code_tree

+

Array of code_tree objects

+

Algorithm directory tree.

+

parameters_customization

+

Boolean

+

Whether the algorithm allows hyperparameter customization during training job creation.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 22 Parameter

Parameter

+

Type

+

Description

+

name

+

String

+

Parameter name.

+

value

+

String

+

Parameter value.

+

description

+

String

+

Parameter description.

+

constraint

+

constraint object

+

Parameter constraint.

+

i18n_description

+

i18n_description object

+

Internationalization description.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 23 constraint

Parameter

+

Type

+

Description

+

type

+

String

+

Parameter type.

+

editable

+

Boolean

+

Whether the parameter is editable.

+

required

+

Boolean

+

Whether the parameter is mandatory.

+

sensitive

+

Boolean

+

Whether the parameter is sensitive.

+

valid_type

+

String

+

Valid type.

+

valid_range

+

Array of strings

+

Valid range.

+
+
+ +
+ + + + + + + + + + + + + +
Table 24 i18n_description

Parameter

+

Type

+

Description

+

language

+

String

+

Internationalization language.

+

description

+

String

+

Description.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 25 inputs

Parameter

+

Type

+

Description

+

name

+

String

+

Name of the data input channel.

+

description

+

String

+

Description of the data input channel.

+

remote_constraints

+

Array of remote_constraints objects

+

Data input constraint.

+
+
+ +
+ + + + + + + + + + + + + +
Table 26 remote_constraints

Parameter

+

Type

+

Description

+

data_type

+

String

+

Data input type, including the data storage location and dataset.

+

attributes

+

Array of Map<String,String> objects

+

Attributes if a dataset is used as the data input. Options:

+
  • data_format: Data format

    +
  • data_segmentation: Data segmentation

    +
  • dataset_type: Labeling type

    +
+
+
+ +
+ + + + + + + + + + + + + +
Table 27 outputs

Parameter

+

Type

+

Description

+

name

+

String

+

Name of the data output channel.

+

description

+

String

+

Description of the data output channel.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 28 engine

Parameter

+

Type

+

Description

+

engine_id

+

String

+

Engine ID selected for an algorithm.

+

engine_name

+

String

+

Engine version name selected for an algorithm. If engine_id is specified, leave this parameter blank.

+

engine_version

+

String

+

Engine version name selected for an algorithm. If engine_id is specified, leave this parameter blank.

+

image_url

+

String

+

Custom image URL selected by an algorithm.

+
+
+ +
+ + + + + + + + + + + + + +
Table 29 code_tree

Parameter

+

Type

+

Description

+

name

+

String

+

Name of the current directory in the algorithm directory tree.

+

children

+

Object

+

Subfiles and subdirectories in the current directory of the algorithm directory tree.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 30 resource_requirements

Parameter

+

Type

+

Description

+

key

+

String

+

Resource constraint. Options:flavor_type: flavor type. The value can be CPU, Ascend, or GPU.device_distributed_mode: whether to support multi-device training. The value can be multiple (supported) or singular (not supported).host_distributed_mode: whether to support distributed training. The value can be multiple (supported) or singular (not supported).

+

value

+

Array of strings

+

Value of the resource constraint key.

+

operator

+

String

+

Relationship between keys and values. Currently, only in is supported. For example: flavor_type in [CPU,GPU].

+
+
+ +
+ + + + + + + + + +
Table 31 advanced_config

Parameter

+

Type

+

Description

+

auto_search

+

auto_search object

+

Hyperparameter search policy.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + +
Table 33 reward_attrs

Parameter

+

Type

+

Description

+

name

+

String

+

Metric name.

+

mode

+

String

+

Search direction.

+
  • max: A larger metric value indicates better performance.

    +
  • min: A smaller metric value indicates better performance.

    +
+

regex

+

String

+

Regular expression of a metric.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 34 search_params

Parameter

+

Type

+

Description

+

name

+

String

+

Hyperparameter name.

+

param_type

+

String

+

Parameter type.

+
  • continuous: The hyperparameter is of the continuous type.

    +
  • discrete: The hyperparameter is of the discrete type.

    +
+

lower_bound

+

String

+

Lower bound of the hyperparameter.

+

upper_bound

+

String

+

Upper bound of the hyperparameter.

+

discrete_points_num

+

String

+

Number of discrete points of a continuous hyperparameter.

+

discrete_values

+

String

+

List of discrete hyperparameter values.

+
+
+ +
+ + + + + + + + + + + + + +
Table 35 algo_configs

Parameter

+

Type

+

Description

+

name

+

String

+

Name of the search algorithm.

+

params

+

Array of AutoSearchAlgoConfigParameter objects

+

Search algorithm parameters.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 36 AutoSearchAlgoConfigParameter

Parameter

+

Type

+

Description

+

key

+

String

+

Parameter key.

+

value

+

String

+

Parameter value.

+

type

+

String

+

Parameter type.

+
+
+
+

Example Requests

The following shows how to create an algorithm whose name is TestModelArtsalgorithm and description is This is a ModelArts algorithm.

+
POST    https://endpoint/v2/{project_id}/algorithms
+
+{
+  "metadata" : {
+    "name" : "TestModelArtsalgorithm",
+    "description" : "This is a ModelArts algorithm",
+    "tags" : [ ]
+  },
+  "job_config" : {
+    "code_dir" : "/algo-test/pytorch/work1/code/",
+    "boot_file" : "/algo-test/pytorch/work1/code/test-pytorch.py",
+    "parameters" : [ {
+      "name" : "test-parameter",
+      "value" : "10",
+      "constraint" : {
+        "type" : "String",
+        "editable" : true,
+        "required" : false,
+        "sensitive" : false,
+        "valid_type" : "None",
+        "valid_range" : [ ]
+      }
+    } ],
+    "parameters_customization" : true,
+    "inputs" : [ {
+      "name" : "data_url",
+      "description" : "data source."
+    } ],
+    "outputs" : [ {
+      "name" : "train_url",
+      "description" : "model output."
+    } ],
+    "engine" : {
+      "engine_name" : "PyTorch",
+      "engine_version" : "PyTorch-1.3.0-python3.6"
+    }
+  }
+}
+
+

Example Responses

Status code: 201

+

ok

+
{
+  "metadata" : {
+    "id" : "2e5451fe-913f-4492-821a-2981031382f7",
+    "name" : "TestModelArtsalgorithm",
+    "description" : "This is a ModelArts algorithm",
+    "create_time" : 1636600721742,
+    "workspace_id" : "0",
+    "ai_project" : "default-ai-project",
+    "user_name" : "",
+    "domain_id" : "xxxxxxxxxxxxxxxxxxxxxxxxxx",
+    "source" : "custom",
+    "api_version" : "",
+    "is_valid" : true,
+    "state" : "",
+    "size" : 4791,
+    "tags" : [ ],
+    "attr_list" : null,
+    "version_num" : 0,
+    "update_time" : 0
+  },
+  "share_info" : { },
+  "job_config" : {
+    "code_dir" : "/algo-test/pytorch/work1/code/",
+    "boot_file" : "/algo-test/pytorch/work1/code/test-pytorch.py",
+    "command" : "",
+    "parameters" : [ {
+      "name" : "test-parameter",
+      "description" : "",
+      "i18n_description" : null,
+      "value" : "10",
+      "constraint" : {
+        "type" : "String",
+        "editable" : true,
+        "required" : false,
+        "sensitive" : false,
+        "valid_type" : "None",
+        "valid_range" : [ ]
+      }
+    } ],
+    "parameters_customization" : true,
+    "inputs" : [ {
+      "name" : "data_url",
+      "description" : "name to translate"
+    } ],
+    "outputs" : [ {
+      "name" : "train_url",
+      "description" : "name to translate"
+    } ],
+    "engine" : {
+      "engine_id" : "pytorch-cp36-1.3.0",
+      "engine_name" : "PyTorch",
+      "engine_version" : "PyTorch-1.3.0-python3.6",
+      "v1_compatible" : true,
+      "run_user" : "",
+      "image_info" : {
+        "cpu_image_url" : "modelarts-job-dev-image/pytorch-cpu-cp36:1.3.0",
+        "gpu_image_url" : "modelarts-job-dev-image/pytorch-gpu-cuda10-cp36:1.3.0",
+        "image_version" : "3.1.0"
+      }
+    },
+    "code_tree" : {
+      "name" : "code/",
+      "children" : [ {
+        "name" : "test-pytorch.py"
+      } ]
+    }
+  },
+  "resource_requirements" : null,
+  "advanced_config" : { }
+}
+
+

Status Codes

+
+ + + + + + + +

Status Code

+

Description

+

201

+

ok

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/modelarts/api-ref/CreateAuthorization.html b/docs/modelarts/api-ref/CreateAuthorization.html new file mode 100644 index 00000000..14243559 --- /dev/null +++ b/docs/modelarts/api-ref/CreateAuthorization.html @@ -0,0 +1,149 @@ + + +

Configuring Authorization

+

Function

This API is used to configure ModelArts authorization. ModelArts functions such as training management, development environment, data management, and real-time services can be properly used only after required authorization is configured. This API allows the system administrator to configure an agency for IAM users and set an access key of the current user.

+
+

URI

POST /v2/{project_id}/authorizations

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining a Project ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

user_id

+

No

+

String

+

User ID. For details about how to obtain a user ID, see Obtaining a User ID.

+

If user_id is set to all-users, authorization is configured for all IAM users. If some users have been authorized, their authorization will be updated.

+

This parameter is mandatory only if the authorization method is set to Agency.

+

type

+

No

+

String

+

Authorization type. Agency is recommended.

+

Options:

+
  • agency: authorization through an agency
  • credential: authorization through an access Key (AK/SK)
+

Default: agency

+

content

+

Yes

+

String

+

Authorization content.

+
  • If Authorization Type is set to Agency, this field indicates the agency name.
  • If Authorization Type is set to AK/SK, this field indicates the access key ID (AK).
+

secret_key

+

No

+

String

+

Secret Access Key (SK). This field is required only when Authorization Method is set to AK/SK.

+
+
+
+

Response Parameters

None

+
+

Example Requests

Upload authorization.

+
POST https://{endpoint}/v2/{project_id}/authorizations
+
+{
+  "user_id" : "****d80fb058844ae8b82aa66d9fe****",
+  "type" : "agency",
+  "content" : "modelarts_agency"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "result" : "true"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/modelarts/api-ref/CreateDataset.html b/docs/modelarts/api-ref/CreateDataset.html index d20b4002..8acab428 100644 --- a/docs/modelarts/api-ref/CreateDataset.html +++ b/docs/modelarts/api-ref/CreateDataset.html @@ -1,1003 +1,1002 @@

Creating a Dataset

-

Function

This API is used to create a dataset.

+

Function

This API is used to create a dataset.

-

URI

POST /v2/{project_id}/datasets

+

URI

POST /v2/{project_id}/datasets

-
Table 1 Path Parameters

Parameter

+
- - - - - - -
Table 1 Path Parameters

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

project_id

+

project_id

Yes

+

Yes

String

+

String

Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

+

Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

-

Request Parameters

-
Table 2 Request body parameters

Parameter

+

Request Parameters

+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Table 2 Request body parameters

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

data_format

+

data_format

No

+

No

String

+

String

Data format. The options are as follows:

-
  • Default: default format
  • CarbonData: CarbonData (supported only by table datasets)
+

Data format. The options are as follows:

+
  • Default: default format
  • CarbonData: CarbonData (supported only by table datasets)

data_sources

+

data_sources

No

+

No

Array of DataSource objects

+

Array of DataSource objects

Input dataset path, which is used to synchronize source data (such as images, text files, and audio files) in the directory and its subdirectories to the dataset. For a table dataset, this parameter indicates the import directory. The work directory of a table dataset cannot be an OBS path in a KMS-encrypted bucket.

+

Input dataset path, which is used to synchronize source data (such as images, text files, and audio files) in the directory and its subdirectories to the dataset. For a table dataset, this parameter indicates the import directory. The work directory of a table dataset cannot be an OBS path in a KMS-encrypted bucket.

dataset_name

+

dataset_name

Yes

+

Yes

String

+

String

Dataset name. The value contains 1 to 100 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed, for example, dataset-9f3b.

+

Dataset name. The value contains 1 to 100 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed, for example, dataset-9f3b.

dataset_type

+

dataset_type

No

+

No

Integer

+

Integer

Dataset type. The options are as follows:

-
  • 0: image classification
  • 1: object detection
  • 100: text classification
  • 101: named entity recognition
  • 102: text triplet
  • 200: sound classification
  • 201: speech content
  • 202: speech paragraph labeling
  • 400: table dataset
  • 600: video labeling
  • 900: custom format
+

Dataset type. The options are as follows:

+
  • 0: image classification
  • 1: object detection
  • 100: text classification
  • 101: named entity recognition
  • 102: text triplet
  • 200: sound classification
  • 201: speech content
  • 202: speech paragraph labeling
  • 400: table dataset
  • 600: video labeling
  • 900: custom format

description

+

description

No

+

No

String

+

String

Dataset description. The value is empty by default. The description contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

+

Dataset description. The value is empty by default. The description contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

import_annotations

+

import_annotations

No

+

No

Boolean

+

Boolean

Whether to automatically import the labeling information in the input directory, supporting detection, image classification, and text classification. The options are as follows:

-
  • true: Import labeling information in the input directory. (Default value)
  • false: Do not import labeling information in the input directory.
+

Whether to automatically import the labeling information in the input directory, supporting detection, image classification, and text classification. The options are as follows:

+
  • true: Import labeling information in the input directory. (Default value)
  • false: Do not import labeling information in the input directory.

import_data

+

import_data

No

+

No

Boolean

+

Boolean

Whether to import data. This parameter is used only for table datasets. The options are as follows:

-
  • true: Import data when creating a database.
  • false: Do not import data when creating a database. (Default value)
+

Whether to import data. This parameter is used only for table datasets. The options are as follows:

+
  • true: Import data when creating a database.
  • false: Do not import data when creating a database. (Default value)

label_format

+

label_format

No

+

No

LabelFormat object

+

LabelFormat object

Label format information. This parameter is used only for text datasets.

+

Label format information. This parameter is used only for text datasets.

labels

+

labels

No

+

No

Array of Label objects

+

Array of Label objects

Dataset label list.

+

Dataset label list.

managed

+

managed

No

+

No

Boolean

+

Boolean

Whether to host a dataset. The options are as follows:

-
  • true: Host a dataset.
  • false: Do not host a dataset. (Default value)
+

Whether to host a dataset. The options are as follows:

+
  • true: Host a dataset.
  • false: Do not host a dataset. (Default value)

schema

+

schema

No

+

No

Array of Field objects

+

Array of Field objects

Schema list.

+

Schema list.

work_path

+

work_path

Yes

+

Yes

String

+

String

Output dataset path, which is used to store output files such as label files.

-
  • The format is /Bucket name/File path, for example, /obs-bucket/flower/rose/. (The directory is used as the path.)
  • A bucket cannot be directly used as a path.
  • The output dataset path is different from the input dataset path or its subdirectory.
  • The value contains 3 to 700 characters.
+

Output dataset path, which is used to store output files such as label files.

+
  • The format is /Bucket name/File path, for example, /obs-bucket/flower/rose/. (The directory is used as the path.)
  • A bucket cannot be directly used as a path.
  • The output dataset path is different from the input dataset path or its subdirectory.
  • The value contains 3 to 700 characters.

work_path_type

+

work_path_type

Yes

+

Yes

Integer

+

Integer

Type of the dataset output path. The options are as follows:

-
  • 0: OBS bucket (default value)
+

Type of the dataset output path. The options are as follows:

+
  • 0: OBS bucket (default value)

workforce_information

+

workforce_information

No

+

No

WorkforceInformation object

+

WorkforceInformation object

Team labeling information.

+

Team labeling information.

workspace_id

+

workspace_id

No

+

No

String

+

String

Workspace ID. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value.

+

Workspace ID. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value.

-
Table 3 DataSource

Parameter

+
- - - - - - - - - - - - - - - - - - - - - - -
Table 3 DataSource

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

data_path

+

data_path

No

+

No

String

+

String

Data source path.

+

Data source path.

data_type

+

data_type

No

+

No

Integer

+

Integer

Data type. The options are as follows:

-
  • 0: OBS bucket (default value)
  • 1: GaussDB(DWS)
  • 2: DLI
  • 3: RDS
  • 4: MRS
  • 5: AI Gallery
  • 6: Inference service
+

Data type. The options are as follows:

+
  • 0: OBS bucket (default value)
  • 1: GaussDB(DWS)
  • 2: DLI
  • 3: RDS
  • 4: MRS
  • 5: AI Gallery
  • 6: Inference service

schema_maps

+

schema_maps

No

+

No

Array of SchemaMap objects

+

Array of SchemaMap objects

Schema mapping information corresponding to the table data.

+

Schema mapping information corresponding to the table data.

source_info

+

source_info

No

+

No

SourceInfo object

+

SourceInfo object

Information required for importing a table data source.

+

Information required for importing a table data source.

with_column_header

+

with_column_header

No

+

No

Boolean

+

Boolean

Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

-
  • true: The first row in the file is the column name.
  • false: The first row in the file is not the column name.
+

Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

+
  • true: The first row in the file is the column name.
  • false: The first row in the file is not the column name.
-
Table 4 SchemaMap

Parameter

+
- - - - - - - - - - -
Table 4 SchemaMap

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

dest_name

+

dest_name

No

+

No

String

+

String

Name of the destination column.

+

Name of the destination column.

src_name

+

src_name

No

+

No

String

+

String

Name of the source column.

+

Name of the source column.

-
Table 5 SourceInfo

Parameter

+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Table 5 SourceInfo

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

cluster_id

+

cluster_id

No

+

No

String

+

String

ID of an MRS cluster.

+

ID of an MRS cluster.

cluster_mode

+

cluster_mode

No

+

No

String

+

String

Running mode of an MRS cluster. The options are as follows:

-
  • 0: normal cluster
  • 1: security cluster
+

Running mode of an MRS cluster. The options are as follows:

+
  • 0: normal cluster
  • 1: security cluster

cluster_name

+

cluster_name

No

+

No

String

+

String

Name of an MRS cluster.

+

Name of an MRS cluster.

database_name

+

database_name

No

+

No

String

+

String

Name of the database to which the table dataset is imported.

+

Name of the database to which the table dataset is imported.

input

+

input

No

+

No

String

+

String

HDFS path of a table dataset.

+

HDFS path of a table dataset.

ip

+

ip

No

+

No

String

+

String

IP address of your GaussDB(DWS) cluster.

+

IP address of your GaussDB(DWS) cluster.

port

+

port

No

+

No

String

+

String

Port number of your GaussDB(DWS) cluster.

+

Port number of your GaussDB(DWS) cluster.

queue_name

+

queue_name

No

+

No

String

+

String

DLI queue name of a table dataset.

+

DLI queue name of a table dataset.

subnet_id

+

subnet_id

No

+

No

String

+

String

Subnet ID of an MRS cluster.

+

Subnet ID of an MRS cluster.

table_name

+

table_name

No

+

No

String

+

String

Name of the table to which a table dataset is imported.

+

Name of the table to which a table dataset is imported.

user_name

+

user_name

No

+

No

String

+

String

Username, which is mandatory for GaussDB(DWS) data.

+

Username, which is mandatory for GaussDB(DWS) data.

user_password

+

user_password

No

+

No

String

+

String

User password, which is mandatory for GaussDB(DWS) data.

+

User password, which is mandatory for GaussDB(DWS) data.

vpc_id

+

vpc_id

No

+

No

String

+

String

ID of the VPC where an MRS cluster resides.

+

ID of the VPC where an MRS cluster resides.

-
Table 6 LabelFormat

Parameter

+
- - - - - - - - - - - - - - -
Table 6 LabelFormat

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

label_type

+

label_type

No

+

No

String

+

String

Label type of text classification. The options are as follows:

-
  • 0: The label is separated from the text, and they are distinguished by the fixed suffix _result. For example, the text file is abc.txt, and the label file is abc_result.txt.
  • 1: Default value. Labels and texts are stored in the same file and separated by separators. You can use text_sample_separator to specify the separator between the text and label and text_label_separator to specify the separator between labels.
+

Label type of text classification. The options are as follows:- 0: The label is separated from the text, and they are distinguished by the fixed suffix _result. For example, the text file is abc.txt, and the label file is abc_result.txt.- 1: Default value. Labels and texts are stored in the same file and separated by separators. You can use text_sample_separator to specify the separator between the text and label and text_label_separator to specify the separator between labels.

text_label_separator

+

text_label_separator

No

+

No

String

+

String

Separator between labels. By default, a comma (,) is used as the separator. The separator needs to be escaped. The separator can contain only one character, such as a letter, a digit, or any of the following special characters: !@#$%^&*_=|?/':.;,

+

Separator between labels. By default, a comma (,) is used as the separator. The separator needs to be escaped. The separator can contain only one character, such as a letter, a digit, or any of the following special characters: !@#$%^&*_=|?/':.;,

text_sample_separator

+

text_sample_separator

No

+

No

String

+

String

Separator between the text and label. By default, the Tab key is used as the separator. The separator needs to be escaped. The separator can contain only one character, such as a letter, a digit, or any of the following special characters: !@#$%^&*_=|?/':.;,

+

Separator between the text and label. By default, the Tab key is used as the separator. The separator needs to be escaped. The separator can contain only one character, such as a letter, a digit, or any of the following special characters: !@#$%^&*_=|?/':.;,

-
Table 7 Label

Parameter

+
- - - - - - - - - - - - - - - - - - -
Table 7 Label

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

attributes

+

attributes

No

+

No

Array of LabelAttribute objects

+

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.

+

Multi-dimensional attribute of a label. For example, if the label is music, attributes such as style and artist may be included.

name

+

name

No

+

No

String

+

String

Label name.

+

Label name.

property

+

property

No

+

No

LabelProperty object

+

LabelProperty object

Basic attribute key-value pair of a label, such as color and shortcut keys.

+

Basic attribute key-value pair of a label, such as color and shortcut keys.

type

+

type

No

+

No

Integer

+

Integer

Label type. The options are as follows:

-
  • 0: image classification
  • 1: object detection
  • 100: text classification
  • 101: named entity recognition
  • 102: text triplet relationship
  • 103: text triplet entity
  • 200: speech classification
  • 201: speech content
  • 202: speech paragraph labeling
  • 600: video classification
+

Label type. The options are as follows:

+
  • 0: image classification
  • 1: object detection
  • 100: text classification
  • 101: named entity recognition
  • 102: text triplet relationship
  • 103: text triplet entity
  • 200: speech classification
  • 201: speech content
  • 202: speech paragraph labeling
  • 600: video classification
-
Table 8 LabelAttribute

Parameter

+
- - - - - - - - - - - - - - - - - - - - - - -
Table 8 LabelAttribute

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

default_value

+

default_value

No

+

No

String

+

String

Default value of a label attribute.

+

Default value of a label attribute.

id

+

id

No

+

No

String

+

String

Label attribute ID.

+

Label attribute ID.

name

+

name

No

+

No

String

+

String

Label attribute name.

+

Label attribute name.

type

+

type

No

+

No

String

+

String

Label attribute type. The options are as follows:

-
  • text: text
  • select: single-choice drop-down list
+

Label attribute type. The options are as follows:

+
  • text: text
  • select: single-choice drop-down list

values

+

values

No

+

No

Array of LabelAttributeValue objects

+

Array of LabelAttributeValue objects

List of label attribute values.

+

List of label attribute values.

-
Table 9 LabelAttributeValue

Parameter

+
- - - - - - - - - - -
Table 9 LabelAttributeValue

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

id

+

id

No

+

No

String

+

String

Label attribute value ID.

+

Label attribute value ID.

value

+

value

No

+

No

String

+

String

Label attribute value.

+

Label attribute value.

-
Table 10 LabelProperty

Parameter

+
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Table 10 LabelProperty

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

@modelarts:color

+

@modelarts:color

No

+

No

String

+

String

Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

+

Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

@modelarts:default_shape

+

@modelarts:default_shape

No

+

No

String

+

String

Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

-
  • bndbox: rectangle
  • polygon: polygon
  • circle: circle
  • line: straight line
  • dashed: dotted line
  • point: point
  • polyline: polyline
+

Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

+
  • bndbox: rectangle
  • polygon: polygon
  • circle: circle
  • line: straight line
  • dashed: dotted line
  • point: point
  • polyline: polyline

@modelarts:from_type

+

@modelarts:from_type

No

+

No

String

+

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.

+

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

+

@modelarts:rename_to

No

+

No

String

+

String

Default attribute: The new name of the label.

+

Default attribute: The new name of the label.

@modelarts:shortcut

+

@modelarts:shortcut

No

+

No

String

+

String

Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

+

Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

@modelarts:to_type

+

@modelarts:to_type

No

+

No

String

+

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.

+

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.

-
Table 11 Field

Parameter

+
- - - - - - - - - - - - - - - - - - -
Table 11 Field

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

description

+

description

No

+

No

String

+

String

Schema description.

+

Schema description.

name

+

name

No

+

No

String

+

String

Schema name.

+

Schema name.

schema_id

+

schema_id

No

+

No

Integer

+

Integer

Schema ID.

+

Schema ID.

type

+

type

No

+

No

String

+

String

Schema value type.

+

Schema value type.

-
Table 12 WorkforceInformation

Parameter

+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Table 12 WorkforceInformation

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

data_sync_type

+

data_sync_type

No

+

No

Integer

+

Integer

Synchronization type. The options are as follows:

-
  • 0: not to be synchronized
  • 1: data to be synchronized
  • 2: label to be synchronized
  • 3: data and label to be synchronized
+

Synchronization type. The options are as follows:

+
  • 0: not to be synchronized
  • 1: data to be synchronized
  • 2: label to be synchronized
  • 3: data and label to be synchronized

repetition

+

repetition

No

+

No

Integer

+

Integer

Number of persons who label each sample. The minimum value is 1.

+

Number of persons who label each sample. The minimum value is 1.

synchronize_auto_labeling_data

+

synchronize_auto_labeling_data

No

+

No

Boolean

+

Boolean

Whether to synchronously update auto labeling data. The options are as follows:

-
  • true: Update auto labeling data synchronously.
  • false: Do not update auto labeling data synchronously.
+

Whether to synchronously update auto labeling data. The options are as follows:

+
  • true: Update auto labeling data synchronously.
  • false: Do not update auto labeling data synchronously.

synchronize_data

+

synchronize_data

No

+

No

Boolean

+

Boolean

Whether to synchronize updated data, such as uploading files, synchronizing data sources, and assigning imported unlabeled files to team members. The options are as follows:

-
  • true: Synchronize updated data to team members.
  • false: Do not synchronize updated data to team members.
+

Whether to synchronize updated data, such as uploading files, synchronizing data sources, and assigning imported unlabeled files to team members. The options are as follows:

+
  • true: Synchronize updated data to team members.
  • false: Do not synchronize updated data to team members.

task_id

+

task_id

No

+

No

String

+

String

ID of a team labeling task.

+

ID of a team labeling task.

task_name

+

task_name

Yes

+

Yes

String

+

String

Name of a team labeling task. The value contains 1 to 64 characters, including only letters, digits, underscores (_), and hyphens (-).

+

Name of a team labeling task. The value contains 1 to 64 characters, including only letters, digits, underscores (_), and hyphens (-).

workforces_config

+

workforces_config

No

+

No

WorkforcesConfig object

+

WorkforcesConfig object

Manpower assignment of a team labeling task. You can delegate the team administrator to assign the manpower or do it by yourself.

+

Manpower assignment of a team labeling task. You can delegate the system administrator to assign the manpower or do it by yourself.

-
Table 13 WorkforcesConfig

Parameter

+
- - - - - - - - - - -
Table 13 WorkforcesConfig

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

agency

+

agency

No

+

No

String

+

String

Team administrator.

+

Team administrator.

workforces

+

workforces

No

+

No

Array of WorkforceConfig objects

+

Array of WorkforceConfig objects

List of teams that execute labeling tasks.

+

List of teams that execute labeling tasks.

-
Table 14 WorkforceConfig

Parameter

+
- - - - - - - - - - - - - - -
Table 14 WorkforceConfig

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

workers

+

workers

No

+

No

Array of Worker objects

+

Array of Worker objects

List of labeling team members.

+

List of labeling team members.

workforce_id

+

workforce_id

No

+

No

String

+

String

ID of a labeling team.

+

ID of a labeling team.

workforce_name

+

workforce_name

No

+

No

String

+

String

Name of a labeling team. The value contains 0 to 1024 characters and does not support the following special characters: !<>=&"'

+

Name of a labeling team. The value contains 0 to 1024 characters and does not support the following special characters: !<>=&"'

-
Table 15 Worker

Parameter

+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Table 15 Worker

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

create_time

+

create_time

No

+

No

Long

+

Long

Creation time.

+

Creation time.

description

+

description

No

+

No

String

+

String

Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

+

Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

email

+

email

No

+

No

String

+

String

Email address of a labeling team member.

+

Email address of a labeling team member.

role

+

role

No

+

No

Integer

+

Integer

Role. The options are as follows:

-
  • 0: labeling personnel
  • 1: reviewer
  • 2: team administrator
  • 3: dataset owner
+

Role. The options are as follows:

+
  • 0: labeling personnel
  • 1: reviewer
  • 2: team administrator
  • 3: dataset owner

status

+

status

No

+

No

Integer

+

Integer

Current login status of a labeling team member. The options are as follows:

-
  • 0: The invitation email has not been sent.
  • 1: The invitation email has been sent but the user has not logged in.
  • 2: The user has logged in.
  • 3: The labeling team member has been deleted.
+

Current login status of a labeling team member. The options are as follows:

+
  • 0: The invitation email has not been sent.
  • 1: The invitation email has been sent but the user has not logged in.
  • 2: The user has logged in.
  • 3: The labeling team member has been deleted.

update_time

+

update_time

No

+

No

Long

+

Long

Update time.

+

Update time.

worker_id

+

worker_id

No

+

No

String

+

String

ID of a labeling team member.

+

ID of a labeling team member.

workforce_id

+

workforce_id

No

+

No

String

+

String

ID of a labeling team.

+

ID of a labeling team.

-

Response Parameters

Status code: 201

+

Response Parameters

Status code: 201

-
Table 16 Response body parameters

Parameter

+
- - - - - - - - - - - - - -
Table 16 Response body parameters

Parameter

Type

+

Type

Description

+

Description

dataset_id

+

dataset_id

String

+

String

Dataset ID.

+

Dataset ID.

error_code

+

error_code

String

+

String

Error code.

+

Error code.

error_msg

+

error_msg

String

+

String

Error message.

+

Error message.

import_task_id

+

import_task_id

String

+

String

ID of an import task.

+

ID of an import task.

-

Example Requests

  • Creating an Image Classification Dataset
    {
    +

    Example Requests

    • Creating an Image Classification Dataset
      {
         "workspace_id" : "0",
         "dataset_name" : "dataset-457f",
         "dataset_type" : 0,
      @@ -1022,7 +1021,7 @@
           }
         } ]
       }
      -
    • Creating an Object Detection Dataset
      {
      +
    • Creating an Object Detection Dataset
      {
         "workspace_id" : "0",
         "dataset_name" : "dataset-95a6",
         "dataset_type" : 1,
      @@ -1047,7 +1046,7 @@
           }
         } ]
       }
      -
    • Creating a Table Dataset
      {
      +
    • Creating a Table Dataset
      {
         "workspace_id" : "0",
         "dataset_name" : "dataset-de83",
         "dataset_type" : 400,
      @@ -1084,44 +1083,44 @@
       }
    -

    Example Responses

    Status code: 201

    -

    Created

    -
    {
    +

    Example Responses

    Status code: 201

    +

    Created

    +
    {
       "dataset_id" : "WxCREuCkBSAlQr9xrde"
     }
    -

    Status Codes

    -

    Status Code

    +

    Status Codes

    +
    - - - - - - - - -

    Status Code

    Description

    +

    Description

    201

    +

    201

    Created

    +

    Created

    401

    +

    401

    Unauthorized

    +

    Unauthorized

    403

    +

    403

    Forbidden

    +

    Forbidden

    404

    +

    404

    Not Found

    +

    Not Found

    -

    Error Codes

    See Error Codes.

    +

    Error Codes

    See Error Codes.

    diff --git a/docs/modelarts/api-ref/CreateDatasetVersion.html b/docs/modelarts/api-ref/CreateDatasetVersion.html index 0289102d..b15fad12 100644 --- a/docs/modelarts/api-ref/CreateDatasetVersion.html +++ b/docs/modelarts/api-ref/CreateDatasetVersion.html @@ -1,7 +1,7 @@

    Creating a Dataset Labeling Version

    -

    Function

    This API is used to create a dataset labeling version.

    +

    Function

    This API is used to create a dataset labeling version.

    URI

    POST /v2/{project_id}/datasets/{dataset_id}/versions

    diff --git a/docs/modelarts/api-ref/CreateLabels.html b/docs/modelarts/api-ref/CreateLabels.html index 98b58a86..258eaee7 100644 --- a/docs/modelarts/api-ref/CreateLabels.html +++ b/docs/modelarts/api-ref/CreateLabels.html @@ -1,7 +1,7 @@

    Creating a Dataset Label

    -

    Function

    This API is used to create a dataset label.

    +

    Function

    This API is used to create a dataset label.

    URI

    POST /v2/{project_id}/datasets/{dataset_id}/data-annotations/labels

    @@ -426,7 +426,7 @@
    diff --git a/docs/modelarts/api-ref/modelarts_03_0412.html b/docs/modelarts/api-ref/CreateModelArtsAgency.html similarity index 87% rename from docs/modelarts/api-ref/modelarts_03_0412.html rename to docs/modelarts/api-ref/CreateModelArtsAgency.html index 4a2add09..7bd069c4 100644 --- a/docs/modelarts/api-ref/modelarts_03_0412.html +++ b/docs/modelarts/api-ref/CreateModelArtsAgency.html @@ -1,7 +1,7 @@ - +

    Creating a ModelArts Agency

    -

    Function

    This API is used to create a ModelArts agency for dependent services such as OBS, SWR, and IEF.

    +

    Function

    This API is used to create a ModelArts agency for dependent services such as OBS, SWR, and IEF.

    URI

    POST /v2/{project_id}/agency

    @@ -29,7 +29,7 @@

    Request Parameters

    -
    Table 2 Request body parameters

    Parameter

    +
    @@ -72,7 +72,7 @@ }

    Status Codes

    -
    Table 2 Request body parameters

    Parameter

    Mandatory

    Status Code

    +
    @@ -112,7 +112,7 @@
    diff --git a/docs/modelarts/api-ref/CreateNotebook.html b/docs/modelarts/api-ref/CreateNotebook.html new file mode 100644 index 00000000..c76bdb54 --- /dev/null +++ b/docs/modelarts/api-ref/CreateNotebook.html @@ -0,0 +1,685 @@ + + +

    Creating a Notebook Instance

    +

    Function

    This API is used to create a notebook instance based on the specified flavor, AI engine images, and storage. You can access the instance through a web page or SSH client. \r\n Calling this API is an asynchronous operation. The notebook instance status can be obtained by calling the API for querying the details about this instance.

    +
    +

    Constraints

    None

    +
    +

    URI

    POST /v1/{project_id}/notebooks

    + +

    Status Code

    Description

    + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details, see Obtaining a Project ID.

    +
    +
    + +

    Request Parameters

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Request body parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    description

    +

    No

    +

    String

    +

    Instance description. The value can contain a maximum of 512 characters and cannot contain the following special characters: &<>"'/. By default, this parameter is left blank.

    +

    duration

    +

    No

    +

    Long

    +

    Running duration calculated from the current time, in milliseconds. The instance automatically stops when the duration expires.

    +

    endpoints

    +

    No

    +

    Array of EndpointsReq objects

    +

    Local IDE (such as PyCharm and vsCode) or SSH client for remotely accessing a notebook instance through SSH.

    +

    feature

    +

    No

    +

    String

    +

    Instance type. The default value is NOTEBOOK. Options: - DEFAULT: free CodeLab instance. You can create only one. - NOTEBOOK: billed instance.

    +

    flavor

    +

    Yes

    +

    String

    +

    Instance flavor. Currently, the following flavors are supported: \r\n-modelarts.vm.cpu.2u: General-purpose Intel CPU flavors, ideal for rapid data exploration and tests. \r\n- modelarts.vm.cpu.8u: General computing-plus Intel CPU flavors, ideal for compute-intensive applications. \r\n- modelarts.bm.gpu.v100NV32: One NVIDIA V100 GPU with 32 GB of memory, ideal for training and debugging deep learning algorithms. \r\n- modelarts.bm.d910.xlarge.1: One Arm-powered Ascend 910 processor with 32 GB of GPU memory, ideal for training and debugging deep learning models. \r\n- modelarts.bm.d910.xlarge.2: Two Arm-powered Ascend 910 processors, each with 32 GB of GPU memory, ideal for training and debugging deep learning models. \r\n- modelarts.bm.d910.xlarge.8: Eight Arm-powered Ascend 910 processors, each with 32 GB of GPU memory, ideal for training and debugging deep learning algorithms. \r\n\r\n The preceding flavors are for reference only. The flavors available in specific regions are displayed on the console.

    +

    image_id

    +

    Yes

    +

    String

    +

    ID of the image used for creating notebook instances. The ID is in Universally Unique Identifier (UUID) format. \r\n For details, see Querying Supported Images.

    +

    name

    +

    Yes

    +

    String

    +

    Instance name, which contains a maximum of 64 characters that can be duplicate. The name can contain uppercase letters, lowercase letters, digits, hyphens (-), and underscores (_).

    +

    pool_id

    +

    No

    +

    String

    +

    ID of a dedicated resource pool, for example, pool41664192. This parameter is mandatory if a dedicated resource pool needs to be specified for creating an instance.

    +

    volume

    +

    Yes

    +

    VolumeReq object

    +

    Storage volume.

    +

    workspace_id

    +

    No

    +

    String

    +

    Workspace ID. If no workspaces are available, the default value is 0.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 3 EndpointsReq

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    allowed_access_ips

    +

    No

    +

    Array of strings

    +

    Public IP addresses that can remotely access the notebook instance. A maximum of five public IP addresses are supported.

    +

    dev_service

    +

    No

    +

    String

    +

    Supported services. Options: - NOTEBOOK: You can access the notebook instance using HTTPS.- SSH: You can remotely access the notebook instance through SSH.

    +

    ssh_keys

    +

    No

    +

    Array of strings

    +

    Name of the SSH key pair, which can be created and viewed on the Key Pair page of the Elastic Cloud Server (ECS) console.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 4 VolumeReq

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    capacity

    +

    No

    +

    Integer

    +

    Storage capacity. The default value is 5 GB for EVS and 50 GB for EFS. The maximum value is 4,096 GB.

    +

    category

    +

    Yes

    +

    String

    +

    Storage category. Options: \r\n-EFS: Scalable File Service (SFS), which is the default storage. \r\n-EVS: Elastic Volume Service (EVS). \r\n\r\n For details about the differences between the two types of storage, see Selecting a Storage Type in DevEnviron.\r\n.\r\n\r\n\r\n\r\n

    +

    ownership

    +

    Yes

    +

    String

    +

    Owner to which the resource belongs. Options: - MANAGED: Resources are managed by services.- DEDICATED: Resources are managed by the user account. This mode is supported only when the instance category is EFS.

    +

    uri

    +

    No

    +

    String

    +

    URI of the EFS. This parameter is mandatory only when the instance category is EFS and ownership is DEDICATED. An example URI is 192.168.0.1:/user-9sfdsdgdfgh5ea4d56871e75d6966aa274/mount/.

    +
    +
    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 5 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    action_progress

    +

    Array of JobProgress objects

    +

    Instance initialization progress.

    +

    description

    +

    String

    +

    Instance description

    +

    endpoints

    +

    Array of EndpointsRes objects

    +

    Local IDE (such as PyCharm and vsCode) or SSH client for remotely accessing a notebook instance through SSH.

    +

    fail_reason

    +

    String

    +

    Instance failure cause

    +

    feature

    +

    String

    +

    Instance type. Options: - DEFAULT: free CodeLab instance. You can create only one. - NOTEBOOK: billed instance.

    +

    flavor

    +

    String

    +

    Instance flavor

    +

    id

    +

    String

    +

    Instance ID.

    +

    image

    +

    Image object

    +

    Instance image

    +

    lease

    +

    Lease object

    +

    Countdown to automatic instance stop.

    +

    name

    +

    String

    +

    Instance name

    +

    pool

    +

    Pool object

    +

    Basic information about the dedicated pool, which is returned by the instance created in the dedicated pool.

    +

    status

    +

    String

    +

    Instance status Options: \r\n-INIT: The instance is being initialized. \r\n-CREATING: The instance is being created. \r\n-STARTING: The instance is starting. \r\n-STOPPING: The instance is stopping. \r\n-DELETING: The instance is being deleted.\r\n-RUNNING: The instance is running.\r\n-STOPPED: The instance is stopped.\r\n-SNAPSHOTTING: A snapshot is being taken for the instance (status when the image is being saved).\r\n-CREATE_FAILED: The instance fails to be created. \r\n-START_FAILED: The instance fails to be started. \r\n-DELETE_FAILED: The instance fails to be deleted.\r\n-ERROR: An error occurs. \r\n-DELETED: The instance is deleted. \r\n-FROZEN: The instance is frozen.

    +

    token

    +

    String

    +

    Token used for notebook authentication

    +

    url

    +

    String

    +

    URL for accessing the notebook instance

    +

    volume

    +

    VolumeRes object

    +

    Storage volume

    +

    workspace_id

    +

    String

    +

    Workspace ID. If no workspaces are available, the default value is 0.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 6 JobProgress

    Parameter

    +

    Type

    +

    Description

    +

    notebook_id

    +

    String

    +

    Instance ID.

    +

    status

    +

    String

    +

    Job status in a specified step. Options: - WAITING: The job is waiting to begin. - PROCESSING: The job is being processed. - FAILED: The job failed. - COMPLETED: The task is complete.

    +

    step

    +

    Integer

    +

    Job step. Options: - 1: Storage preparation. - 2: Computing resource preparation. - 3: Network configurations. - 4: Instance initialization.

    +

    step_description

    +

    String

    +

    Description of a step in a job.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 7 EndpointsRes

    Parameter

    +

    Type

    +

    Description

    +

    allowed_access_ips

    +

    Array of strings

    +

    Whitelist of public IP addresses that are allowed to access the notebook instance through SSH. By default, all public IP addresses can access the notebook instance. If this parameter is specified, only the clients with the specified IP addresses can access the notebook instance.

    +

    dev_service

    +

    String

    +

    Supported services. Options: - NOTEBOOK: You can access the notebook instance using HTTPS.- SSH: You can remotely access the notebook instance through SSH.

    +

    ssh_keys

    +

    Array of strings

    +

    List of SSH key pairs. You can set multiple key pairs to access an SSH instance at the same time.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 8 Image

    Parameter

    +

    Type

    +

    Description

    +

    id

    +

    String

    +

    Image ID

    +

    name

    +

    String

    +

    Image name.

    +

    swr_path

    +

    String

    +

    SWR image address

    +

    type

    +

    String

    +

    Image type. Options: - BUILD_IN: built-in system image- DEDICATED: image saved by the user

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 9 Lease

    Parameter

    +

    Type

    +

    Description

    +

    create_time

    +

    Long

    +

    Time (UTC) when the instance is created, accurate to millisecond.

    +

    duration

    +

    Long

    +

    Instance running duration, which is calculated based on the instance creation time. If the instance creation time plus the duration is greater than the current time, the system automatically stops the instance.

    +

    enable

    +

    Boolean

    +

    Whether to enable auto stop of the instance.

    +

    update_time

    +

    Long

    +

    Time (UTC) when the instance is last updated (excluding the keepalive heartbeat time), accurate to millisecond.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 10 Pool

    Parameter

    +

    Type

    +

    Description

    +

    id

    +

    String

    +

    ID of a dedicated resource pool

    +

    name

    +

    String

    +

    Name of a dedicated resource pool

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 11 VolumeRes

    Parameter

    +

    Type

    +

    Description

    +

    capacity

    +

    Integer

    +

    Storage capacity. The default value is 5 GB for EVS and 50 GB for EFS. The maximum value is 4,096 GB.

    +

    category

    +

    String

    +

    Storage category. Options: \r\n-EFS: Scalable File Service (SFS), which is the default storage. \r\n-EVS: Elastic Volume Service (EVS). \r\n\r\n For details about the differences between the two types of storage, see Selecting a Storage Type in DevEnviron.\r\n.\r\n\r\n\r\n\r\n

    +

    mount_path

    +

    String

    +

    Directory of the notebook instance to which OBS storage is mounted. Currently, the directory is /home/ma-user/work/.

    +

    ownership

    +

    String

    +

    Owner to which the resource belongs. Options: - MANAGED: Resources are managed by services.- DEDICATED: Resources are managed by the user account. This mode is supported only when the instance category is EFS.

    +

    status

    +

    String

    +

    EVS disk capacity expansion status, which is RESIZING during capacity expansion and does not affect the instance.

    +
    +
    +
    +

    Example Requests

    {
    +  "name" : "notebooks_test",
    +  "feature" : "NOTEBOOK",
    +  "workspace_id" : "0",
    +  "description" : "api-test",
    +  "flavor" : "modelarts.vm.cpu.2u",
    +  "image_id" : "e1a07296-22a8-4f05-8bc8-e936c8e54090",
    +  "volume" : {
    +    "category" : "efs",
    +    "ownership" : "managed",
    +    "capacity" : 50
    +  }
    +}
    +
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
    +  "action_progress" : [ {
    +    "step" : 1,
    +    "status" : "WAITING",
    +    "description" : "Prepare the storage."
    +  }, {
    +    "step" : 2,
    +    "status" : "WAITING",
    +    "description" : "Prepare the compute resource."
    +  }, {
    +    "step" : 3,
    +    "status" : "WAITING",
    +    "description" : "Configuring the network."
    +  }, {
    +    "step" : 4,
    +    "status" : "WAITING",
    +    "description" : "Initialize the notebook instance."
    +  } ],
    +  "create_at" : 1638841744521,
    +  "description" : "api-test",
    +  "feature" : "NOTEBOOK",
    +  "flavor" : "modelarts.vm.cpu.2u",
    +  "id" : "f9937afa-4451-42db-a76b-72d624749f66",
    +  "image" : {
    +    "description" : "description",
    +    "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54090",
    +    "name" : "notebook2.0-mul-kernel-cpu-cp36",
    +    "swr_path" : "swr..xxxx.com/atelier/notebook2.0-mul-kernel-cpu-cp36:3.3.2-release_v1",
    +    "tag" : "3.3.2-release_v1",
    +    "type" : "BUILD_IN"
    +  },
    +  "lease" : {
    +    "create_at" : 1638841744515,
    +    "duration" : 3600000,
    +    "enable" : true,
    +    "update_at" : 1638841744515
    +  },
    +  "name" : "notebooks_test",
    +  "status" : "CREATING",
    +  "token" : "3eff13f2-3d70-5456-6dc7-e3f99f562022",
    +  "update_at" : 1638841744522,
    +  "workspace_id" : "0"
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    OK

    +

    201

    +

    Created

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +

    404

    +

    Not Found

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    + +
    + +
    + diff --git a/docs/modelarts/api-ref/CreateProcessorTask.html b/docs/modelarts/api-ref/CreateProcessorTask.html new file mode 100644 index 00000000..bf9f25ba --- /dev/null +++ b/docs/modelarts/api-ref/CreateProcessorTask.html @@ -0,0 +1,556 @@ + + +

    Creating a Processing Task

    +

    Function

    This API is used to create a processing task. You can create data processing tasks. You can specify the id field of template composite parameter in the request body to create a task.- Data processing refers to extracting or generating data that is valuable and meaningful to a particular person from a large amount of, cluttered, and incomprehensible data. Data processing includes data validation, data cleansing, data selection, and data augmentation. * Data validation indicates that the dataset is verified to ensure data accuracy. * Data cleansing refers to the process of denoising, correcting, or supplementing data. * Data selection indicates the process of selecting data subsets from full data. * Data augmentation indicates that data volume is increased through simple data amplification operations such as scaling, cropping, transformation, and composition.

    +
    +

    URI

    POST /v2/{project_id}/processor-tasks

    + +
    + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +
    +
    +
    +

    Request Parameters

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Request body parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    create_version

    +

    No

    +

    Boolean

    +

    Whether to synchronously create a task version when creating a task. Set this parameter to true only when creating a data processing task. For other types of tasks, this parameter is set to false or left blank. The options are as follows:

    +
    • true: Create a task version when creating a task.
    • false: Do not create a task version when creating a task. (Default value)
    +

    data_source

    +

    No

    +

    ProcessorDataSource object

    +

    Data source. Either this parameter or inputs is used. A data source path cannot be an OBS path in a KMS-encrypted bucket.

    +

    description

    +

    No

    +

    String

    +

    Description of a data processing task. The description contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

    +

    inputs

    +

    No

    +

    Array of ProcessorDataSource objects

    +

    Data sources. Either this parameter or data_source is used. A data source path cannot be an OBS path in a KMS-encrypted bucket.

    +

    name

    +

    Yes

    +

    String

    +

    Name of a data processing task.

    +

    template

    +

    No

    +

    TemplateParam object

    +

    Data processing template, such as the algorithm ID and parameters.

    +

    version_id

    +

    No

    +

    String

    +

    Dataset version ID.

    +

    work_path

    +

    No

    +

    WorkPath object

    +

    Work directory of a data processing task. A work directory cannot be an OBS path in a KMS-encrypted bucket.

    +

    workspace_id

    +

    No

    +

    String

    +

    Workspace ID. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 3 ProcessorDataSource

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    name

    +

    No

    +

    String

    +

    Dataset name.

    +

    source

    +

    No

    +

    String

    +

    Data source path. The options are as follows:

    +
    • If type is set to OBS, source is an OBS path.
    • If type is set to TASK, source is a task ID.
    • If type is set to DATASET, source is a dataset ID.
    • If type is set to CUSTOM and the API is called by resource tenants, set source to the project_id of the actual user. Otherwise, this field is left blank.
    +

    type

    +

    No

    +

    String

    +

    Data source type. The options are as follows:

    +
    • OBS: Data obtained from OBS
    • TASK: Data processing task
    • DATASET: Dataset
    • CUSTOM: Data called by resource tenants
    +

    version_id

    +

    No

    +

    String

    +

    Version of a dataset.

    +

    version_name

    +

    No

    +

    String

    +

    Dataset version name.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 4 TemplateParam

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    id

    +

    No

    +

    String

    +

    Task type, that is, ID of a data processing template. The options are as follows:

    +
    • sys_data_analyse: feature analysis
    • sys_data_cleaning: data cleansing
    • sys_data_augmentation: data augmentation
    • sys_data_validation: data validation
    • sys_data_selection: data selection
    +

    name

    +

    No

    +

    String

    +

    Template name.

    +

    operator_params

    +

    No

    +

    Array of OperatorParam objects

    +

    Operator parameter list.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 5 OperatorParam

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    advanced_params_switch

    +

    No

    +

    Boolean

    +

    Advanced parameter switch.

    +

    id

    +

    No

    +

    String

    +

    ID of an operator.

    +

    name

    +

    No

    +

    String

    +

    Name of an operator.

    +

    params

    +

    No

    +

    Object

    +

    Operator parameter. The parameter type is map<string,object>. Currently, object only supports the types of Boolean, Integer, Long, String, List and Map<String,String>. For two special scenarios of object detection and image classification in a data preprocessing task, the value of task_type is object_detection or image_classification.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 6 WorkPath

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    name

    +

    No

    +

    String

    +

    Dataset name.

    +

    output_path

    +

    No

    +

    String

    +

    Output path.

    +

    path

    +

    No

    +

    String

    +

    Working path. The options are as follows:

    +
    • If type is set to OBS, source is an OBS path.
    • If type is set to DATASET, source is a dataset ID.
    +

    type

    +

    No

    +

    String

    +

    Type of a working path. The options are as follows:

    +
    • OBS: OBS path
    • DATASET: dataset
    +

    version_id

    +

    No

    +

    String

    +

    Version of a dataset.

    +

    version_name

    +

    No

    +

    String

    +

    Name of a dataset version. The value can contain 0 to 32 characters. Only digits, letters, underscores (_), and hyphens (-) are allowed.

    +
    +
    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + +
    Table 7 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    task_id

    +

    String

    +

    ID of a data processing task.

    +
    +
    +
    +

    Example Requests

    • Creating a Data Processing (Data Validation) Task
      {
      +  "name" : "PRE-e77c",
      +  "inputs" : [ {
      +    "type" : "DATASET",
      +    "source" : "PYc9H2HGv5BJNwBGXyK",
      +    "version_id" : "yoJ5ssClpNlOrsjjFDa"
      +  } ],
      +  "work_path" : {
      +    "type" : "DATASET",
      +    "path" : "PYc9H2HGv5BJNwBGXyK",
      +    "version_name" : "V0010"
      +  },
      +  "description" : "",
      +  "create_version" : true,
      +  "template" : {
      +    "id" : "sys_data_validation",
      +    "operator_params" : [ {
      +      "name" : "MetaValidation",
      +      "advanced_params_switch" : false,
      +      "params" : {
      +        "task_type" : "image_classification",
      +        "dataset_type" : "manifest",
      +        "source_service" : "select",
      +        "filter_func" : "data_validation_select",
      +        "image_max_width" : "1920",
      +        "image_max_height" : "1920",
      +        "total_status" : "[0,1,2]"
      +      }
      +    } ]
      +  },
      +  "workspace_id" : "0"
      +}
      +
    • Creating a Data Processing (Data Cleansing) Task
      {
      +  "name" : "PRE-330f",
      +  "inputs" : [ {
      +    "type" : "DATASET",
      +    "source" : "gfghHSokody6AJigS5A",
      +    "version_id" : "54IXbeJhfttGpL46lbv"
      +  } ],
      +  "work_path" : {
      +    "type" : "DATASET",
      +    "path" : "gfghHSokody6AJigS5A",
      +    "version_name" : "V004"
      +  },
      +  "description" : "",
      +  "create_version" : true,
      +  "template" : {
      +    "id" : "sys_data_cleaning",
      +    "operator_params" : [ {
      +      "name" : "PCC",
      +      "advanced_params_switch" : false,
      +      "params" : {
      +        "task_type" : "image_classification",
      +        "dataset_type" : "manifest",
      +        "source_service" : "select",
      +        "filter_func" : "data_cleaning_select",
      +        "prototype_sample_path" : "obs://test-obs/classify/data/cat-rabbit/",
      +        "criticism_sample_path" : "",
      +        "n_clusters" : "auto",
      +        "simlarity_threshold" : "0.9",
      +        "embedding_distance" : "0.2",
      +        "checkpoint_path" : "/home/work/user-job-dir/test-lxm/resnet_v1_50",
      +        "total_status" : "[0,2]",
      +        "do_validation" : "True"
      +      }
      +    } ]
      +  },
      +  "workspace_id" : "0"
      +}
      +
    • Creating a Data Processing (Data Selection) Task
      {
      +  "name" : "PRE-aae5",
      +  "inputs" : [ {
      +    "type" : "DATASET",
      +    "source" : "gLNSdlQ1iAAmPgl0Won",
      +    "version_id" : "WAVPSYpKE3FggbgRxiK"
      +  } ],
      +  "work_path" : {
      +    "type" : "DATASET",
      +    "path" : "gLNSdlQ1iAAmPgl0Won",
      +    "version_name" : "V003"
      +  },
      +  "description" : "",
      +  "create_version" : true,
      +  "template" : {
      +    "id" : "sys_data_selection",
      +    "operator_params" : [ {
      +      "name" : "SimDeduplication",
      +      "advanced_params_switch" : false,
      +      "params" : {
      +        "task_type" : "image_classification",
      +        "dataset_type" : "manifest",
      +        "source_service" : "select",
      +        "filter_func" : "data_deduplication_select",
      +        "simlarity_threshold" : "0.9",
      +        "total_status" : "[0,2]",
      +        "do_validation" : "True"
      +      }
      +    } ]
      +  },
      +  "workspace_id" : "0"
      +}
      +
    • Creating a Data Processing (Data Augmentation) Task
      {
      +  "name" : "PRE-637c",
      +  "inputs" : [ {
      +    "type" : "DATASET",
      +    "source" : "XGrRZuCV1qmMxnsmD5u",
      +    "version_id" : "kjPDTOSi6BQqhtXZlFv"
      +  } ],
      +  "work_path" : {
      +    "type" : "DATASET",
      +    "path" : "XGrRZuCV1qmMxnsmD5u",
      +    "version_name" : "V002"
      +  },
      +  "description" : "",
      +  "create_version" : true,
      +  "template" : {
      +    "id" : "sys_data_augmentation",
      +    "operator_params" : [ {
      +      "name" : "AddNoise",
      +      "advanced_params_switch" : false,
      +      "params" : {
      +        "task_type" : "image_classification",
      +        "dataset_type" : "manifest",
      +        "AddNoise" : "1",
      +        "noise_type" : "Gauss",
      +        "loc" : "0",
      +        "scale" : "1",
      +        "lam" : "2",
      +        "p" : "0.01",
      +        "total_status" : "[3]",
      +        "filter_func" : "data_augmentation",
      +        "do_validation" : "True"
      +      }
      +    } ]
      +  },
      +  "workspace_id" : "0"
      +}
      +
    +
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
    +  "task_id" : "SNEJua7qdZZN8GvkcEr"
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    OK

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +

    404

    +

    Not Found

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/CreateProcessorTaskVersion.html b/docs/modelarts/api-ref/CreateProcessorTaskVersion.html new file mode 100644 index 00000000..1bea592c --- /dev/null +++ b/docs/modelarts/api-ref/CreateProcessorTaskVersion.html @@ -0,0 +1,487 @@ + + +

    Creating a Data Processing Task Version

    +

    Function

    This API is used to create a data processing task version.

    +
    +

    URI

    POST /v2/{project_id}/processor-tasks/{task_id}/versions

    + +
    + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    task_id

    +

    Yes

    +

    String

    +

    ID of a data processing task.

    +
    +
    +
    +

    Request Parameters

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Request body parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    create_version

    +

    No

    +

    Boolean

    +

    Whether to synchronously create a task version when creating a task. The options are as follows:

    +
    • true: Create a task version when creating a task.

      +
    • false: Do not create a task version when creating a task. (Default value)

      +
    +

    data_source

    +

    No

    +

    ProcessorDataSource object

    +

    Data source. Either this parameter or inputs is delivered.

    +

    description

    +

    No

    +

    String

    +

    Description of a data processing task. The description contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

    +

    inputs

    +

    No

    +

    Array of ProcessorDataSource objects

    +

    Data source list. Either this parameter or data_source is delivered.

    +

    name

    +

    Yes

    +

    String

    +

    Name of a data processing task.

    +

    task_id

    +

    Yes

    +

    String

    +

    ID of a data processing task.

    +

    template

    +

    No

    +

    TemplateParam object

    +

    Data processing template, such as the algorithm ID and parameters.

    +

    version_id

    +

    No

    +

    String

    +

    Dataset version ID.

    +

    work_path

    +

    No

    +

    WorkPath object

    +

    Working directory of a data processing task.

    +

    workspace_id

    +

    No

    +

    String

    +

    Workspace ID. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 3 ProcessorDataSource

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    name

    +

    No

    +

    String

    +

    Dataset name.

    +

    source

    +

    No

    +

    String

    +

    Data source path. The options are as follows:

    +
    • If type is set to OBS, source is an OBS path.

      +
    • If type is set to TASK, source is a task ID.

      +
    • If type is set to DATASET, source is a dataset ID.

      +
    • If type is set to CUSTOM and the API is called by resource tenants, set source to the project_id of the actual user. Otherwise, this field is left blank.

      +
    +

    type

    +

    No

    +

    String

    +

    Data source type. The options are as follows:

    +
    • OBS: Data obtained from OBS

      +
    • TASK: Data processing task

      +
    • DATASET: Dataset

      +
    • CUSTOM: Data called by resource tenants

      +
    +

    version_id

    +

    No

    +

    String

    +

    Version of a dataset.

    +

    version_name

    +

    No

    +

    String

    +

    Dataset version name.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 4 TemplateParam

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    id

    +

    No

    +

    String

    +

    Task type, that is, ID of a data processing template. The options are as follows:

    +
    • sys_data_analyse: feature analysis

      +
    • sys_data_cleaning: data cleansing

      +
    • sys_data_augmentation: data augmentation

      +
    • sys_data_validation: data validation

      +
    • sys_data_selection: data selection

      +
    +

    name

    +

    No

    +

    String

    +

    Template name.

    +

    operator_params

    +

    No

    +

    Array of OperatorParam objects

    +

    Operator parameter list.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 5 OperatorParam

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    advanced_params_switch

    +

    No

    +

    Boolean

    +

    Advanced parameter switch.

    +

    id

    +

    No

    +

    String

    +

    ID of an operator.

    +

    name

    +

    No

    +

    String

    +

    Name of an operator.

    +

    params

    +

    No

    +

    Object

    +

    Operator parameter. The parameter type is map<string,object>. Currently, object only supports the types of Boolean, Integer, Long, String, List and Map<String,String>. For two special scenarios of object detection and image classification in a data preprocessing task, the value of task_type is object_detection or image_classification.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 6 WorkPath

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    name

    +

    No

    +

    String

    +

    Dataset name.

    +

    output_path

    +

    No

    +

    String

    +

    Output path.

    +

    path

    +

    No

    +

    String

    +

    Working path. The options are as follows:

    +
    • If type is set to OBS, source is an OBS path.

      +
    • If type is set to DATASET, source is a dataset ID.

      +
    +

    type

    +

    No

    +

    String

    +

    Type of a working path. The options are as follows:

    +
    • OBS: OBS path

      +
    • DATASET: dataset

      +
    +

    version_id

    +

    No

    +

    String

    +

    Version of a dataset.

    +

    version_name

    +

    No

    +

    String

    +

    Name of a dataset version. The value can contain 0 to 32 characters. Only digits, letters, underscores (_), and hyphens (-) are allowed.

    +
    +
    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + +
    Table 7 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    version_id

    +

    String

    +

    Version ID of a data processing task.

    +
    +
    +
    +

    Example Requests

    Creating a Data Validation Task Version

    +
    {
    +  "name" : "PRE-e77c",
    +  "inputs" : [ {
    +    "type" : "DATASET",
    +    "source" : "PYc9H2HGv5BJNwBGXyK",
    +    "version_id" : "Osc8SZ7TZStiRV4vYkZ"
    +  } ],
    +  "work_path" : {
    +    "type" : "DATASET",
    +    "path" : "PYc9H2HGv5BJNwBGXyK",
    +    "version_name" : "V0011"
    +  },
    +  "description" : "",
    +  "template" : {
    +    "id" : "sys_data_validation",
    +    "operator_params" : [ {
    +      "name" : "MetaValidation",
    +      "advanced_params_switch" : false,
    +      "params" : {
    +        "task_type" : "image_classification",
    +        "dataset_type" : "manifest",
    +        "source_service" : "select",
    +        "filter_func" : "data_validation_select",
    +        "image_max_width" : "1920",
    +        "image_max_height" : "1920",
    +        "total_status" : "[0,1,2]"
    +      }
    +    } ]
    +  },
    +  "workspace_id" : "0"
    +}
    +
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
    +  "version_id" : "qSaudx2sbPvthHygckA"
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    OK

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +

    404

    +

    Not Found

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/CreateTask.html b/docs/modelarts/api-ref/CreateTask.html new file mode 100644 index 00000000..1747bb6e --- /dev/null +++ b/docs/modelarts/api-ref/CreateTask.html @@ -0,0 +1,1403 @@ + + +

    Starting Intelligent Tasks

    +

    Function

    This API is used to start an intelligent task, which can be an auto labeling task or an auto grouping task. You can specify task_type in the request body to start a type of tasks. The datasets whose data path or work path is an OBS path in a KMS-encrypted bucket support pre-labeling but do not support active learning and auto grouping.- Auto labeling: Learning and training are performed based on selected labels and images and an existing model is selected to quickly label the remaining images. Auto labeling includes active learning and pre-labeling. Active learning: The system uses semi-supervised learning and hard example filtering to perform auto labeling, reducing manual labeling workload and helping you find hard examples. Pre-labeling: Select a model displayed on the Model Management page for auto labeling.- Auto grouping: Unlabeled images are clustered using a clustering algorithm and then processed based on the clustering result. Images can be labeled or cleaned by group.

    +
    +

    URI

    POST /v2/{project_id}/datasets/{dataset_id}/tasks

    + +
    + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    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.

    +
    +
    +
    +

    Request Parameters

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Request body parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    collect_key_sample

    +

    No

    +

    Boolean

    +

    Whether to collect key samples. The options are as follows:

    +
    • true: Collect key samples.
    • false: Do not collect key samples. (Default value)
    +

    config

    +

    No

    +

    SmartTaskConfig object

    +

    Task configuration.

    +

    model_id

    +

    No

    +

    String

    +

    Model ID.

    +

    task_type

    +

    No

    +

    String

    +

    Task type. The options are as follows:

    +
    • auto-label: active learning
    • pre-label: pre-labeling
    • auto-grouping: auto grouping
    • auto-deploy: one-click model deployment
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 3 SmartTaskConfig

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    algorithm_type

    +

    No

    +

    String

    +

    Algorithm type for auto labeling. Options:

    +
    • fast: Only labeled samples are used for training. This type of algorithm achieves faster labeling.
    • accurate: In addition to labeled samples, unlabeled samples are used for semi-supervised training. This type of algorithm achieves more accurate labeling.
    +

    ambiguity

    +

    No

    +

    Boolean

    +

    Whether to perform clustering based on the image blurring degree.

    +

    annotation_output

    +

    No

    +

    String

    +

    Output path of the active learning labeling result.

    +

    collect_rule

    +

    No

    +

    String

    +

    Sample collection rule. The default value is all, indicating full collection. Currently, only value all is available.

    +

    collect_sample

    +

    No

    +

    Boolean

    +

    Whether to enable sample collection. The options are as follows:

    +
    • true: Enable sample collection. (Default value)
    • false: Do not enable sample collection.
    +

    confidence_scope

    +

    No

    +

    String

    +

    Confidence range of key samples. The minimum and maximum values are separated by hyphens (-). Example: 0.10-0.90.

    +

    description

    +

    No

    +

    String

    +

    Task description.

    +

    engine_name

    +

    No

    +

    String

    +

    Engine name.

    +

    export_format

    +

    No

    +

    Integer

    +

    Format of the exported directory. The options are as follows:

    +
    • 1: tree structure. For example: cat/1.jpg,rabbit/2.jpg.
    • 2: tile structure. For example: 1.jpg, 1.txt; 2.jpg,2.txt.
    +

    export_params

    +

    No

    +

    ExportParams object

    +

    Parameters of a dataset export task.

    +

    flavor

    +

    No

    +

    Flavor object

    +

    Training resource flavor.

    +

    image_brightness

    +

    No

    +

    Boolean

    +

    Whether to perform clustering based on the image brightness.

    +

    image_colorfulness

    +

    No

    +

    Boolean

    +

    Whether to perform clustering based on the image color.

    +

    inf_cluster_id

    +

    No

    +

    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

    +

    No

    +

    Array of InfConfig objects

    +

    Configuration list required for running an inference task, which is optional and left blank by default.

    +

    inf_output

    +

    No

    +

    String

    +

    Output path of inference in active learning.

    +

    infer_result_output_dir

    +

    No

    +

    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

    +

    No

    +

    String

    +

    Output path of hard examples in active learning.

    +

    log_url

    +

    No

    +

    String

    +

    OBS URL of the logs of a training job. By default, this parameter is left blank.

    +

    manifest_path

    +

    No

    +

    String

    +

    Path of the manifest file, which is used as the input for training and inference.

    +

    model_id

    +

    No

    +

    String

    +

    Model ID.

    +

    model_name

    +

    No

    +

    String

    +

    Model name.

    +

    model_parameter

    +

    No

    +

    String

    +

    Model parameter.

    +

    model_version

    +

    No

    +

    String

    +

    Model version.

    +

    n_clusters

    +

    No

    +

    Integer

    +

    Number of clusters.

    +

    name

    +

    No

    +

    String

    +

    Task name.

    +

    output_dir

    +

    No

    +

    String

    +

    Sample output path. The format is as follows: Dataset output path/Dataset name-Dataset ID/annotation/auto-deploy/. Example: /test/work_1608083108676/dataset123-g6IO9qSu6hoxwCAirfm/annotation/auto-deploy/.

    +

    parameters

    +

    No

    +

    Array of TrainingParameter objects

    +

    Runtime parameters of a training job

    +

    pool_id

    +

    No

    +

    String

    +

    ID of a resource pool.

    +

    property

    +

    No

    +

    String

    +

    Attribute name.

    +

    req_uri

    +

    No

    +

    String

    +

    Inference path of a batch job.

    +

    result_type

    +

    No

    +

    Integer

    +

    Processing mode of auto grouping results. The options are as follows:

    +
    • 0: Save to OBS.
    • 1: Save to samples.
    +

    samples

    +

    No

    +

    Array of SampleLabels objects

    +

    List of labeling information for samples to be auto labeled.

    +

    stop_time

    +

    No

    +

    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

    +

    No

    +

    String

    +

    Timestamp in active learning.

    +

    train_data_path

    +

    No

    +

    String

    +

    Path for storing existing training datasets.

    +

    train_url

    +

    No

    +

    String

    +

    URL of the OBS path where the file of a training job is outputted. By default, this parameter is left blank.

    +

    version_format

    +

    No

    +

    String

    +

    Format of a dataset version. The options are as follows:

    +
    • Default: default format
    • CarbonData: CarbonData (supported only by table datasets)
    • CSV: CSV
    +

    worker_server_num

    +

    No

    +

    Integer

    +

    Number of workers in a training job.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 4 ExportParams

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    clear_hard_property

    +

    No

    +

    Boolean

    +

    Whether to clear hard example attributes. The options are as follows:

    +
    • true: Clear hard example attributes. (Default value)
    • false: Do not clear hard example attributes.
    +

    export_dataset_version_format

    +

    No

    +

    String

    +

    Format of the dataset version to which data is exported.

    +

    export_dataset_version_name

    +

    No

    +

    String

    +

    Name of the dataset version to which data is exported.

    +

    export_dest

    +

    No

    +

    String

    +

    Export destination. The options are as follows:

    +
    • DIR: Export data to OBS. (Default value)
    • NEW_DATASET: Export data to a new dataset.
    +

    export_new_dataset_name

    +

    No

    +

    String

    +

    Name of the new dataset to which data is exported.

    +

    export_new_dataset_work_path

    +

    No

    +

    String

    +

    Working directory of the new dataset to which data is exported.

    +

    ratio_sample_usage

    +

    No

    +

    Boolean

    +

    Whether to randomly allocate the training set and validation set based on the specified ratio. The options are as follows:

    +
    • true: Allocate the training set and validation set.
    • false: Do not allocate the training set and validation set. (Default value)
    +

    sample_state

    +

    No

    +

    String

    +

    Sample status. The options are as follows:

    +
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed
    +

    samples

    +

    No

    +

    Array of strings

    +

    ID list of exported samples.

    +

    search_conditions

    +

    No

    +

    Array of SearchCondition objects

    +

    Exported search conditions. The relationship between multiple search conditions is OR.

    +

    train_sample_ratio

    +

    No

    +

    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.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 5 SearchCondition

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    coefficient

    +

    No

    +

    String

    +

    Filter by coefficient of difficulty.

    +

    frame_in_video

    +

    No

    +

    Integer

    +

    A frame in the video.

    +

    hard

    +

    No

    +

    String

    +

    Whether a sample is a hard sample. The options are as follows:

    +
    • 0: non-hard sample
    • 1: hard sample
    +

    import_origin

    +

    No

    +

    String

    +

    Filter by data source.

    +

    kvp

    +

    No

    +

    String

    +

    CT dosage, filtered by dosage.

    +

    label_list

    +

    No

    +

    SearchLabels object

    +

    Label search criteria.

    +

    labeler

    +

    No

    +

    String

    +

    Labeler.

    +

    metadata

    +

    No

    +

    SearchProp object

    +

    Search by sample attribute.

    +

    parent_sample_id

    +

    No

    +

    String

    +

    Parent sample ID.

    +

    sample_dir

    +

    No

    +

    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

    +

    No

    +

    String

    +

    Search by sample name, including the file name extension.

    +

    sample_time

    +

    No

    +

    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. The options are as follows:- month: Search for samples added from 30 days ago to the current day.- day: Search for samples added from yesterday (one day ago) to the current day.- yyyyMMdd-yyyyMMdd: Search for samples added in a specified period (at most 30 days), in the format of Start date-End date. For example, 20190901-2019091501 indicates that samples generated from September 1 to September 15, 2019 are searched.

    +

    score

    +

    No

    +

    String

    +

    Search by confidence.

    +

    slice_thickness

    +

    No

    +

    String

    +

    DICOM layer thickness. Samples are filtered by layer thickness.

    +

    study_date

    +

    No

    +

    String

    +

    DICOM scanning time.

    +

    time_in_video

    +

    No

    +

    String

    +

    A time point in the video.

    +
    +
    + +
    + + + + + + + + + + + + + + + + +
    Table 6 SearchLabels

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    labels

    +

    No

    +

    Array of SearchLabel objects

    +

    List of label search criteria.

    +

    op

    +

    No

    +

    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. The options are as follows:

    +
    • OR: OR operation
    • AND: AND operation
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 7 SearchLabel

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    name

    +

    No

    +

    String

    +

    Label name.

    +

    op

    +

    No

    +

    String

    +

    Operation type between multiple attributes. The options are as follows:

    +
    • OR: OR operation
    • AND: AND operation
    +

    property

    +

    No

    +

    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

    +

    No

    +

    Integer

    +

    Label type. The options are as follows:

    +
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    +
    +
    + +
    + + + + + + + + + + + + + + + + +
    Table 8 SearchProp

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    op

    +

    No

    +

    String

    +

    Relationship between attribute values. The options are as follows:

    +
    • AND: AND relationship
    • OR: OR relationship
    +

    props

    +

    No

    +

    Map<String,Array<String>>

    +

    Search criteria of an attribute. Multiple search criteria can be set.

    +
    +
    + +
    + + + + + + + + + + + +
    Table 9 Flavor

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    code

    +

    No

    +

    String

    +

    Attribute code of a resource specification, which is used for task creating.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 10 InfConfig

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    envs

    +

    No

    +

    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, such as plaintext passwords, in environment variables.

    +

    instance_count

    +

    No

    +

    Integer

    +

    Instance number of model deployment, that is, the number of compute nodes.

    +

    model_id

    +

    No

    +

    String

    +

    Model ID.

    +

    specification

    +

    No

    +

    String

    +

    Resource specifications of real-time services. For details, see Deploying Services.

    +

    weight

    +

    No

    +

    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.

    +
    +
    + +
    + + + + + + + + + + + + + + + + +
    Table 11 TrainingParameter

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    label

    +

    No

    +

    String

    +

    Parameter name.

    +

    value

    +

    No

    +

    String

    +

    Parameter value.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 12 SampleLabels

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    labels

    +

    No

    +

    Array of SampleLabel objects

    +

    Sample label list. If this parameter is left blank, all sample labels are deleted.

    +

    metadata

    +

    No

    +

    SampleMetadata object

    +

    Key-value pair of the sample metadata attribute.

    +

    sample_id

    +

    No

    +

    String

    +

    Sample ID.

    +

    sample_type

    +

    No

    +

    Integer

    +

    Sample type. The options are as follows:

    +
    • 0: image
    • 1: text
    • 2: speech
    • 4: table
    • 6: video
    • 9: custom format
    +

    sample_usage

    +

    No

    +

    String

    +

    Sample usage. The options are as follows:

    +
    • TRAIN: training
    • EVAL: evaluation
    • TEST: test
    • INFERENCE: inference
    +

    source

    +

    No

    +

    String

    +

    Source address of sample data.

    +

    worker_id

    +

    No

    +

    String

    +

    ID of a labeling team member.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 13 SampleLabel

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    annotated_by

    +

    No

    +

    String

    +

    Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

    +
    • human: manual labeling
    • auto: automatic labeling
    +

    id

    +

    No

    +

    String

    +

    Label ID.

    +

    name

    +

    No

    +

    String

    +

    Label name.

    +

    property

    +

    No

    +

    SampleLabelProperty object

    +

    Attribute key-value pair of the sample label, such as the object shape and shape feature.

    +

    score

    +

    No

    +

    Float

    +

    Confidence.

    +

    type

    +

    No

    +

    Integer

    +

    Label type. The options are as follows:

    +
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 14 SampleLabelProperty

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    @modelarts:content

    +

    No

    +

    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

    +

    No

    +

    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. Examples are as follows.- If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.- If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.

    +

    @modelarts:end_time

    +

    No

    +

    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

    +

    No

    +

    Object

    +

    Shape feature, which is a default attribute dedicated to the object detection label, with type of List. The upper left corner of an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:- bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.- polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].- circle: consists of the center point and radius, for example, [[100,100],[50]].- line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- point: consists of one point, for example, [[0,100]].- polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].

    +

    @modelarts:from

    +

    No

    +

    String

    +

    ID of the head entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

    +

    @modelarts:hard

    +

    No

    +

    String

    +

    Sample labeled as a hard sample or not, which is a default attribute. Options:

    +
    • 0/false: not a hard example
    • 1/true: hard example
    +

    @modelarts:hard_coefficient

    +

    No

    +

    String

    +

    Coefficient of difficulty of each label level, which is a default attribute. The value range is [0,1].

    +

    @modelarts:hard_reasons

    +

    No

    +

    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. The options are as follows:

    +
    • 0: No target objects are identified.
    • 1: The confidence is low.
    • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
    • 3: The prediction result is greatly different from the data of the same type in the training dataset.
    • 4: The prediction results of multiple consecutive similar images are inconsistent.
    • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
    • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
    • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
    • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
    • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
    • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
    • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
    • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
    • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
    • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
    • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
    • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
    • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
    • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
    • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
    • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
    • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
    • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
    • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
    • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
    • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
    • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
    • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
    • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
    • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
    • 30: The data is predicted to be abnormal.
    +

    @modelarts:shape

    +

    No

    +

    String

    +

    Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

    +
    • bndbox: rectangle
    • polygon: polygon
    • circle: circle
    • line: straight line
    • dashed: dotted line
    • point: point
    • polyline: polyline
    +

    @modelarts:source

    +

    No

    +

    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

    +

    No

    +

    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

    +

    No

    +

    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

    +

    No

    +

    String

    +

    ID of the tail entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 15 SampleMetadata

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    @modelarts:hard

    +

    No

    +

    Double

    +

    Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

    +
    • 0: non-hard sample
    • 1: hard sample
    +

    @modelarts:hard_coefficient

    +

    No

    +

    Double

    +

    Coefficient of difficulty of each sample level, which is a default attribute. The value range is [0,1].

    +

    @modelarts:hard_reasons

    +

    No

    +

    Array of integers

    +

    ID of a hard sample reason, which is a default attribute. The options are as follows:

    +
    • 0: No target objects are identified.
    • 1: The confidence is low.
    • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
    • 3: The prediction result is greatly different from the data of the same type in the training dataset.
    • 4: The prediction results of multiple consecutive similar images are inconsistent.
    • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
    • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
    • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
    • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
    • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
    • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
    • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
    • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
    • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
    • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
    • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
    • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
    • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
    • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
    • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
    • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
    • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
    • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
    • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
    • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
    • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
    • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
    • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
    • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
    • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
    • 30: The data is predicted to be abnormal.
    +

    @modelarts:size

    +

    No

    +

    Array of objects

    +

    Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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.

    +
    +
    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + +
    Table 16 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    task_id

    +

    String

    +

    Task ID.

    +
    +
    +
    +

    Example Requests

    • Starting an Auto Labeling (Active Learning) Task
      {
      +  "task_type" : "auto-label",
      +  "collect_key_sample" : true,
      +  "config" : {
      +    "algorithm_type" : "fast"
      +  }
      +}
      +
    • Starting an Auto Labeling (Pre-labeling) Task
      {
      +  "task_type" : "pre-label",
      +  "model_id" : "c4989033-7584-44ee-a180-1c476b810e46",
      +  "collect_key_sample" : true,
      +  "config" : {
      +    "inf_config_list" : [ {
      +      "specification" : "modelarts.vm.cpu.2u",
      +      "instance_count" : 1
      +    } ]
      +  }
      +}
      +
    • Starting an Auto Grouping Task
      {
      +  "type" : 2,
      +  "export_type" : 1,
      +  "config" : {
      +    "n_clusters" : "2",
      +    "ambiguity" : false,
      +    "image_brightness" : false,
      +    "image_colorfulness" : false,
      +    "property" : "size"
      +  }
      +}
      +
    +
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
    +  "task_id" : "r0jT2zwxBDKf8KEnSuZ"
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    OK

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +

    404

    +

    Not Found

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/CreateTrainingJob.html b/docs/modelarts/api-ref/CreateTrainingJob.html new file mode 100644 index 00000000..16f2658a --- /dev/null +++ b/docs/modelarts/api-ref/CreateTrainingJob.html @@ -0,0 +1,4012 @@ + + +

    Creating a Training Job

    +

    Function

    This API is used to create a training job.

    +
    +

    URI

    POST /v2/{project_id}/training-jobs

    + +
    + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details, see Obtaining a Project ID.

    +
    +
    +
    +

    Request Parameters

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Request body parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    kind

    +

    Yes

    +

    String

    +

    Training job type, which is job by default. Options:

    +
    • job: Training job
    • hetero_job: Heterogeneous job
    • autosearch_job: Auto search job
    • mrs_job: MRS job [- edge_job: Edge job] (tag:hk,hc,fcs,fcs-super)
    +

    metadata

    +

    Yes

    +

    JobMetadata object

    +

    Metadata of a training job.

    +

    algorithm

    +

    No

    +

    JobAlgorithm object

    +

    Algorithm for training jobs. The following formats are supported:

    +
    • id: Only the algorithm ID is used.
    • subscription_id+item_version_id: The subscription ID and version ID of the algorithm are used.
    • code_dir+boot_file: The code directory and boot file of a training job are used.
    +

    tasks

    +

    No

    +

    Array of Task objects

    +

    List of tasks in heterogeneous training jobs. If this parameter is specified, leave the spec parameter blank.

    +

    spec

    +

    No

    +

    spec object

    +

    Specifications of a training job. If this parameter is specified, leave the tasks parameter blank.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 3 JobMetadata

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    id

    +

    No

    +

    String

    +

    Training job ID, which is generated and returned by ModelArts after the training job is created.

    +

    name

    +

    Yes

    +

    String

    +

    Name of a training job. The value must contain 1 to 64 characters consisting of only digits, letters, underscores (_), and hyphens (-).

    +

    workspace_id

    +

    No

    +

    String

    +

    Workspace where a job is located. The default value is 0.

    +

    description

    +

    No

    +

    String

    +

    Training job description. The value must contain 0 to 256 characters. The default value is NULL.

    +

    create_time

    +

    No

    +

    Long

    +

    Timestamp when a training job is created, in milliseconds. The value is generated and returned by ModelArts after the job is created.

    +

    user_name

    +

    No

    +

    String

    +

    Username for creating a training job. The username is generated and returned by ModelArts after the training job is created.

    +

    annotations

    +

    No

    +

    Map<String,String>

    +

    Declaration template of a training job. For heterogeneous jobs, the default value of job_template is Template RL. For other jobs, the default value is Template DL.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 4 JobAlgorithm

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    id

    +

    No

    +

    String

    +

    Algorithm ID.

    +

    name

    +

    No

    +

    String

    +

    Algorithm name. Leave it blank.

    +

    subscription_id

    +

    No

    +

    String

    +

    Subscription ID of the subscription algorithm. This parameter must be used together with item_version_id.

    +

    item_version_id

    +

    No

    +

    String

    +

    Version ID of the subscription algorithm. This parameter must be used together with subscription_id.

    +

    code_dir

    +

    No

    +

    String

    +

    Code directory of a training job, for example, /usr/app/. This parameter must be used together with boot_file. If id or subscription_id+item_version_id is set, leave it blank.

    +

    boot_file

    +

    No

    +

    String

    +

    Boot file of a training job, which needs to be stored in the code directory, for example, /usr/app/boot.py. This parameter must be used together with code_dir. If id or subscription_id+item_version_id is set, leave it blank.

    +

    autosearch_config_path

    +

    No

    +

    String

    +

    YAML configuration path of auto search jobs. An OBS URL is required.

    +

    autosearch_framework_path

    +

    No

    +

    String

    +

    Framework code directory of auto search jobs. An OBS URL is required.

    +

    command

    +

    No

    +

    String

    +

    Command for starting the container of the custom image of a training job in the custom image scenario.

    +

    parameters

    +

    No

    +

    Array of parameters objects

    +

    Running parameters of a training job.

    +

    policies

    +

    No

    +

    policies object

    +

    Policies supported by jobs, which are used for hyperparameter search.

    +

    inputs

    +

    No

    +

    Array of Input objects

    +

    Input of a training job.

    +

    outputs

    +

    No

    +

    Array of Output objects

    +

    Output of a training job.

    +

    engine

    +

    No

    +

    engine object

    +

    Engine of a training job. Leave this parameter blank if the job is created using id of the algorithm management API or subscription_id+item_version_id of the subscription algorithm API.

    +

    environments

    +

    No

    +

    Array of Map<String,String> objects

    +

    Environment variables of a training job. The format is key: value. Leave this parameter blank.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 5 parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    name

    +

    No

    +

    String

    +

    Parameter name.

    +

    value

    +

    No

    +

    String

    +

    Parameter value.

    +

    description

    +

    No

    +

    String

    +

    Parameter description.

    +

    constraint

    +

    No

    +

    constraint object

    +

    Parameter constraint.

    +

    i18n_description

    +

    No

    +

    i18n_description object

    +

    Internationalization description.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 6 constraint

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    type

    +

    No

    +

    String

    +

    Parameter type.

    +

    editable

    +

    No

    +

    Boolean

    +

    Whether the parameter is editable.

    +

    required

    +

    No

    +

    Boolean

    +

    Whether the parameter is mandatory.

    +

    sensitive

    +

    No

    +

    Boolean

    +

    Whether the parameter is sensitive.

    +

    valid_type

    +

    No

    +

    String

    +

    Valid type.

    +

    valid_range

    +

    No

    +

    Array of strings

    +

    Valid range.

    +
    +
    + +
    + + + + + + + + + + + + + + + + +
    Table 7 i18n_description

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    language

    +

    No

    +

    String

    +

    Internationalization language.

    +

    description

    +

    No

    +

    String

    +

    Description.

    +
    +
    + +
    + + + + + + + + + + + +
    Table 8 policies

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    auto_search

    +

    No

    +

    auto_search object

    +

    Hyperparameter search configuration.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 10 reward_attrs

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    name

    +

    No

    +

    String

    +

    Metric name.

    +

    mode

    +

    No

    +

    String

    +

    Search direction.

    +
    • max: A larger metric value indicates better performance.
    • min: A smaller metric value indicates better performance.
    +

    regex

    +

    No

    +

    String

    +

    Regular expression of a metric.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 11 search_params

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    name

    +

    No

    +

    String

    +

    Hyperparameter name.

    +

    param_type

    +

    No

    +

    String

    +

    Parameter type.

    +
    • continuous: The parameter is a continuous value.
    • discreate: The parameter is a discrete value.
    +

    lower_bound

    +

    No

    +

    String

    +

    Lower bound of the hyperparameter.

    +

    upper_bound

    +

    No

    +

    String

    +

    Upper bound of the hyperparameter.

    +

    discrete_points_num

    +

    No

    +

    String

    +

    Number of discrete points of a continuous hyperparameter.

    +

    discrete_values

    +

    No

    +

    Array of strings

    +

    List of discrete hyperparameter values.

    +
    +
    + +
    + + + + + + + + + + + + + + + + +
    Table 12 algo_configs

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    name

    +

    No

    +

    String

    +

    Name of the search algorithm.

    +

    params

    +

    No

    +

    Array of AutoSearchAlgoConfigParameter objects

    +

    Search algorithm parameters.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 13 AutoSearchAlgoConfigParameter

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    key

    +

    No

    +

    String

    +

    Parameter key.

    +

    value

    +

    No

    +

    String

    +

    Parameter value.

    +

    type

    +

    No

    +

    String

    +

    Parameter type.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 14 engine

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    engine_id

    +

    No

    +

    String

    +

    Engine ID selected for a training job. You can set this parameter to engine_id, engine_name + engine_version, or image_url.

    +

    engine_name

    +

    No

    +

    String

    +

    Name of the engine selected for a training job. If engine_id is set, leave this parameter blank.

    +

    engine_version

    +

    No

    +

    String

    +

    Name of the engine version selected for a training job. If engine_id is set, leave this parameter blank.

    +

    image_url

    +

    No

    +

    String

    +

    Custom image URL selected for a training job.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 15 Task

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    role

    +

    No

    +

    String

    +

    Role of a heterogeneous training job. Options:

    +
    • learner: supports GPUs or CPUs.
    • worker: supports CPUs.
    +

    algorithm

    +

    No

    +

    algorithm object

    +

    Algorithm management and configuration.

    +

    task_resource

    +

    No

    +

    task_resource object

    +

    Resource flavors of a training job.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 16 algorithm

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    job_config

    +

    No

    +

    job_config object

    +

    Algorithm configuration, such as the boot file.

    +

    code_dir

    +

    No

    +

    String

    +

    Algorithm code directory, for example, /usr/app/. This parameter must be used together with boot_file.

    +

    boot_file

    +

    No

    +

    String

    +

    Code boot file of the algorithm, which needs to be stored in the code directory, for example, /usr/app/boot.py. This parameter must be used together with code_dir.

    +

    engine

    +

    No

    +

    engine object

    +

    Engine of a heterogeneous job algorithm.

    +

    inputs

    +

    No

    +

    Array of inputs objects

    +

    Data input of an algorithm.

    +

    outputs

    +

    No

    +

    Array of outputs objects

    +

    Data output of an algorithm.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 17 job_config

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    parameters

    +

    No

    +

    Array of Parameter objects

    +

    Running parameter of an algorithm.

    +

    inputs

    +

    No

    +

    Array of Input objects

    +

    Data input of an algorithm.

    +

    outputs

    +

    No

    +

    Array of Output objects

    +

    Data output of an algorithm.

    +

    engine

    +

    No

    +

    engine object

    +

    Algorithm engine.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 18 Parameter

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    name

    +

    No

    +

    String

    +

    Parameter name.

    +

    value

    +

    No

    +

    String

    +

    Parameter value.

    +

    description

    +

    No

    +

    String

    +

    Parameter description.

    +

    constraint

    +

    No

    +

    constraint object

    +

    Parameter constraint.

    +

    i18n_description

    +

    No

    +

    i18n_description object

    +

    Internationalization description.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 19 constraint

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    type

    +

    No

    +

    String

    +

    Parameter type.

    +

    editable

    +

    No

    +

    Boolean

    +

    Whether the parameter is editable.

    +

    required

    +

    No

    +

    Boolean

    +

    Whether the parameter is mandatory.

    +

    sensitive

    +

    No

    +

    Boolean

    +

    Whether the parameter is sensitive.

    +

    valid_type

    +

    No

    +

    String

    +

    Valid type.

    +

    valid_range

    +

    No

    +

    Array of strings

    +

    Valid range.

    +
    +
    + +
    + + + + + + + + + + + + + + + + +
    Table 20 i18n_description

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    language

    +

    No

    +

    String

    +

    Internationalization language.

    +

    description

    +

    No

    +

    String

    +

    Description.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 21 Input

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    name

    +

    Yes

    +

    String

    +

    Name of the data input channel.

    +

    description

    +

    No

    +

    String

    +

    Description of the data input channel.

    +

    local_dir

    +

    No

    +

    String

    +

    Local directory of the container to which the data input channel is mapped.

    +

    remote

    +

    Yes

    +

    InputDataInfo object

    +

    Data input. Options:

    +
    • dataset: Dataset as the data input
    • obs: OBS path as the data input
    +

    remote_constraint

    +

    No

    +

    Array of remote_constraint objects

    +

    Data input constraint.

    +
    +
    + +
    + + + + + + + + + + + + + + + + +
    Table 22 InputDataInfo

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    dataset

    +

    No

    +

    dataset object

    +

    Dataset as the data input.

    +

    obs

    +

    No

    +

    obs object

    +

    OBS in which data input and output stored.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 23 dataset

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    id

    +

    Yes

    +

    String

    +

    Dataset ID of a training job.

    +

    version_id

    +

    Yes

    +

    String

    +

    Dataset version ID of a training job.

    +

    obs_url

    +

    No

    +

    String

    +

    OBS URL of the dataset required by a training job. ModelArts automatically parses and generates the URL based on the dataset and dataset version IDs. For example, /usr/data/.

    +
    +
    + +
    + + + + + + + + + + + +
    Table 24 obs

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    obs_url

    +

    Yes

    +

    String

    +

    OBS URL of the dataset required by a training job. For example, /usr/data/.

    +
    +
    + +
    + + + + + + + + + + + + + + + + +
    Table 25 remote_constraint

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    data_type

    +

    No

    +

    String

    +

    Data input type, including the data storage location and dataset.

    +

    attributes

    +

    No

    +

    String

    +

    Attributes if a dataset is used as the data input. Options:

    +
    • data_format: Data format
    • data_segmentation: Data segmentation
    • dataset_type: Labeling type
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 26 Output

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    name

    +

    Yes

    +

    String

    +

    Name of the data output channel.

    +

    description

    +

    No

    +

    String

    +

    Description of the data output channel.

    +

    local_dir

    +

    No

    +

    String

    +

    Local directory of the container to which the data output channel is mapped.

    +

    remote

    +

    Yes

    +

    remote object

    +

    Description of the actual data output.

    +
    +
    + +
    + + + + + + + + + + + +
    Table 27 remote

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    obs

    +

    Yes

    +

    obs object

    +

    OBS to which data is actually exported.

    +
    +
    + +
    + + + + + + + + + + + +
    Table 28 obs

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    obs_url

    +

    Yes

    +

    String

    +

    OBS URL to which data is actually exported.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 29 engine

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    engine_id

    +

    No

    +

    String

    +

    Engine ID selected for an algorithm.

    +

    engine_name

    +

    No

    +

    String

    +

    Engine version name selected for an algorithm. If engine_id is specified, leave this parameter blank.

    +

    engine_version

    +

    No

    +

    String

    +

    Engine version name selected for an algorithm. If engine_id is specified, leave this parameter blank.

    +

    image_url

    +

    No

    +

    String

    +

    Custom image URL selected by an algorithm.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 30 engine

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    engine_id

    +

    No

    +

    String

    +

    Engine ID of a heterogeneous job, for example, caffe-1.0.0-python2.7.

    +

    engine_name

    +

    No

    +

    String

    +

    Engine name of a heterogeneous job, for example, Caffe.

    +

    engine_version

    +

    No

    +

    String

    +

    Engine version of a heterogeneous job.

    +

    image_url

    +

    No

    +

    String

    +

    Custom image URL selected by an algorithm.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 31 inputs

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    name

    +

    Yes

    +

    String

    +

    Name of the data input channel.

    +

    description

    +

    No

    +

    String

    +

    Description of the data input channel.

    +

    local_dir

    +

    No

    +

    String

    +

    Local directory of the container to which the data input channel is mapped.

    +

    remote

    +

    Yes

    +

    remote object

    +

    Data input. Options:

    +
    • dataset: Dataset as the data input
    • obs: OBS path as the data input
    +
    +
    + +
    + + + + + + + + + + + +
    Table 32 remote

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    obs

    +

    No

    +

    obs object

    +

    OBS in which data input and output stored.

    +
    +
    + +
    + + + + + + + + + + + +
    Table 33 obs

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    obs_url

    +

    Yes

    +

    String

    +

    OBS URL of the dataset required by a training job. For example, /usr/data/.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 34 outputs

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    name

    +

    Yes

    +

    String

    +

    Name of the data output channel.

    +

    description

    +

    No

    +

    String

    +

    Description of the data output channel.

    +

    local_dir

    +

    No

    +

    String

    +

    Local directory of the container to which the data output channel is mapped.

    +

    remote

    +

    Yes

    +

    remote object

    +

    Description of the actual data output.

    +
    +
    + +
    + + + + + + + + + + + +
    Table 35 remote

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    obs

    +

    Yes

    +

    obs object

    +

    OBS to which data is actually exported.

    +
    +
    + +
    + + + + + + + + + + + +
    Table 36 obs

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    obs_url

    +

    Yes

    +

    String

    +

    OBS URL to which data is actually exported.

    +
    +
    + +
    + + + + + + + + + + + + + + + + +
    Table 37 task_resource

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    flavor_id

    +

    No

    +

    String

    +

    Resource flavor ID of a training job.

    +

    node_count

    +

    Yes

    +

    Integer

    +

    Number of resource replicas selected for a training job.

    +

    Minimum: 1

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 38 spec

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    resource

    +

    No

    +

    resource object

    +

    Resource flavors of a training job. Select either flavor_id or pool_id+[flavor_id].

    +

    volumes

    +

    No

    +

    Array of volumes objects

    +

    Volumes attached to a training job.

    +

    log_export_path

    +

    No

    +

    log_export_path object

    +

    Export path of training job logs.

    +
    +
    + +
    + + + + + + + + + + + + + + + + +
    Table 39 resource

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    flavor_id

    +

    Yes

    +

    String

    +

    ID of the resource flavors selected for a training job.

    +

    node_count

    +

    No

    +

    Integer

    +

    Number of nodes used for creating a training job in a pool. By default, a single node is used.

    +
    +
    + +
    + + + + + + + + + + + +
    Table 40 volumes

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    nfs

    +

    No

    +

    nfs object

    +

    Volumes attached in NFS mode.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 41 nfs

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    nfs_server_path

    +

    No

    +

    String

    +

    NFS server path.

    +

    local_path

    +

    No

    +

    String

    +

    Path for attaching volumes to the training container.

    +

    read_only

    +

    No

    +

    Boolean

    +

    Whether the volumes attached to the container in NFS mode are read-only.

    +
    +
    + +
    + + + + + + + + + + + + + + + + +
    Table 42 log_export_path

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    obs_url

    +

    No

    +

    String

    +

    OBS URL for storing training job logs.

    +

    host_path

    +

    No

    +

    String

    +

    Path of the host where training job logs are stored.

    +
    +
    +
    +

    Response Parameters

    Status code: 201

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 43 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    kind

    +

    String

    +

    Training job type, which is job by default. Options:

    +
    • job: Training job
    • hetero_job: Heterogeneous job
    • autosearch_job: Auto search job
    • mrs_job: MRS job [- edge_job: Edge job] (tag:hk,hc,fcs,fcs-super)
    +

    metadata

    +

    JobMetadata object

    +

    Metadata of a training job.

    +

    status

    +

    Status object

    +

    Status of a training job. You do not need to set this parameter when creating a job.

    +

    algorithm

    +

    JobAlgorithmResponse object

    +

    Algorithm for training jobs. The following formats are supported:

    +
    • id: Only the algorithm ID is used.
    • subscription_id+item_version_id: The subscription ID and version ID of the algorithm are used.
    • code_dir+boot_file: The code directory and boot file of a training job are used.
    +

    tasks

    +

    Array of TaskResponse objects

    +

    List of tasks in heterogeneous training jobs.

    +

    spec

    +

    spec object

    +

    Specifications of a training job.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 44 JobMetadata

    Parameter

    +

    Type

    +

    Description

    +

    id

    +

    String

    +

    Training job ID, which is generated and returned by ModelArts after the training job is created.

    +

    name

    +

    String

    +

    Name of a training job. The value must contain 1 to 64 characters consisting of only digits, letters, underscores (_), and hyphens (-).

    +

    workspace_id

    +

    String

    +

    Workspace where a job is located. The default value is 0.

    +

    description

    +

    String

    +

    Training job description. The value must contain 0 to 256 characters. The default value is NULL.

    +

    create_time

    +

    Long

    +

    Timestamp when a training job is created, in milliseconds. The value is generated and returned by ModelArts after the job is created.

    +

    user_name

    +

    String

    +

    Username for creating a training job. The username is generated and returned by ModelArts after the training job is created.

    +

    annotations

    +

    Map<String,String>

    +

    Declaration template of a training job. For heterogeneous jobs, the default value of job_template is Template RL. For other jobs, the default value is Template DL.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 45 Status

    Parameter

    +

    Type

    +

    Description

    +

    phase

    +

    String

    +

    Level-1 status of a training job. The value is stable. The options are as follows: Creating Pending Running Failed Completed, Terminating Terminated Abnormal

    +

    secondary_phase

    +

    String

    +

    Level-2 status of a training job. The value is unstable. The options are as follows: Creating Queuing Running Failed Completed Terminating Terminated CreateFailed TerminatedFailed Unknown Lost

    +

    duration

    +

    Long

    +

    Running duration of a training job, in milliseconds

    +

    node_count_metrics

    +

    Array<Array<Integer>>

    +

    Node count changes during the training job running period.

    +

    tasks

    +

    Array of strings

    +

    Tasks of a training job.

    +

    start_time

    +

    String

    +

    Start time of a training job. The value is in timestamp format.

    +

    task_statuses

    +

    Array of task_statuses objects

    +

    Status of a training job task.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 46 task_statuses

    Parameter

    +

    Type

    +

    Description

    +

    task

    +

    String

    +

    Name of a training job task.

    +

    exit_code

    +

    Integer

    +

    Exit code of a training job task.

    +

    message

    +

    String

    +

    Error message of a training job task.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 47 JobAlgorithmResponse

    Parameter

    +

    Type

    +

    Description

    +

    id

    +

    String

    +

    Algorithm for training jobs. Options:

    +
    • id: Only the algorithm ID is used.
    • subscription_id+item_version_id: The subscription ID and version ID of the algorithm are used.
    • code_dir+boot_file: The code directory and boot file of a training job are used.
    +

    name

    +

    String

    +

    Algorithm name.

    +

    subscription_id

    +

    String

    +

    Subscription ID of the subscription algorithm. This parameter must be used together with item_version_id.

    +

    item_version_id

    +

    String

    +

    Version ID of the subscription algorithm. This parameter must be used together with subscription_id.

    +

    code_dir

    +

    String

    +

    Code directory of a training job, for example, /usr/app/. This parameter must be used together with boot_file. If id or subscription_id+item_version_id is set, leave it blank.

    +

    boot_file

    +

    String

    +

    Boot file of a training job, which needs to be stored in the code directory, for example, /usr/app/boot.py. This parameter must be used together with code_dir. If id or subscription_id+item_version_id is set, leave it blank.

    +

    autosearch_config_path

    +

    String

    +

    YAML configuration path of auto search jobs. An OBS URL is required.

    +

    autosearch_framework_path

    +

    String

    +

    Framework code directory of auto search jobs. An OBS URL is required.

    +

    command

    +

    String

    +

    Boot command used to start the container of the custom image used by a training job. You can set this parameter to code_dir.

    +

    parameters

    +

    Array of Parameter objects

    +

    Running parameters of a training job.

    +

    policies

    +

    policies object

    +

    Policies supported by jobs.

    +

    inputs

    +

    Array of Input objects

    +

    Input of a training job.

    +

    outputs

    +

    Array of Output objects

    +

    Output of a training job.

    +

    engine

    +

    engine object

    +

    Engine of a training job. Leave this parameter blank if the job is created using id of the algorithm management API or subscription_id+item_version_id of the subscription algorithm API.

    +

    environments

    +

    Array of Map<String,String> objects

    +

    Environment variables of a training job. The format is key: value. Leave this parameter blank.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 48 Parameter

    Parameter

    +

    Type

    +

    Description

    +

    name

    +

    String

    +

    Parameter name.

    +

    value

    +

    String

    +

    Parameter value.

    +

    description

    +

    String

    +

    Parameter description.

    +

    constraint

    +

    constraint object

    +

    Parameter constraint.

    +

    i18n_description

    +

    i18n_description object

    +

    Internationalization description.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 49 constraint

    Parameter

    +

    Type

    +

    Description

    +

    type

    +

    String

    +

    Parameter type.

    +

    editable

    +

    Boolean

    +

    Whether the parameter is editable.

    +

    required

    +

    Boolean

    +

    Whether the parameter is mandatory.

    +

    sensitive

    +

    Boolean

    +

    Whether the parameter is sensitive.

    +

    valid_type

    +

    String

    +

    Valid type.

    +

    valid_range

    +

    Array of strings

    +

    Valid range.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 50 i18n_description

    Parameter

    +

    Type

    +

    Description

    +

    language

    +

    String

    +

    Internationalization language.

    +

    description

    +

    String

    +

    Description.

    +
    +
    + +
    + + + + + + + + + +
    Table 51 policies

    Parameter

    +

    Type

    +

    Description

    +

    auto_search

    +

    auto_search object

    +

    Hyperparameter search configuration.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 53 reward_attrs

    Parameter

    +

    Type

    +

    Description

    +

    name

    +

    String

    +

    Metric name.

    +

    mode

    +

    String

    +

    Search direction.

    +
    • max: A larger metric value indicates better performance.
    • min: A smaller metric value indicates better performance.
    +

    regex

    +

    String

    +

    Regular expression of a metric.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 54 search_params

    Parameter

    +

    Type

    +

    Description

    +

    name

    +

    String

    +

    Hyperparameter name.

    +

    param_type

    +

    String

    +

    Parameter type.

    +
    • continuous: The parameter is a continuous value.
    • discreate: The parameter is a discrete value.
    +

    lower_bound

    +

    String

    +

    Lower bound of the hyperparameter.

    +

    upper_bound

    +

    String

    +

    Upper bound of the hyperparameter.

    +

    discrete_points_num

    +

    String

    +

    Number of discrete points of a continuous hyperparameter.

    +

    discrete_values

    +

    Array of strings

    +

    List of discrete hyperparameter values.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 55 algo_configs

    Parameter

    +

    Type

    +

    Description

    +

    name

    +

    String

    +

    Name of the search algorithm.

    +

    params

    +

    Array of AutoSearchAlgoConfigParameter objects

    +

    Search algorithm parameters.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 56 AutoSearchAlgoConfigParameter

    Parameter

    +

    Type

    +

    Description

    +

    key

    +

    String

    +

    Parameter key.

    +

    value

    +

    String

    +

    Parameter value.

    +

    type

    +

    String

    +

    Parameter type.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 57 Input

    Parameter

    +

    Type

    +

    Description

    +

    name

    +

    String

    +

    Name of the data input channel.

    +

    description

    +

    String

    +

    Description of the data input channel.

    +

    local_dir

    +

    String

    +

    Local directory of the container to which the data input channel is mapped.

    +

    remote

    +

    InputDataInfo object

    +

    Data input. Options:

    +
    • dataset: Dataset as the data input
    • obs: OBS path as the data input
    +

    remote_constraint

    +

    Array of remote_constraint objects

    +

    Data input constraint.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 58 InputDataInfo

    Parameter

    +

    Type

    +

    Description

    +

    dataset

    +

    dataset object

    +

    Dataset as the data input.

    +

    obs

    +

    obs object

    +

    OBS in which data input and output stored.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 59 dataset

    Parameter

    +

    Type

    +

    Description

    +

    id

    +

    String

    +

    Dataset ID of a training job.

    +

    version_id

    +

    String

    +

    Dataset version ID of a training job.

    +

    obs_url

    +

    String

    +

    OBS URL of the dataset required by a training job. ModelArts automatically parses and generates the URL based on the dataset and dataset version IDs. For example, /usr/data/.

    +
    +
    + +
    + + + + + + + + + +
    Table 60 obs

    Parameter

    +

    Type

    +

    Description

    +

    obs_url

    +

    String

    +

    OBS URL of the dataset required by a training job. For example, /usr/data/.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 61 remote_constraint

    Parameter

    +

    Type

    +

    Description

    +

    data_type

    +

    String

    +

    Data input type, including the data storage location and dataset.

    +

    attributes

    +

    String

    +

    Attributes if a dataset is used as the data input. Options:

    +
    • data_format: Data format
    • data_segmentation: Data segmentation
    • dataset_type: Labeling type
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 62 Output

    Parameter

    +

    Type

    +

    Description

    +

    name

    +

    String

    +

    Name of the data output channel.

    +

    description

    +

    String

    +

    Description of the data output channel.

    +

    local_dir

    +

    String

    +

    Local directory of the container to which the data output channel is mapped.

    +

    remote

    +

    remote object

    +

    Description of the actual data output.

    +
    +
    + +
    + + + + + + + + + +
    Table 63 remote

    Parameter

    +

    Type

    +

    Description

    +

    obs

    +

    obs object

    +

    OBS to which data is actually exported.

    +
    +
    + +
    + + + + + + + + + +
    Table 64 obs

    Parameter

    +

    Type

    +

    Description

    +

    obs_url

    +

    String

    +

    OBS URL to which data is actually exported.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 65 engine

    Parameter

    +

    Type

    +

    Description

    +

    engine_id

    +

    String

    +

    Engine ID selected for a training job. You can set this parameter to engine_id, engine_name + engine_version, or image_url.

    +

    engine_name

    +

    String

    +

    Name of the engine selected for a training job. If engine_id is set, leave this parameter blank.

    +

    engine_version

    +

    String

    +

    Name of the engine version selected for a training job. If engine_id is set, leave this parameter blank.

    +

    image_url

    +

    String

    +

    Custom image URL selected for a training job.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 66 TaskResponse

    Parameter

    +

    Type

    +

    Description

    +

    role

    +

    String

    +

    Role of a heterogeneous training job. Options:

    +
    • learner: supports GPUs or CPUs.
    • worker: supports CPUs.
    +

    algorithm

    +

    algorithm object

    +

    Algorithm management and configuration.

    +

    task_resource

    +

    FlavorResponse object

    +

    Flavors of a training job or an algorithm.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 67 algorithm

    Parameter

    +

    Type

    +

    Description

    +

    code_dir

    +

    String

    +

    Absolute path of the directory where the algorithm boot file is stored.

    +

    boot_file

    +

    String

    +

    Absolute path of the algorithm boot file.

    +

    inputs

    +

    inputs object

    +

    Algorithm input channel.

    +

    outputs

    +

    outputs object

    +

    Algorithm output channel.

    +

    engine

    +

    engine object

    +

    Engine on which a heterogeneous job depends.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 68 inputs

    Parameter

    +

    Type

    +

    Description

    +

    name

    +

    String

    +

    Name of the data input channel.

    +

    local_dir

    +

    String

    +

    Local path of the container to which the data input and output channels are mapped.

    +

    remote

    +

    remote object

    +

    Actual data input. Heterogeneous jobs support only OBS.

    +
    +
    + +
    + + + + + + + + + +
    Table 69 remote

    Parameter

    +

    Type

    +

    Description

    +

    obs

    +

    obs object

    +

    OBS in which data input and output stored.

    +
    +
    + +
    + + + + + + + + + +
    Table 70 obs

    Parameter

    +

    Type

    +

    Description

    +

    obs_url

    +

    String

    +

    OBS URL of the dataset required by a training job. For example, /usr/data/.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 71 outputs

    Parameter

    +

    Type

    +

    Description

    +

    name

    +

    String

    +

    Name of the data output channel.

    +

    local_dir

    +

    String

    +

    Local directory of the container to which the data output channel is mapped.

    +

    remote

    +

    remote object

    +

    Description of the actual data output.

    +

    mode

    +

    String

    +

    Data transmission mode. The default value is upload_periodically.

    +

    period

    +

    String

    +

    Data transmission period. The default value is 30s.

    +
    +
    + +
    + + + + + + + + + +
    Table 72 remote

    Parameter

    +

    Type

    +

    Description

    +

    obs

    +

    obs object

    +

    OBS to which data is actually exported.

    +
    +
    + +
    + + + + + + + + + +
    Table 73 obs

    Parameter

    +

    Type

    +

    Description

    +

    obs_url

    +

    String

    +

    OBS URL to which data is actually exported.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 74 engine

    Parameter

    +

    Type

    +

    Description

    +

    engine_id

    +

    String

    +

    Engine ID of a heterogeneous job, for example, caffe-1.0.0-python2.7.

    +

    engine_name

    +

    String

    +

    Engine name of a heterogeneous job, for example, Caffe.

    +

    engine_version

    +

    String

    +

    Engine version of a heterogeneous job.

    +

    v1_compatible

    +

    Boolean

    +

    Whether the v1 compatibility mode is used.

    +

    run_user

    +

    String

    +

    User UID started by default by the engine.

    +

    image_url

    +

    String

    +

    Custom image URL selected by an algorithm.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 75 FlavorResponse

    Parameter

    +

    Type

    +

    Description

    +

    flavor_id

    +

    String

    +

    ID of the resource flavor.

    +

    flavor_name

    +

    String

    +

    Name of the resource flavor.

    +

    max_num

    +

    Integer

    +

    Maximum number of nodes in a resource flavor.

    +

    flavor_type

    +

    String

    +

    Resource flavor type. Options:

    +
    • CPU
    • GPU
    • Ascend
    +

    billing

    +

    billing object

    +

    Billing information of a resource flavor.

    +

    flavor_info

    +

    flavor_info object

    +

    Resource flavor details.

    +

    attributes

    +

    Map<String,String>

    +

    Other specification attributes.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 76 billing

    Parameter

    +

    Type

    +

    Description

    +

    code

    +

    String

    +

    Billing code.

    +

    unit_num

    +

    Integer

    +

    Number of billing units.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 77 flavor_info

    Parameter

    +

    Type

    +

    Description

    +

    max_num

    +

    Integer

    +

    Maximum number of nodes that can be selected. The value 1 indicates that the distributed mode is not supported.

    +

    cpu

    +

    cpu object

    +

    CPU specifications.

    +

    gpu

    +

    gpu object

    +

    GPU specifications.

    +

    npu

    +

    npu object

    +

    Ascend flavors.

    +

    memory

    +

    memory object

    +

    Memory information.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 78 cpu

    Parameter

    +

    Type

    +

    Description

    +

    arch

    +

    String

    +

    CPU architecture.

    +

    core_num

    +

    Integer

    +

    Number of cores.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 79 gpu

    Parameter

    +

    Type

    +

    Description

    +

    unit_num

    +

    Integer

    +

    Number of GPUs.

    +

    product_nume

    +

    String

    +

    Product name.

    +

    memory

    +

    String

    +

    Memory.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 80 npu

    Parameter

    +

    Type

    +

    Description

    +

    unit_num

    +

    String

    +

    Number of NPUs.

    +

    product_name

    +

    String

    +

    Product name.

    +

    memory

    +

    String

    +

    Memory.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 81 memory

    Parameter

    +

    Type

    +

    Description

    +

    size

    +

    Integer

    +

    Memory size.

    +

    unit

    +

    String

    +

    Number of memory units.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 82 spec

    Parameter

    +

    Type

    +

    Description

    +

    resource

    +

    Resource object

    +

    Resource flavors of a training job. Select either flavor_id or pool_id+[flavor_id].

    +

    volumes

    +

    Array of volumes objects

    +

    Volumes attached to a training job.

    +

    log_export_path

    +

    log_export_path object

    +

    Export path of training job logs.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 83 Resource

    Parameter

    +

    Type

    +

    Description

    +

    policy

    +

    String

    +

    Resource flavor of a training job. Options: regular

    +

    flavor_id

    +

    String

    +

    Resource flavor ID of a training job.

    +

    flavor_name

    +

    String

    +

    Read-only flavor name returned by ModelArts when flavor_id is used.

    +

    node_count

    +

    Integer

    +

    Number of resource replicas selected for a training job.

    +

    Minimum: 1

    +

    pool_id

    +

    String

    +

    Resource pool ID selected for a training job.

    +

    flavor_detail

    +

    flavor_detail object

    +

    Flavors of a training job or an algorithm.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 84 flavor_detail

    Parameter

    +

    Type

    +

    Description

    +

    flavor_type

    +

    String

    +

    Resource flavor type. Options:

    +
    • CPU
    • GPU
    • Ascend
    +

    billing

    +

    billing object

    +

    Billing information of a resource flavor.

    +

    flavor_info

    +

    flavor_info object

    +

    Resource flavor details.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 85 billing

    Parameter

    +

    Type

    +

    Description

    +

    code

    +

    String

    +

    Billing code.

    +

    unit_num

    +

    Integer

    +

    Number of billing units.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 86 flavor_info

    Parameter

    +

    Type

    +

    Description

    +

    max_num

    +

    Integer

    +

    Maximum number of nodes that can be selected. The value 1 indicates that the distributed mode is not supported.

    +

    cpu

    +

    cpu object

    +

    CPU specifications.

    +

    gpu

    +

    gpu object

    +

    GPU specifications.

    +

    npu

    +

    npu object

    +

    Ascend flavors.

    +

    memory

    +

    memory object

    +

    Memory information.

    +

    disk

    +

    disk object

    +

    Disk information.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 87 cpu

    Parameter

    +

    Type

    +

    Description

    +

    arch

    +

    String

    +

    CPU architecture.

    +

    core_num

    +

    Integer

    +

    Number of cores.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 88 gpu

    Parameter

    +

    Type

    +

    Description

    +

    unit_num

    +

    Integer

    +

    Number of GPUs.

    +

    product_nume

    +

    String

    +

    Product name.

    +

    memory

    +

    String

    +

    Memory.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 89 npu

    Parameter

    +

    Type

    +

    Description

    +

    unit_num

    +

    String

    +

    Number of NPUs.

    +

    product_name

    +

    String

    +

    Product name.

    +

    memory

    +

    String

    +

    Memory.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 90 memory

    Parameter

    +

    Type

    +

    Description

    +

    size

    +

    Integer

    +

    Memory size.

    +

    unit

    +

    String

    +

    Number of memory units.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 91 disk

    Parameter

    +

    Type

    +

    Description

    +

    size

    +

    String

    +

    Disk size.

    +

    unit

    +

    String

    +

    Unit of the disk size. Generally, the value is GB.

    +
    +
    + +
    + + + + + + + + + +
    Table 92 volumes

    Parameter

    +

    Type

    +

    Description

    +

    nfs

    +

    nfs object

    +

    Volumes attached in NFS mode.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 93 nfs

    Parameter

    +

    Type

    +

    Description

    +

    nfs_server_path

    +

    String

    +

    NFS server path.

    +

    local_path

    +

    String

    +

    Path for attaching volumes to the training container.

    +

    read_only

    +

    Boolean

    +

    Whether the volumes attached to the container in NFS mode are read-only.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 94 log_export_path

    Parameter

    +

    Type

    +

    Description

    +

    obs_url

    +

    String

    +

    OBS URL for storing training job logs.

    +

    host_path

    +

    String

    +

    Path of the host where training job logs are stored.

    +
    +
    +
    +

    Example Requests

    • The following shows how to create a training job named TestModelArtsJob. The training job is described as This is a ModelArts job, the ID of the dependency algorithm is 3f5d6706-7b67-408d-8ba0-ec08048c45ed, no input or output is specified, and a free GPU flavor is used.
      POST    https://endpoint/v2/{project_id}/training-jobs
      +
      +{
      +  "kind" : "job",
      +  "metadata" : {
      +    "name" : "TestModelArtsJob",
      +    "description" : "This is a ModelArts job"
      +  },
      +  "algorithm" : {
      +    "id" : "3f5d6706-7b67-408d-8ba0-ec08048c45ed",
      +    "parameters" : [ {
      +      "name" : "input_dir",
      +      "value" : "obs://xxx/test/moxingtest-dir/"
      +    }, {
      +      "name" : "input_file",
      +      "value" : "obs://xxx/test/moxingtest/"
      +    }, {
      +      "name" : "large_file_method",
      +      "value" : "1"
      +    } ],
      +    "inputs" : [ ],
      +    "outputs" : [ ],
      +    "policies" : {
      +      "auto_search" : null
      +    },
      +    "environments" : { }
      +  },
      +  "spec" : {
      +    "resource" : {
      +      "policy" : "regular",
      +      "flavor_id" : "modelarts.p3.large.public.free",
      +      "node_count" : 1
      +    },
      +    "log_export_path" : {
      +      "obs_url" : ""
      +    }
      +  }
      +}
      +
    • The following shows how to use a custom image to create a training job named TestModelArtsJob2 described as This is a ModelArts job2. The target instance is deployed in a dedicated resource pool and is attached with an NFS.
      POST    https://endpoint/v2/{project_id}/training-jobs
      +
      +{
      +  "kind" : "job",
      +  "metadata" : {
      +    "name" : "TestModelArtsJob2",
      +    "description" : "This is a ModelArts job2"
      +  },
      +  "algorithm" : {
      +    "engine" : {
      +      "image_url" : "hwstaff_z00424192/fastseq:1.2"
      +    },
      +    "command" : "cd /home/ma-user/ddp_demo && sh run_ddp.sh",
      +    "parameters" : [ ],
      +    "inputs" : [ ],
      +    "outputs" : [ ],
      +    "policies" : {
      +      "auto_search" : null
      +    },
      +    "environments" : {
      +      "NCCL_DEBUG" : "INFO",
      +      "NCCL_IB_DISABLE" : "0"
      +    }
      +  },
      +  "spec" : {
      +    "resource" : {
      +      "policy" : "regular",
      +      "flavor_id" : "modelarts.pool.visual.xlarge",
      +      "node_count" : 1,
      +      "pool_id" : "poolfaf38d76"
      +    },
      +    "log_export_path" : {
      +      "obs_url" : "/xxx/limou/ddp-demo-log/"
      +    },
      +    "volumes" : [ {
      +      "nfs" : {
      +        "nfs_server_path" : "192.168.0.82:/",
      +        "local_path" : "/home/ma-user/nfs/",
      +        "read_only" : false
      +      }
      +    } ]
      +  }
      +}
      +
    +
    +

    Example Responses

    Status code: 201

    +

    ok

    +
    {
    +  "kind" : "job",
    +  "metadata" : {
    +    "id" : "425b7087-83de-49ed-9e40-5bb642be956f",
    +    "name" : "TestModelArtsJob",
    +    "description" : "This is a ModelArts job",
    +    "create_time" : 1637045545982,
    +    "workspace_id" : "0",
    +    "ai_project" : "default-ai-project",
    +    "user_name" : ""
    +  },
    +  "status" : {
    +    "phase" : "Creating",
    +    "secondary_phase" : "Creating",
    +    "duration" : 0,
    +    "start_time" : 0,
    +    "node_count_metrics" : null,
    +    "tasks" : [ "worker-0", "server-0" ]
    +  },
    +  "algorithm" : {
    +    "id" : "3f5d6706-7b67-408d-8ba0-ec08048c45ed",
    +    "name" : "ttt-obs-gpu",
    +    "code_dir" : "/xxx/test/moxingtest-code/",
    +    "boot_file" : "/xxx/test/moxingtest-code/test_obs_gpu.py",
    +    "parameters" : [ {
    +      "name" : "input_dir",
    +      "description" : "",
    +      "i18n_description" : null,
    +      "value" : "s://xxx/test/moxingtest-dir/",
    +      "constraint" : {
    +        "type" : "String",
    +        "editable" : true,
    +        "required" : true,
    +        "sensitive" : false,
    +        "valid_type" : "None",
    +        "valid_range" : [ ]
    +      }
    +    }, {
    +      "name" : "input_file",
    +      "description" : "",
    +      "i18n_description" : null,
    +      "value" : "obs://cxxx/test/moxingtest/",
    +      "constraint" : {
    +        "type" : "String",
    +        "editable" : true,
    +        "required" : true,
    +        "sensitive" : false,
    +        "valid_type" : "None",
    +        "valid_range" : [ ]
    +      }
    +    }, {
    +      "name" : "large_file_method",
    +      "description" : "",
    +      "i18n_description" : null,
    +      "value" : "1",
    +      "constraint" : {
    +        "type" : "Integer",
    +        "editable" : true,
    +        "required" : true,
    +        "sensitive" : false,
    +        "valid_type" : "None",
    +        "valid_range" : [ ]
    +      }
    +    } ],
    +    "parameters_customization" : false,
    +    "engine" : {
    +      "engine_id" : "horovod-cp36-tf-1.16.2",
    +      "engine_name" : "Horovod",
    +      "engine_version" : "0.16.2-TF-1.13.1-python3.6",
    +      "usage" : "training",
    +      "support_groups" : "public,roma",
    +      "v1_compatible" : true,
    +      "run_user" : ""
    +    },
    +    "policies" : { }
    +  },
    +  "spec" : {
    +    "resource" : {
    +      "policy" : "regular",
    +      "turbo_range" : [ 1, 2 ],
    +      "flavor_id" : "modelarts.p3.large.public.free",
    +      "flavor_name" : "Computing GPU(V100) instance",
    +      "node_count" : 1,
    +      "flavor_detail" : {
    +        "flavor_type" : "GPU",
    +        "billing" : {
    +          "code" : "modelarts.vm.gpu.free",
    +          "unit_num" : 1
    +        },
    +        "attributes" : {
    +          "is_free" : "true",
    +          "max_free_job_count" : "10"
    +        },
    +        "flavor_info" : {
    +          "cpu" : {
    +            "arch" : "x86",
    +            "core_num" : 8
    +          },
    +          "gpu" : {
    +            "unit_num" : 1,
    +            "product_name" : "NVIDIA-V100",
    +            "memory" : "32GB"
    +          },
    +          "memory" : {
    +            "size" : 64,
    +            "unit" : "GB"
    +          }
    +        }
    +      }
    +    },
    +    "log_export_path" : { },
    +    "is_hosted_log" : true
    +  }
    +}
    +
    +

    Status Codes

    +
    + + + + + + + +

    Status Code

    +

    Description

    +

    201

    +

    ok

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/CreateWorker.html b/docs/modelarts/api-ref/CreateWorker.html new file mode 100644 index 00000000..3e8c0e3e --- /dev/null +++ b/docs/modelarts/api-ref/CreateWorker.html @@ -0,0 +1,138 @@ + + +

    Creating a Labeling Team Member

    +

    Function

    This API is used to create a labeling team member.

    +
    +

    URI

    POST /v2/{project_id}/workforces/{workforce_id}/workers

    + +
    + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    workforce_id

    +

    Yes

    +

    String

    +

    ID of a labeling team.

    +
    +
    +
    +

    Request Parameters

    +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Request body parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    description

    +

    No

    +

    String

    +

    Member description. The description contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

    +

    emails

    +

    Yes

    +

    String

    +

    Email address of a labeling team member.

    +

    role

    +

    Yes

    +

    Integer

    +

    Member role. The options are as follows:

    +
    • 0: labeling personnel

      +
    • 1: reviewer

      +
    • 2: team administrator

      +
    +
    +
    +
    +

    Response Parameters

    None

    +
    +

    Example Requests

    Creating a Labeling Team Member

    +
    {
    +  "emails" : "xxx@xxx.com",
    +  "description" : "",
    +  "role" : "2"
    +}
    +
    +

    Example Responses

    Status code: 201

    +

    Created

    +
    { }
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    201

    +

    Created

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +

    404

    +

    Not Found

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/CreateWorkforce.html b/docs/modelarts/api-ref/CreateWorkforce.html new file mode 100644 index 00000000..b8668e72 --- /dev/null +++ b/docs/modelarts/api-ref/CreateWorkforce.html @@ -0,0 +1,136 @@ + + +

    Creating a Labeling Team

    +

    Function

    This API is used to create a labeling team.

    +
    +

    URI

    POST /v2/{project_id}/workforces

    + +
    + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +
    +
    +
    +

    Request Parameters

    +
    + + + + + + + + + + + + + + + + +
    Table 2 Request body parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    description

    +

    No

    +

    String

    +

    Labeling team description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

    +

    workforce_name

    +

    Yes

    +

    String

    +

    Labeling team name. The value contains 1 to 64 characters, including only letters, digits, underscores (_), and hyphens (-).

    +
    +
    +
    +

    Response Parameters

    Status code: 201

    + +
    + + + + + + + + + +
    Table 3 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    workforce_id

    +

    String

    +

    ID of a labeling team.

    +
    +
    +
    +

    Example Requests

    Creating a Labeling Team

    +
    {
    +  "workforce_name" : "team-123",
    +  "description" : "my team"
    +}
    +
    +

    Example Responses

    Status code: 201

    +

    Created

    +
    {
    +  "workforce_id" : "ZUH8gqkjuaib8pxkDdz"
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    201

    +

    Created

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +

    404

    +

    Not Found

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/CreateWorkforceTask.html b/docs/modelarts/api-ref/CreateWorkforceTask.html new file mode 100644 index 00000000..17ce4134 --- /dev/null +++ b/docs/modelarts/api-ref/CreateWorkforceTask.html @@ -0,0 +1,376 @@ + + +

    Creating a Team Labeling Task

    +

    Function

    This API is used to create a team labeling task.

    +
    +

    URI

    POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks

    + +
    + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    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.

    +
    +
    +
    +

    Request Parameters

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Request body parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    auto_sync_dataset

    +

    No

    +

    Boolean

    +

    Whether to automatically synchronize the result of a team labeling task to the dataset. The options are as follows:

    +
    • true: Automatically synchronize the result of a team labeling task to the dataset. (Default value)
    • false: Do not automatically synchronize the result of a team labeling task to the dataset.
    +

    data_sync_type

    +

    No

    +

    Integer

    +

    Synchronization type. The options are as follows:

    +
    • 0: not to be synchronized
    • 1: data to be synchronized
    • 2: label to be synchronized
    • 3: data and label to be synchronized
    +

    repetition

    +

    No

    +

    Integer

    +

    Number of persons who label each sample in a team labeling task. The minimum value is 1.

    +

    sample_conditions

    +

    No

    +

    String

    +

    Search conditions of dataset samples. Samples that meet the conditions are filtered for team labeling.

    +

    synchronize_auto_labeling_data

    +

    No

    +

    Boolean

    +

    Whether to synchronize the auto labeling result of a team labeling task. The options are as follows:

    +
    • true: Synchronize the results to be confirmed to team members after auto labeling is complete.
    • false: Do not synchronize the auto labeling results. (Default value)
    +

    workforces_config

    +

    No

    +

    WorkforcesConfig object

    +

    Team labeling task information: Tasks can be assigned by the team administrator or a specified team.

    +
    +
    + +
    + + + + + + + + + + + + + + + + +
    Table 3 WorkforcesConfig

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    agency

    +

    No

    +

    String

    +

    Team administrator.

    +

    workforces

    +

    No

    +

    Array of WorkforceConfig objects

    +

    List of teams that execute labeling tasks.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 4 WorkforceConfig

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    workers

    +

    No

    +

    Array of Worker objects

    +

    List of labeling team members.

    +

    workforce_id

    +

    No

    +

    String

    +

    ID of a labeling team.

    +

    workforce_name

    +

    No

    +

    String

    +

    Name of a labeling team. The value contains 0 to 1024 characters and does not support the following special characters: !<>=&"'

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 5 Worker

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    create_time

    +

    No

    +

    Long

    +

    Creation time.

    +

    description

    +

    No

    +

    String

    +

    Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

    +

    email

    +

    No

    +

    String

    +

    Email address of a labeling team member.

    +

    role

    +

    No

    +

    Integer

    +

    Role. The options are as follows:

    +
    • 0: labeling personnel
    • 1: reviewer
    • 2: team administrator
    • 3: dataset owner
    +

    status

    +

    No

    +

    Integer

    +

    Current login status of a labeling team member. The options are as follows:

    +
    • 0: The invitation email has not been sent.
    • 1: The invitation email has been sent but the user has not logged in.
    • 2: The user has logged in.
    • 3: The labeling team member has been deleted.
    +

    update_time

    +

    No

    +

    Long

    +

    Update time.

    +

    worker_id

    +

    No

    +

    String

    +

    ID of a labeling team member.

    +

    workforce_id

    +

    No

    +

    String

    +

    ID of a labeling team.

    +
    +
    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + +
    Table 6 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    task_id

    +

    String

    +

    ID of a team labeling task.

    +
    +
    +
    +

    Example Requests

    Creating a Team Labeling Task

    +
    {
    +  "workspace_id" : "0",
    +  "task_name" : "task-eb17",
    +  "task_type" : 0,
    +  "description" : "",
    +  "version_id" : "",
    +  "labels" : [ {
    +    "name" : "Cat",
    +    "type" : 0,
    +    "property" : {
    +      "@modelarts:color" : "#3399ff"
    +    }
    +  }, {
    +    "name" : "Rabbit",
    +    "type" : 0,
    +    "property" : {
    +      "@modelarts:color" : "#3399ff"
    +    }
    +  } ],
    +  "synchronize_data" : false,
    +  "synchronize_auto_labeling_data" : false,
    +  "workforces_config" : {
    +    "workforces" : [ {
    +      "workforce_id" : "feSUo5NUIUnQAQNNTiS",
    +      "workers" : [ {
    +        "email" : "xxx@xxx.com"
    +      }, {
    +        "email" : "xxx@xxx.com"
    +      }, {
    +        "email" : "xxx@xxx.com"
    +      } ]
    +    } ]
    +  },
    +  "auto_sync_dataset" : false
    +}
    +
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
    +  "task_id" : "6phXEto29utpaMwbQkg"
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    OK

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +

    404

    +

    Not Found

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/DeleteAlgorithm.html b/docs/modelarts/api-ref/DeleteAlgorithm.html new file mode 100644 index 00000000..b4698746 --- /dev/null +++ b/docs/modelarts/api-ref/DeleteAlgorithm.html @@ -0,0 +1,75 @@ + + +

    Deleting an Algorithm

    +

    Function

    This API is used to delete an algorithm.

    +
    +

    URI

    DELETE /v2/{project_id}/algorithms/{algorithm_id}

    + +
    + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details, see Obtaining a Project ID.

    +

    algorithm_id

    +

    Yes

    +

    String

    +

    Algorithm ID.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    None

    +
    +

    Example Requests

    The following shows how to modify the algorithm whose UUID is 2e5451fe-913f-4492-821a-2981031382f7.

    +
    DELETE     https://endpoint/v2/{project_id}/algorithms/2e5451fe-913f-4492-821a-2981031382f7
    +
    +

    Example Responses

    Status code: 202

    +

    No Content

    +
    null
    +
    +

    Status Codes

    +
    + + + + + + + +

    Status Code

    +

    Description

    +

    202

    +

    No Content

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/modelarts_03_0411.html b/docs/modelarts/api-ref/DeleteAuthorizations.html similarity index 92% rename from docs/modelarts/api-ref/modelarts_03_0411.html rename to docs/modelarts/api-ref/DeleteAuthorizations.html index 32fd07c1..bd62e209 100644 --- a/docs/modelarts/api-ref/modelarts_03_0411.html +++ b/docs/modelarts/api-ref/DeleteAuthorizations.html @@ -1,7 +1,7 @@ - +

    Deleting Authorization

    -

    Function

    This API is used to delete the authorization of a specified user or all users.

    +

    Function

    This API is used to delete the authorization of a specified user or all users.

    URI

    DELETE /v2/{project_id}/authorizations

    @@ -65,7 +65,7 @@ }

    Status Codes

    -

    Status Code

    +
    @@ -105,7 +105,7 @@
    diff --git a/docs/modelarts/api-ref/DeleteDataset.html b/docs/modelarts/api-ref/DeleteDataset.html index c14174aa..92489809 100644 --- a/docs/modelarts/api-ref/DeleteDataset.html +++ b/docs/modelarts/api-ref/DeleteDataset.html @@ -1,7 +1,7 @@

    Deleting a Dataset

    -

    Function

    This API is used to delete a dataset without deleting the source data of the dataset.

    +

    Function

    This API is used to delete a dataset without deleting the source data of the dataset.

    URI

    DELETE /v2/{project_id}/datasets/{dataset_id}

    diff --git a/docs/modelarts/api-ref/DeleteDatasetVersion.html b/docs/modelarts/api-ref/DeleteDatasetVersion.html index 5ba51c16..1a9b0d20 100644 --- a/docs/modelarts/api-ref/DeleteDatasetVersion.html +++ b/docs/modelarts/api-ref/DeleteDatasetVersion.html @@ -1,7 +1,7 @@

    Deleting a Dataset Labeling Version

    -

    Function

    This API is used to delete a dataset labeling version.

    +

    Function

    This API is used to delete a dataset labeling version.

    URI

    DELETE /v2/{project_id}/datasets/{dataset_id}/versions/{version_id}

    diff --git a/docs/modelarts/api-ref/DeleteLabelAndSamples.html b/docs/modelarts/api-ref/DeleteLabelAndSamples.html index ae98fbcc..9755eb6c 100644 --- a/docs/modelarts/api-ref/DeleteLabelAndSamples.html +++ b/docs/modelarts/api-ref/DeleteLabelAndSamples.html @@ -1,7 +1,7 @@

    Deleting a Label and the Files that Only Contain the Label

    -

    Function

    This API is used to delete a label and the files that only contain this label.

    +

    Function

    This API is used to delete a label and the files that only contain this label.

    URI

    DELETE /v2/{project_id}/datasets/{dataset_id}/data-annotations/labels/{label_name}

    @@ -172,7 +172,7 @@
    diff --git a/docs/modelarts/api-ref/DeleteLabels.html b/docs/modelarts/api-ref/DeleteLabels.html index 0994ac77..64a31344 100644 --- a/docs/modelarts/api-ref/DeleteLabels.html +++ b/docs/modelarts/api-ref/DeleteLabels.html @@ -1,7 +1,7 @@

    Deleting Labels in Batches

    -

    Function

    This API is used to delete labels in batches.

    +

    Function

    This API is used to delete labels in batches.

    URI

    POST /v2/{project_id}/datasets/{dataset_id}/data-annotations/labels/delete

    @@ -449,7 +449,7 @@
    diff --git a/docs/modelarts/api-ref/DeleteNotebook.html b/docs/modelarts/api-ref/DeleteNotebook.html new file mode 100644 index 00000000..989c5db6 --- /dev/null +++ b/docs/modelarts/api-ref/DeleteNotebook.html @@ -0,0 +1,466 @@ + + +

    Deleting a Notebook Instance

    +

    Function

    This API is used to delete the container and all storage resources of a notebook instance.

    +
    +

    Constraints

    None

    +
    +

    URI

    DELETE /v1/{project_id}/notebooks/{id}

    + +

    Status Code

    Description

    + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    id

    +

    Yes

    +

    String

    +

    Notebook instance ID.

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details, see Obtaining a Project ID.

    +
    +
    + +

    Request Parameters

    None

    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    action_progress

    +

    Array of JobProgress objects

    +

    Instance initialization progress.

    +

    description

    +

    String

    +

    Instance description

    +

    endpoints

    +

    Array of EndpointsRes objects

    +

    Local IDE (such as PyCharm and vsCode) or SSH client for remotely accessing a notebook instance through SSH.

    +

    fail_reason

    +

    String

    +

    Instance failure cause

    +

    feature

    +

    String

    +

    Instance type. Options: - DEFAULT: free CodeLab instance. You can create only one. - NOTEBOOK: billed instance.

    +

    flavor

    +

    String

    +

    Instance flavor

    +

    id

    +

    String

    +

    Instance ID.

    +

    image

    +

    Image object

    +

    Instance image

    +

    lease

    +

    Lease object

    +

    Countdown to automatic instance stop.

    +

    name

    +

    String

    +

    Instance name

    +

    pool

    +

    Pool object

    +

    Basic information about the dedicated pool, which is returned by the instance created in the dedicated pool.

    +

    status

    +

    String

    +

    Instance status Options: \r\n-INIT: The instance is being initialized. \r\n-CREATING: The instance is being created. \r\n-STARTING: The instance is starting. \r\n-STOPPING: The instance is stopping. \r\n-DELETING: The instance is being deleted.\r\n-RUNNING: The instance is running.\r\n-STOPPED: The instance is stopped.\r\n-SNAPSHOTTING: A snapshot is being taken for the instance (status when the image is being saved).\r\n-CREATE_FAILED: The instance fails to be created. \r\n-START_FAILED: The instance fails to be started. \r\n-DELETE_FAILED: The instance fails to be deleted.\r\n-ERROR: An error occurs. \r\n-DELETED: The instance is deleted. \r\n-FROZEN: The instance is frozen.

    +

    token

    +

    String

    +

    Token used for notebook authentication

    +

    url

    +

    String

    +

    URL for accessing the notebook instance

    +

    volume

    +

    VolumeRes object

    +

    Storage volume

    +

    workspace_id

    +

    String

    +

    Workspace ID. If no workspaces are available, the default value is 0.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 3 JobProgress

    Parameter

    +

    Type

    +

    Description

    +

    notebook_id

    +

    String

    +

    Instance ID.

    +

    status

    +

    String

    +

    Job status in a specified step. Options: - WAITING: The job is waiting to begin. - PROCESSING: The job is being processed. - FAILED: The job failed. - COMPLETED: The task is complete.

    +

    step

    +

    Integer

    +

    Job step. Options: - 1: Storage preparation. - 2: Computing resource preparation. - 3: Network configurations. - 4: Instance initialization.

    +

    step_description

    +

    String

    +

    Description of a step in a job.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 4 EndpointsRes

    Parameter

    +

    Type

    +

    Description

    +

    allowed_access_ips

    +

    Array of strings

    +

    Whitelist of public IP addresses that are allowed to access the notebook instance through SSH. By default, all public IP addresses can access the notebook instance. If this parameter is specified, only the clients with the specified IP addresses can access the notebook instance.

    +

    dev_service

    +

    String

    +

    Supported services. Options: - NOTEBOOK: You can access the notebook instance using HTTPS.- SSH: You can remotely access the notebook instance through SSH.

    +

    ssh_keys

    +

    Array of strings

    +

    List of SSH key pairs. You can set multiple key pairs to access an SSH instance at the same time.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 5 Image

    Parameter

    +

    Type

    +

    Description

    +

    id

    +

    String

    +

    Image ID

    +

    name

    +

    String

    +

    Image name.

    +

    swr_path

    +

    String

    +

    SWR image address

    +

    type

    +

    String

    +

    Image type. Options: - BUILD_IN: built-in system image- DEDICATED: image saved by the user

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 6 Lease

    Parameter

    +

    Type

    +

    Description

    +

    create_time

    +

    Long

    +

    Time (UTC) when the instance is created, accurate to millisecond.

    +

    duration

    +

    Long

    +

    Instance running duration, which is calculated based on the instance creation time. If the instance creation time plus the duration is greater than the current time, the system automatically stops the instance.

    +

    enable

    +

    Boolean

    +

    Whether to enable auto stop of the instance.

    +

    update_time

    +

    Long

    +

    Time (UTC) when the instance is last updated (excluding the keepalive heartbeat time), accurate to millisecond.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 7 Pool

    Parameter

    +

    Type

    +

    Description

    +

    id

    +

    String

    +

    ID of a dedicated resource pool

    +

    name

    +

    String

    +

    Name of a dedicated resource pool

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 8 VolumeRes

    Parameter

    +

    Type

    +

    Description

    +

    capacity

    +

    Integer

    +

    Storage capacity. The default value is 5 GB for EVS and 50 GB for EFS. The maximum value is 4,096 GB.

    +

    category

    +

    String

    +

    Storage category. Options: \r\n-EFS: Scalable File Service (SFS), which is the default storage. \r\n-EVS: Elastic Volume Service (EVS). \r\n\r\n For details about the differences between the two types of storage, see Selecting a Storage Type in DevEnviron.\r\n.\r\n\r\n\r\n\r\n

    +

    mount_path

    +

    String

    +

    Directory of the notebook instance to which OBS storage is mounted. Currently, the directory is /home/ma-user/work/.

    +

    ownership

    +

    String

    +

    Owner to which the resource belongs. Options: - MANAGED: Resources are managed by services.- DEDICATED: Resources are managed by the user account. This mode is supported only when the instance category is EFS.

    +

    status

    +

    String

    +

    EVS disk capacity expansion status, which is RESIZING during capacity expansion and does not affect the instance.

    +
    +
    +
    +

    Example Requests

    None

    +
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
    +  "create_at" : 1638841805440,
    +  "description" : "update",
    +  "feature" : "DEFAULT",
    +  "flavor" : "modelarts.vm.cpu.free",
    +  "id" : "f9937afa-ca78-45b6-bc12-7ecf42553c48",
    +  "image" : {
    +    "description" : "description",
    +    "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54090",
    +    "name" : "notebook2.0-mul-kernel-cpu-cp36",
    +    "swr_path" : ".xxxx.com/atelier/notebook2.0-mul-kernel-cpu-cp36:3.3.2-release_v1",
    +    "tag" : "3.3.2-release_v1",
    +    "type" : "BUILD_IN"
    +  },
    +  "lease" : {
    +    "create_at" : 1638841805439,
    +    "duration" : 3600000,
    +    "enable" : true,
    +    "update_at" : 1638841805439
    +  },
    +  "name" : "notebook_5ee4bf0e",
    +  "status" : "DELETING",
    +  "token" : "58ba50c6-e8ff-245c-4840-49e51aa70737",
    +  "update_at" : 1638842504178,
    +  "workspace_id" : "0"
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    OK

    +

    204

    +

    No Content

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    + +
    + +
    + diff --git a/docs/modelarts/api-ref/DeleteProcessorTask.html b/docs/modelarts/api-ref/DeleteProcessorTask.html new file mode 100644 index 00000000..8fed960a --- /dev/null +++ b/docs/modelarts/api-ref/DeleteProcessorTask.html @@ -0,0 +1,85 @@ + + +

    Deleting a Processing Task

    +

    Function

    This API is used to delete a processing task. You can delete feature analysis tasks and data processing tasks. A specific task can be deleted by specifying the task_id path parameter.

    +
    +

    URI

    DELETE /v2/{project_id}/processor-tasks/{task_id}

    + +
    + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    task_id

    +

    Yes

    +

    String

    +

    ID of a data processing task.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    None

    +
    +

    Example Requests

    Deleting a Data Processing Task

    +
    DELETE https://{endpoint}/v2/{project_id}/processor-tasks/{task_id}
    +
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    { }
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    OK

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/DeleteProcessorTaskVersion.html b/docs/modelarts/api-ref/DeleteProcessorTaskVersion.html new file mode 100644 index 00000000..c3fbabb7 --- /dev/null +++ b/docs/modelarts/api-ref/DeleteProcessorTaskVersion.html @@ -0,0 +1,94 @@ + + +

    Deleting a Data Processing Task Version

    +

    Function

    This API is used to delete a data processing task version.

    +
    +

    URI

    DELETE /v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}

    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    task_id

    +

    Yes

    +

    String

    +

    ID of a data processing task.

    +

    version_id

    +

    Yes

    +

    String

    +

    Version ID of a data processing task.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    None

    +
    +

    Example Requests

    Deleting a Data Processing Task Version

    +
    DELETE https://{endpoint}/v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}
    +
    +

    Example Responses

    Status code: 204

    +

    No Content

    +
    { }
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    204

    +

    No Content

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/DeleteSamples.html b/docs/modelarts/api-ref/DeleteSamples.html index 3ebb38d8..e1dfbca6 100644 --- a/docs/modelarts/api-ref/DeleteSamples.html +++ b/docs/modelarts/api-ref/DeleteSamples.html @@ -1,7 +1,7 @@

    Deleting Samples in Batches

    -

    Function

    This API is used to delete samples in batches.

    +

    Function

    This API is used to delete samples in batches.

    URI

    POST /v2/{project_id}/datasets/{dataset_id}/data-annotations/samples/delete

    diff --git a/docs/modelarts/api-ref/DeleteTrainingJob.html b/docs/modelarts/api-ref/DeleteTrainingJob.html new file mode 100644 index 00000000..a478ca7b --- /dev/null +++ b/docs/modelarts/api-ref/DeleteTrainingJob.html @@ -0,0 +1,75 @@ + + +

    Deleting a Training Job

    +

    Function

    This API is used to delete a training job.

    +
    +

    URI

    DELETE /v2/{project_id}/training-jobs/{training_job_id}

    + +
    + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details, see Obtaining a Project ID.

    +

    training_job_id

    +

    Yes

    +

    String

    +

    ID of a training job.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    None

    +
    +

    Example Requests

    The following shows how to delete a training job whose UUID is 3faf5c03-aaa1-4cbe-879d-24b05d997347.

    +
    DELETE  https://endpoint/v2/{project_id}/training-jobs/3faf5c03-aaa1-4cbe-879d-24b05d997347
    +
    +

    Example Responses

    Status code: 202

    +

    No Content

    +
    ""
    +
    +

    Status Codes

    +
    + + + + + + + +

    Status Code

    +

    Description

    +

    202

    +

    No Content

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/DeleteWorker.html b/docs/modelarts/api-ref/DeleteWorker.html new file mode 100644 index 00000000..15b739fb --- /dev/null +++ b/docs/modelarts/api-ref/DeleteWorker.html @@ -0,0 +1,94 @@ + + +

    Deleting a Labeling Team Member

    +

    Function

    This API is used to delete a labeling team member.

    +
    +

    URI

    DELETE /v2/{project_id}/workforces/{workforce_id}/workers/{worker_id}

    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    worker_id

    +

    Yes

    +

    String

    +

    ID of a labeling team member.

    +

    workforce_id

    +

    Yes

    +

    String

    +

    ID of a labeling team.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    None

    +
    +

    Example Requests

    Deleting a Labeling Team Member

    +
    DELETE https://{endpoint}/v2/{project_id}/workforces/{workforce_id}/workers/{worker_id}
    +
    +

    Example Responses

    Status code: 204

    +

    No Content

    +
    { }
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    204

    +

    No Content

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/DeleteWorkers.html b/docs/modelarts/api-ref/DeleteWorkers.html new file mode 100644 index 00000000..bdb3cb3b --- /dev/null +++ b/docs/modelarts/api-ref/DeleteWorkers.html @@ -0,0 +1,200 @@ + + +

    Deleting Labeling Team Members in Batches

    +

    Function

    This API is used to delete labeling team members in batches.

    +
    +

    URI

    POST /v2/{project_id}/workforces/{workforce_id}/workers/batch-delete

    + +
    + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    workforce_id

    +

    Yes

    +

    String

    +

    ID of a labeling team.

    +
    +
    +
    +

    Request Parameters

    +
    + + + + + + + + + + + +
    Table 2 Request body parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    workers

    +

    No

    +

    Array of strings

    +

    Team member ID list.

    +
    +
    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 3 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code.

    +

    error_msg

    +

    String

    +

    Error message.

    +

    results

    +

    Array of BatchResponse objects

    +

    Result of deleting team members in batches.

    +

    success

    +

    Boolean

    +

    Check whether the operation is successful. The options are as follows:

    +
    • true: The operation is successful.

      +
    • false: The operation is failed.

      +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 4 BatchResponse

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code.

    +

    error_msg

    +

    String

    +

    Error message.

    +

    success

    +

    Boolean

    +

    Check whether the operation is successful. The options are as follows:

    +
    • true: The operation is successful.

      +
    • false: The operation is failed.

      +
    +
    +
    +
    +

    Example Requests

    Deleting Labeling Team Members in Batches

    +
    {
    +  "workers" : [ "89d4ae38431b8905449821605abdc3a9", "a2abd3f27b4e92c593c15282f8b6bd29" ]
    +}
    +
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
    +  "success" : true,
    +  "results" : [ {
    +    "success" : true
    +  }, {
    +    "success" : true
    +  } ]
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    OK

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +

    404

    +

    Not Found

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/DeleteWorkforce.html b/docs/modelarts/api-ref/DeleteWorkforce.html new file mode 100644 index 00000000..66a885f8 --- /dev/null +++ b/docs/modelarts/api-ref/DeleteWorkforce.html @@ -0,0 +1,164 @@ + + +

    Deleting a Labeling Team

    +

    Function

    This API is used to delete a labeling team.

    +
    +

    URI

    DELETE /v2/{project_id}/workforces/{workforce_id}

    + +
    + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    workforce_id

    +

    Yes

    +

    String

    +

    ID of a labeling team.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    Status code: 204

    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code.

    +

    error_msg

    +

    String

    +

    Error message.

    +

    results

    +

    Array of BatchResponse objects

    +

    Result of deleting team members in batches.

    +

    success

    +

    Boolean

    +

    Check whether the operation is successful. The options are as follows:

    +
    • true: The operation is successful.

      +
    • false: The operation is failed.

      +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 3 BatchResponse

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code.

    +

    error_msg

    +

    String

    +

    Error message.

    +

    success

    +

    Boolean

    +

    Check whether the operation is successful. The options are as follows:

    +
    • true: The operation is successful.

      +
    • false: The operation is failed.

      +
    +
    +
    +
    +

    Example Requests

    Deleting a Labeling Team

    +
    DELETE https://{endpoint}/v2/{project_id}/workforces/{workforce_id}
    +
    +

    Example Responses

    Status code: 204

    +

    No Content

    +
    { }
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    204

    +

    No Content

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/DeleteWorkforceTask.html b/docs/modelarts/api-ref/DeleteWorkforceTask.html new file mode 100644 index 00000000..a8bd8785 --- /dev/null +++ b/docs/modelarts/api-ref/DeleteWorkforceTask.html @@ -0,0 +1,94 @@ + + +

    Deleting a Team Labeling Task

    +

    Function

    This API is used to delete a team labeling task.

    +
    +

    URI

    DELETE /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}

    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    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.

    +

    workforce_task_id

    +

    Yes

    +

    String

    +

    ID of a team labeling task.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    None

    +
    +

    Example Requests

    Deleting a Team Labeling Task

    +
    DELETE https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}
    +
    +

    Example Responses

    Status code: 204

    +

    No Content

    +
    { }
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    204

    +

    No Content

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/DescDataset.html b/docs/modelarts/api-ref/DescDataset.html index 48064ac8..d5507ffc 100644 --- a/docs/modelarts/api-ref/DescDataset.html +++ b/docs/modelarts/api-ref/DescDataset.html @@ -1,1389 +1,1389 @@

    Querying Details About a Dataset

    -

    Function

    This API is used to query details about a dataset.

    +

    Function

    This API is used to query details about a dataset.

    -

    URI

    GET /v2/{project_id}/datasets/{dataset_id}

    +

    URI

    GET /v2/{project_id}/datasets/{dataset_id}

    -
    Table 1 Path Parameters

    Parameter

    +
    - - - - - - - - - - -
    Table 1 Path Parameters

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    dataset_id

    +

    dataset_id

    Yes

    +

    Yes

    String

    +

    String

    Dataset ID.

    +

    Dataset ID.

    project_id

    +

    project_id

    Yes

    +

    Yes

    String

    +

    String

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    -
    Table 2 Query Parameters

    Parameter

    +
    - - - - - - - - - - -
    Table 2 Query Parameters

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    check_running_task

    +

    check_running_task

    No

    +

    No

    Boolean

    +

    Boolean

    Whether to detect tasks (including initialization tasks) that are running in a dataset. The options are as follows:

    -
    • true: Detect tasks (including initialization tasks) that are running in the dataset.
    • false: Do not detect tasks that are running in the dataset. (Default value)
    +

    Whether to detect tasks (including initialization tasks) that are running in a dataset. The options are as follows:

    +
    • true: Detect tasks (including initialization tasks) that are running in the dataset.
    • false: Do not detect tasks that are running in the dataset. (Default value)

    running_task_type

    +

    running_task_type

    No

    +

    No

    Integer

    +

    Integer

    Type of the running tasks (including initialization tasks) to be detected. The options are as follows:

    -
    • 0: auto labeling
    • 1: pre-labeling
    • 2: export
    • 3: version switch
    • 4: manifest file export
    • 5: manifest file import
    • 6: version publishing
    • 7: auto grouping
    • 10: one-click model deployment (default value)
    +

    Type of the running tasks (including initialization tasks) to be detected. The options are as follows:

    +
    • 0: auto labeling
    • 1: pre-labeling
    • 2: export
    • 3: version switch
    • 4: manifest file export
    • 5: manifest file import
    • 6: version publishing
    • 7: auto grouping
    • 10: one-click model deployment (default value)
    -

    Request Parameters

    None

    +

    Request Parameters

    None

    -

    Response Parameters

    Status code: 200

    +

    Response Parameters

    Status code: 200

    -
    Table 3 Response body parameters

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 3 Response body parameters

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    annotated_sample_count

    +

    annotated_sample_count

    Integer

    +

    Integer

    Number of labeled samples in a dataset.

    +

    Number of labeled samples in a dataset.

    annotated_sub_sample_count

    +

    annotated_sub_sample_count

    Integer

    +

    Integer

    Number of labeled subsamples.

    +

    Number of labeled subsamples.

    content_labeling

    +

    content_labeling

    Boolean

    +

    Boolean

    Whether to enable content labeling for the speech paragraph labeling dataset. This function is enabled by default.

    +

    Whether to enable content labeling for the speech paragraph labeling dataset. This function is enabled by default.

    create_time

    +

    create_time

    Long

    +

    Long

    Time when a dataset is created.

    +

    Time when a dataset is created.

    current_version_id

    +

    current_version_id

    String

    +

    String

    Current version ID of a dataset.

    +

    Current version ID of a dataset.

    current_version_name

    +

    current_version_name

    String

    +

    String

    Current version name of a dataset.

    +

    Current version name of a dataset.

    data_format

    +

    data_format

    String

    +

    String

    Data format.

    +

    Data format.

    data_sources

    +

    data_sources

    Array of DataSource objects

    +

    Array of DataSource objects

    Data source list.

    +

    Data source list.

    data_statistics

    +

    data_statistics

    Map<String,Object>

    +

    Map<String,Object>

    Sample statistics on a dataset, including the statistics on sample metadata.

    +

    Sample statistics on a dataset, including the statistics on sample metadata.

    data_update_time

    +

    data_update_time

    Long

    +

    Long

    Time when a sample and a label are updated.

    +

    Time when a sample and a label are updated.

    dataset_format

    +

    dataset_format

    Integer

    +

    Integer

    Dataset format. The options are as follows:

    -
    • 0: file
    • 1: table
    +

    Dataset format. The options are as follows:

    +
    • 0: file
    • 1: table

    dataset_id

    +

    dataset_id

    String

    +

    String

    Dataset ID.

    +

    Dataset ID.

    dataset_name

    +

    dataset_name

    String

    +

    String

    Dataset name.

    +

    Dataset name.

    dataset_tags

    +

    dataset_tags

    Array of strings

    +

    Array of strings

    Key identifier list of a dataset, for example, ["Image","Object detection"].

    +

    Key identifier list of a dataset, for example, ["Image","Object detection"].

    dataset_type

    +

    dataset_type

    Integer

    +

    Integer

    Dataset type. The options are as follows:

    -
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet
    • 200: sound classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 400: table dataset
    • 600: video labeling
    • 900: custom format
    +

    Dataset type. The options are as follows:

    +
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet
    • 200: sound classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 400: table dataset
    • 600: video labeling
    • 900: custom format

    dataset_version_count

    +

    dataset_version_count

    Integer

    +

    Integer

    Number of dataset versions.

    +

    Number of dataset versions.

    deleted_sample_count

    +

    deleted_sample_count

    Integer

    +

    Integer

    Number of deleted samples.

    +

    Number of deleted samples.

    deletion_stats

    +

    deletion_stats

    Map<String,Integer>

    +

    Map<String,Integer>

    Deletion reason statistics.

    +

    Deletion reason statistics.

    description

    +

    description

    String

    +

    String

    Dataset description.

    +

    Dataset description.

    enterprise_project_id

    +

    enterprise_project_id

    String

    +

    String

    Enterprise project ID.

    +

    Enterprise project ID.

    exist_running_task

    +

    exist_running_task

    Boolean

    +

    Boolean

    Whether the dataset contains running (including initialization) tasks. The options are as follows:

    -
    • true: The dataset contains running tasks.
    • false: The dataset does not contain running tasks.
    +

    Whether the dataset contains running (including initialization) tasks. The options are as follows:

    +
    • true: The dataset contains running tasks.
    • false: The dataset does not contain running tasks.

    exist_workforce_task

    +

    exist_workforce_task

    Boolean

    +

    Boolean

    Whether the dataset contains team labeling tasks. The options are as follows:

    -
    • true: The dataset contains team labeling tasks.
    • false: The dataset does not contain team labeling tasks.
    +

    Whether the dataset contains team labeling tasks. The options are as follows:

    +
    • true: The dataset contains team labeling tasks.
    • false: The dataset does not contain team labeling tasks.

    feature_supports

    +

    feature_supports

    Array of strings

    +

    Array of strings

    List of features supported by the dataset. Currently, only the value 0 is supported, indicating that the OBS file size is limited.

    +

    List of features supported by the dataset. Currently, only the value 0 is supported, indicating that the OBS file size is limited.

    import_data

    +

    import_data

    Boolean

    +

    Boolean

    Whether to import data. The options are as follows:

    -
    • true: Import data.
    • false: Do not import data.
    +

    Whether to import data. The options are as follows:

    +
    • true: Import data.
    • false: Do not import data.

    import_task_id

    +

    import_task_id

    String

    +

    String

    ID of an import task.

    +

    ID of an import task.

    inner_annotation_path

    +

    inner_annotation_path

    String

    +

    String

    Path for storing the labeling result of a dataset.

    +

    Path for storing the labeling result of a dataset.

    inner_data_path

    +

    inner_data_path

    String

    +

    String

    Path for storing the internal data of a dataset.

    +

    Path for storing the internal data of a dataset.

    inner_log_path

    +

    inner_log_path

    String

    +

    String

    Path for storing internal logs of a dataset.

    +

    Path for storing internal logs of a dataset.

    inner_task_path

    +

    inner_task_path

    String

    +

    String

    Path for internal task of a dataset.

    +

    Path for internal task of a dataset.

    inner_temp_path

    +

    inner_temp_path

    String

    +

    String

    Path for storing internal temporary files of a dataset.

    +

    Path for storing internal temporary files of a dataset.

    inner_work_path

    +

    inner_work_path

    String

    +

    String

    Output directory of a dataset.

    +

    Output directory of a dataset.

    label_task_count

    +

    label_task_count

    Integer

    +

    Integer

    Number of labeling tasks.

    +

    Number of labeling tasks.

    labels

    +

    labels

    Array of Label objects

    +

    Array of Label objects

    Dataset label list.

    +

    Dataset label list.

    loading_sample_count

    +

    loading_sample_count

    Integer

    +

    Integer

    Number of loading samples.

    +

    Number of loading samples.

    managed

    +

    managed

    Boolean

    +

    Boolean

    Whether a dataset is hosted. The options are as follows:

    -
    • true: The dataset is hosted.
    • false: The dataset is not hosted.
    +

    Whether a dataset is hosted. The options are as follows:

    +
    • true: The dataset is hosted.
    • false: The dataset is not hosted.

    next_version_num

    +

    next_version_num

    Integer

    +

    Integer

    Number of next versions of a dataset.

    +

    Number of next versions of a dataset.

    running_tasks_id

    +

    running_tasks_id

    Array of strings

    +

    Array of strings

    ID list of running (including initialization) tasks.

    +

    ID list of running (including initialization) tasks.

    schema

    +

    schema

    Array of Field objects

    +

    Array of Field objects

    Schema list.

    +

    Schema list.

    status

    +

    status

    Integer

    +

    Integer

    Dataset status. The options are as follows:

    -
    • 0: creating dataset
    • 1: normal dataset
    • 2: deleting dataset
    • 3: deleted dataset
    • 4: abnormal dataset
    • 5: synchronizing dataset
    • 6: releasing dataset
    • 7: dataset in version switching
    • 8: importing dataset
    +

    Dataset status. The options are as follows:

    +
    • 0: creating dataset
    • 1: normal dataset
    • 2: deleting dataset
    • 3: deleted dataset
    • 4: abnormal dataset
    • 5: synchronizing dataset
    • 6: releasing dataset
    • 7: dataset in version switching
    • 8: importing dataset

    third_path

    +

    third_path

    String

    +

    String

    Third-party path.

    +

    Third-party path.

    total_sample_count

    +

    total_sample_count

    Integer

    +

    Integer

    Total number of dataset samples.

    +

    Total number of dataset samples.

    total_sub_sample_count

    +

    total_sub_sample_count

    Integer

    +

    Integer

    Total number of subsamples generated from the parent samples. For example, the total number of key frame images extracted from the video labeling dataset is that of subsamples.

    +

    Total number of subsamples generated from the parent samples. For example, the total number of key frame images extracted from the video labeling dataset is that of subsamples.

    unconfirmed_sample_count

    +

    unconfirmed_sample_count

    Integer

    +

    Integer

    Number of auto labeling samples to be confirmed.

    +

    Number of auto labeling samples to be confirmed.

    update_time

    +

    update_time

    Long

    +

    Long

    Time when a dataset is updated.

    +

    Time when a dataset is updated.

    versions

    +

    versions

    Array of DatasetVersion objects

    +

    Array of DatasetVersion objects

    Dataset version information. Currently, only the current version information of a dataset is recorded.

    +

    Dataset version information. Currently, only the current version information of a dataset is recorded.

    work_path

    +

    work_path

    String

    +

    String

    Output dataset path, which is used to store output files such as label files. The path is an OBS path in the format of /Bucket name/File path. For example: /obs-bucket.

    +

    Output dataset path, which is used to store output files such as label files. The path is an OBS path in the format of /Bucket name/File path. For example: /obs-bucket.

    work_path_type

    +

    work_path_type

    Integer

    +

    Integer

    Type of the dataset output path. The options are as follows:

    -
    • 0: OBS bucket (default value)
    +

    Type of the dataset output path. The options are as follows:

    +
    • 0: OBS bucket (default value)

    workforce_descriptor

    +

    workforce_descriptor

    WorkforceDescriptor object

    +

    WorkforceDescriptor object

    Team labeling information.

    +

    Team labeling information.

    workforce_task_count

    +

    workforce_task_count

    Integer

    +

    Integer

    Number of team labeling tasks of a dataset.

    +

    Number of team labeling tasks of a dataset.

    workspace_id

    +

    workspace_id

    String

    +

    String

    Workspace ID. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value.

    +

    Workspace ID. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value.

    -
    Table 4 DataSource

    Parameter

    +
    - - - - - - - - - - - - - - - - -
    Table 4 DataSource

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    data_path

    +

    data_path

    String

    +

    String

    Data source path.

    +

    Data source path.

    data_type

    +

    data_type

    Integer

    +

    Integer

    Data type. The options are as follows:

    -
    • 0: OBS bucket (default value)
    • 1: GaussDB(DWS)
    • 2: DLI
    • 3: RDS
    • 4: MRS
    • 5: AI Gallery
    • 6: Inference service
    +

    Data type. The options are as follows:

    +
    • 0: OBS bucket (default value)
    • 1: GaussDB(DWS)
    • 2: DLI
    • 3: RDS
    • 4: MRS
    • 5: AI Gallery
    • 6: Inference service

    schema_maps

    +

    schema_maps

    Array of SchemaMap objects

    +

    Array of SchemaMap objects

    Schema mapping information corresponding to the table data.

    +

    Schema mapping information corresponding to the table data.

    source_info

    +

    source_info

    SourceInfo object

    +

    SourceInfo object

    Information required for importing a table data source.

    +

    Information required for importing a table data source.

    with_column_header

    +

    with_column_header

    Boolean

    +

    Boolean

    Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

    -
    • true: The first row in the file is the column name.
    • false: The first row in the file is not the column name.
    +

    Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

    +
    • true: The first row in the file is the column name.
    • false: The first row in the file is not the column name.
    -
    Table 5 SchemaMap

    Parameter

    +
    - - - - - - - -
    Table 5 SchemaMap

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    dest_name

    +

    dest_name

    String

    +

    String

    Name of the destination column.

    +

    Name of the destination column.

    src_name

    +

    src_name

    String

    +

    String

    Name of the source column.

    +

    Name of the source column.

    -
    Table 6 SourceInfo

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 6 SourceInfo

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    cluster_id

    +

    cluster_id

    String

    +

    String

    ID of an MRS cluster.

    +

    ID of an MRS cluster.

    cluster_mode

    +

    cluster_mode

    String

    +

    String

    Running mode of an MRS cluster. The options are as follows:

    -
    • 0: normal cluster
    • 1: security cluster
    +

    Running mode of an MRS cluster. The options are as follows:

    +
    • 0: normal cluster
    • 1: security cluster

    cluster_name

    +

    cluster_name

    String

    +

    String

    Name of an MRS cluster.

    +

    Name of an MRS cluster.

    database_name

    +

    database_name

    String

    +

    String

    Name of the database to which the table dataset is imported.

    +

    Name of the database to which the table dataset is imported.

    input

    +

    input

    String

    +

    String

    HDFS path of a table dataset.

    +

    HDFS path of a table dataset.

    ip

    +

    ip

    String

    +

    String

    IP address of your GaussDB(DWS) cluster.

    +

    IP address of your GaussDB(DWS) cluster.

    port

    +

    port

    String

    +

    String

    Port number of your GaussDB(DWS) cluster.

    +

    Port number of your GaussDB(DWS) cluster.

    queue_name

    +

    queue_name

    String

    +

    String

    DLI queue name of a table dataset.

    +

    DLI queue name of a table dataset.

    subnet_id

    +

    subnet_id

    String

    +

    String

    Subnet ID of an MRS cluster.

    +

    Subnet ID of an MRS cluster.

    table_name

    +

    table_name

    String

    +

    String

    Name of the table to which a table dataset is imported.

    +

    Name of the table to which a table dataset is imported.

    user_name

    +

    user_name

    String

    +

    String

    Username, which is mandatory for GaussDB(DWS) data.

    +

    Username, which is mandatory for GaussDB(DWS) data.

    user_password

    +

    user_password

    String

    +

    String

    User password, which is mandatory for GaussDB(DWS) data.

    +

    User password, which is mandatory for GaussDB(DWS) data.

    vpc_id

    +

    vpc_id

    String

    +

    String

    ID of the VPC where an MRS cluster resides.

    +

    ID of the VPC where an MRS cluster resides.

    -
    Table 7 Label

    Parameter

    +
    - - - - - - - - - - - - - -
    Table 7 Label

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    attributes

    +

    attributes

    Array of LabelAttribute objects

    +

    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.

    +

    Multi-dimensional attribute of a label. For example, if the label is music, attributes such as style and artist may be included.

    name

    +

    name

    String

    +

    String

    Label name.

    +

    Label name.

    property

    +

    property

    LabelProperty object

    +

    LabelProperty object

    Basic attribute key-value pair of a label, such as color and shortcut keys.

    +

    Basic attribute key-value pair of a label, such as color and shortcut keys.

    type

    +

    type

    Integer

    +

    Integer

    Label type. The options are as follows:

    -
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    +

    Label type. The options are as follows:

    +
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    -
    Table 8 LabelProperty

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - -
    Table 8 LabelProperty

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    @modelarts:color

    +

    @modelarts:color

    String

    +

    String

    Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

    +

    Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

    @modelarts:default_shape

    +

    @modelarts:default_shape

    String

    +

    String

    Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

    -
    • bndbox: rectangle
    • polygon: polygon
    • circle: circle
    • line: straight line
    • dashed: dotted line
    • point: point
    • polyline: polyline
    +

    Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

    +
    • bndbox: rectangle
    • polygon: polygon
    • circle: circle
    • line: straight line
    • dashed: dotted line
    • point: point
    • polyline: polyline

    @modelarts:from_type

    +

    @modelarts:from_type

    String

    +

    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.

    +

    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

    +

    @modelarts:rename_to

    String

    +

    String

    Default attribute: The new name of the label.

    +

    Default attribute: The new name of the label.

    @modelarts:shortcut

    +

    @modelarts:shortcut

    String

    +

    String

    Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

    +

    Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

    @modelarts:to_type

    +

    @modelarts:to_type

    String

    +

    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.

    +

    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.

    -
    Table 9 Field

    Parameter

    +
    - - - - - - - - - - - - - -
    Table 9 Field

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    description

    +

    description

    String

    +

    String

    Schema description.

    +

    Schema description.

    name

    +

    name

    String

    +

    String

    Schema name.

    +

    Schema name.

    schema_id

    +

    schema_id

    Integer

    +

    Integer

    Schema ID.

    +

    Schema ID.

    type

    +

    type

    String

    +

    String

    Schema value type.

    +

    Schema value type.

    -
    Table 10 DatasetVersion

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 10 DatasetVersion

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    add_sample_count

    +

    add_sample_count

    Integer

    +

    Integer

    Number of added samples.

    +

    Number of added samples.

    annotated_sample_count

    +

    annotated_sample_count

    Integer

    +

    Integer

    Number of samples with labeled versions.

    +

    Number of samples with labeled versions.

    annotated_sub_sample_count

    +

    annotated_sub_sample_count

    Integer

    +

    Integer

    Number of labeled subsamples.

    +

    Number of labeled subsamples.

    clear_hard_property

    +

    clear_hard_property

    Boolean

    +

    Boolean

    Whether to clear hard example properties during release. The options are as follows:

    -
    • true: Clear hard example properties. (Default value)
    • false: Do not clear hard example properties.
    +

    Whether to clear hard example properties during release. The options are as follows:

    +
    • true: Clear hard example properties. (Default value)
    • false: Do not clear hard example properties.

    code

    +

    code

    String

    +

    String

    Status code of a preprocessing task such as rotation and cropping.

    +

    Status code of a preprocessing task such as rotation and cropping.

    create_time

    +

    create_time

    Long

    +

    Long

    Time when a version is created.

    +

    Time when a version is created.

    crop

    +

    crop

    Boolean

    +

    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:

    -
    • true: Crop the image.
    • false: Do not crop the image. (Default value)
    +

    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:

    +
    • true: Crop the image.
    • false: Do not crop the image. (Default value)

    crop_path

    +

    crop_path

    String

    +

    String

    Path for storing cropped files.

    +

    Path for storing cropped files.

    crop_rotate_cache_path

    +

    crop_rotate_cache_path

    String

    +

    String

    Temporary directory for executing the rotation and cropping task.

    +

    Temporary directory for executing the rotation and cropping task.

    data_path

    +

    data_path

    String

    +

    String

    Path for storing data.

    +

    Path for storing data.

    data_statistics

    +

    data_statistics

    Map<String,Object>

    +

    Map<String,Object>

    Sample statistics on a dataset, including the statistics on sample metadata in JSON format.

    +

    Sample statistics on a dataset, including the statistics on sample metadata in JSON format.

    data_validate

    +

    data_validate

    Boolean

    +

    Boolean

    Whether data is validated by the validation algorithm before release. The options are as follows:

    -
    • true: The data has been validated.
    • false: The data has not been validated.
    +

    Whether data is validated by the validation algorithm before release. The options are as follows:

    +
    • true: The data has been validated.
    • false: The data has not been validated.

    deleted_sample_count

    +

    deleted_sample_count

    Integer

    +

    Integer

    Number of deleted samples.

    +

    Number of deleted samples.

    deletion_stats

    +

    deletion_stats

    Map<String,Integer>

    +

    Map<String,Integer>

    Deletion reason statistics.

    +

    Deletion reason statistics.

    description

    +

    description

    String

    +

    String

    Description of a version.

    +

    Description of a version.

    export_images

    +

    export_images

    Boolean

    +

    Boolean

    Whether to export images to the version output directory during release. The options are as follows:

    -
    • true: Export images to the version output directory.
    • false: Do not export images to the version output directory. (Default value)
    +

    Whether to export images to the version output directory during release. The options are as follows:

    +
    • true: Export images to the version output directory.
    • false: Do not export images to the version output directory. (Default value)

    extract_serial_number

    +

    extract_serial_number

    Boolean

    +

    Boolean

    Whether to parse the subsample number during release. The field is valid for the healthcare dataset. The options are as follows:

    -
    • true: Parse the subsample number.
    • false: Do not parse the subsample number. (Default value)
    +

    Whether to parse the subsample number during release. The field is valid for the healthcare dataset. The options are as follows:

    +
    • true: Parse the subsample number.
    • false: Do not parse the subsample number. (Default value)

    include_dataset_data

    +

    include_dataset_data

    Boolean

    +

    Boolean

    Whether to include the source data of a dataset during release. The options are as follows:

    -
    • true: The source data of a dataset is included.
    • false: The source data of a dataset is not included.
    +

    Whether to include the source data of a dataset during release. The options are as follows:

    +
    • true: The source data of a dataset is included.
    • false: The source data of a dataset is not included.

    is_current

    +

    is_current

    Boolean

    +

    Boolean

    Whether the current dataset version is used. The options are as follows:

    -
    • true: The current dataset version is used.
    • false: The current dataset version is not used.
    +

    Whether the current dataset version is used. The options are as follows:

    +
    • true: The current dataset version is used.
    • false: The current dataset version is not used.

    label_stats

    +

    label_stats

    Array of LabelStats objects

    +

    Array of LabelStats objects

    Label statistics list of a released version.

    +

    Label statistics list of a released version.

    label_type

    +

    label_type

    String

    +

    String

    Label type of a released version. The options are as follows:

    -
    • multi: Multi-label samples are included.
    • single: All samples are single-labeled.
    +

    Label type of a released version. The options are as follows:

    +
    • multi: Multi-label samples are included.
    • single: All samples are single-labeled.

    manifest_cache_input_path

    +

    manifest_cache_input_path

    String

    +

    String

    Input path for the manifest file cache during version release.

    +

    Input path for the manifest file cache during version release.

    manifest_path

    +

    manifest_path

    String

    +

    String

    Path for storing the manifest file with the released version.

    +

    Path for storing the manifest file with the released version.

    message

    +

    message

    String

    +

    String

    Task information recorded during release (for example, error information).

    +

    Task information recorded during release (for example, error information).

    modified_sample_count

    +

    modified_sample_count

    Integer

    +

    Integer

    Number of modified samples.

    +

    Number of modified samples.

    previous_annotated_sample_count

    +

    previous_annotated_sample_count

    Integer

    +

    Integer

    Number of labeled samples of parent versions.

    +

    Number of labeled samples of parent versions.

    previous_total_sample_count

    +

    previous_total_sample_count

    Integer

    +

    Integer

    Total samples of parent versions.

    +

    Total samples of parent versions.

    previous_version_id

    +

    previous_version_id

    String

    +

    String

    Parent version ID

    +

    Parent version ID

    processor_task_id

    +

    processor_task_id

    String

    +

    String

    ID of a preprocessing task such as rotation and cropping.

    +

    ID of a preprocessing task such as rotation and cropping.

    processor_task_status

    +

    processor_task_status

    Integer

    +

    Integer

    Status of a preprocessing task such as rotation and cropping. The options are as follows:

    -
    • 0: initialized
    • 1: running
    • 2: completed
    • 3: failed
    • 4: stopped
    • 5: timeout
    • 6: deletion failed
    • 7: stop failed
    +

    Status of a preprocessing task such as rotation and cropping. The options are as follows:

    +
    • 0: initialized
    • 1: running
    • 2: completed
    • 3: failed
    • 4: stopped
    • 5: timeout
    • 6: deletion failed
    • 7: stop failed

    remove_sample_usage

    +

    remove_sample_usage

    Boolean

    +

    Boolean

    Whether to clear the existing usage information of a dataset during release. The options are as follows:

    -
    • true: Clear the existing usage information of a dataset. (Default value)
    • false: Do not clear the existing usage information of a dataset.
    +

    Whether to clear the existing usage information of a dataset during release. The options are as follows:

    +
    • true: Clear the existing usage information of a dataset. (Default value)
    • false: Do not clear the existing usage information of a dataset.

    rotate

    +

    rotate

    Boolean

    +

    Boolean

    Whether to rotate the image. The options are as follows:

    -
    • true: Rotate the image.
    • false: Do not rotate the image. (Default value)
    +

    Whether to rotate the image. The options are as follows:

    +
    • true: Rotate the image.
    • false: Do not rotate the image. (Default value)

    rotate_path

    +

    rotate_path

    String

    +

    String

    Path for storing the rotated file.

    +

    Path for storing the rotated file.

    sample_state

    +

    sample_state

    String

    +

    String

    Sample status. The options are as follows:

    -
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed
    +

    Sample status. The options are as follows:

    +
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed

    status

    +

    status

    Integer

    +

    Integer

    Status of a dataset version. The options are as follows:

    -
    • 0: creating
    • 1: running
    • 2: deleting
    • 3: deleted
    • 4: error
    +

    Status of a dataset version. The options are as follows:

    +
    • 0: creating
    • 1: running
    • 2: deleting
    • 3: deleted
    • 4: error

    tags

    +

    tags

    Array of strings

    +

    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"].

    +

    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

    +

    task_type

    Integer

    +

    Integer

    Labeling task type of the released version, which is the same as the dataset type.

    +

    Labeling task type of the released version, which is the same as the dataset type.

    total_sample_count

    +

    total_sample_count

    Integer

    +

    Integer

    Total number of version samples.

    +

    Total number of version samples.

    total_sub_sample_count

    +

    total_sub_sample_count

    Integer

    +

    Integer

    Total number of subsamples generated from the parent samples.

    +

    Total number of subsamples generated from the parent samples.

    train_evaluate_sample_ratio

    +

    train_evaluate_sample_ratio

    String

    +

    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.

    +

    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

    +

    update_time

    Long

    +

    Long

    Time when a version is updated.

    +

    Time when a version is updated.

    version_format

    +

    version_format

    String

    +

    String

    Format of a dataset version. The options are as follows:

    -
    • Default: default format
    • CarbonData: CarbonData (supported only by table datasets)
    • CSV: CSV
    +

    Format of a dataset version. The options are as follows:

    +
    • Default: default format
    • CarbonData: CarbonData (supported only by table datasets)
    • CSV: CSV

    version_id

    +

    version_id

    String

    +

    String

    Dataset version ID.

    +

    Dataset version ID.

    version_name

    +

    version_name

    String

    +

    String

    Dataset version name.

    +

    Dataset version name.

    with_column_header

    +

    with_column_header

    Boolean

    +

    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:

    -
    • true: The first row in the released CSV file is a column name.
    • false: The first row in the released CSV file is not a column name.
    +

    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:

    +
    • true: The first row in the released CSV file is a column name.
    • false: The first row in the released CSV file is not a column name.
    -
    Table 11 LabelStats

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - -
    Table 11 LabelStats

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    attributes

    +

    attributes

    Array of LabelAttribute objects

    +

    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.

    +

    Multi-dimensional attribute of a label. For example, if the label is music, attributes such as style and artist may be included.

    count

    +

    count

    Integer

    +

    Integer

    Number of labels.

    +

    Number of labels.

    name

    +

    name

    String

    +

    String

    Label name.

    +

    Label name.

    property

    +

    property

    LabelProperty object

    +

    LabelProperty object

    Basic attribute key-value pair of a label, such as color and shortcut keys.

    +

    Basic attribute key-value pair of a label, such as color and shortcut keys.

    sample_count

    +

    sample_count

    Integer

    +

    Integer

    Number of samples containing the label.

    +

    Number of samples containing the label.

    type

    +

    type

    Integer

    +

    Integer

    Label type. The options are as follows:

    -
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    +

    Label type. The options are as follows:

    +
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    -
    Table 12 LabelAttribute

    Parameter

    +
    - - - - - - - - - - - - - - - - -
    Table 12 LabelAttribute

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    default_value

    +

    default_value

    String

    +

    String

    Default value of a label attribute.

    +

    Default value of a label attribute.

    id

    +

    id

    String

    +

    String

    Label attribute ID.

    +

    Label attribute ID.

    name

    +

    name

    String

    +

    String

    Label attribute name.

    +

    Label attribute name.

    type

    +

    type

    String

    +

    String

    Label attribute type. The options are as follows:

    -
    • text: text
    • select: single-choice drop-down list
    +

    Label attribute type. The options are as follows:

    +
    • text: text
    • select: single-choice drop-down list

    values

    +

    values

    Array of LabelAttributeValue objects

    +

    Array of LabelAttributeValue objects

    List of label attribute values.

    +

    List of label attribute values.

    -
    Table 13 LabelAttributeValue

    Parameter

    +
    - - - - - - - -
    Table 13 LabelAttributeValue

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    id

    +

    id

    String

    +

    String

    Label attribute value ID.

    +

    Label attribute value ID.

    value

    +

    value

    String

    +

    String

    Label attribute value.

    +

    Label attribute value.

    -
    Table 14 WorkforceDescriptor

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 14 WorkforceDescriptor

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    current_task_id

    +

    current_task_id

    String

    +

    String

    ID of a team labeling task.

    +

    ID of a team labeling task.

    current_task_name

    +

    current_task_name

    String

    +

    String

    Name of a team labeling task.

    +

    Name of a team labeling task.

    reject_num

    +

    reject_num

    Integer

    +

    Integer

    Number of rejected samples.

    +

    Number of rejected samples.

    repetition

    +

    repetition

    Integer

    +

    Integer

    Number of persons who label each sample. The minimum value is 1.

    +

    Number of persons who label each sample. The minimum value is 1.

    is_synchronize_auto_labeling_data

    +

    is_synchronize_auto_labeling_data

    Boolean

    +

    Boolean

    Whether to synchronously update auto labeling data. The options are as follows:

    -
    • true: Update auto labeling data synchronously.
    • false: Do not update auto labeling data synchronously.
    +

    Whether to synchronously update auto labeling data. The options are as follows:

    +
    • true: Update auto labeling data synchronously.
    • false: Do not update auto labeling data synchronously.

    is_synchronize_data

    +

    is_synchronize_data

    Boolean

    +

    Boolean

    Whether to synchronize updated data, such as uploading files, synchronizing data sources, and assigning imported unlabeled files to team members. The options are as follows:

    -
    • true: Synchronize updated data to team members.
    • false: Do not synchronize updated data to team members.
    +

    Whether to synchronize updated data, such as uploading files, synchronizing data sources, and assigning imported unlabeled files to team members. The options are as follows:

    +
    • true: Synchronize updated data to team members.
    • false: Do not synchronize updated data to team members.

    workers

    +

    workers

    Array of Worker objects

    +

    Array of Worker objects

    List of labeling team members.

    +

    List of labeling team members.

    workforce_id

    +

    workforce_id

    String

    +

    String

    ID of a labeling team.

    +

    ID of a labeling team.

    workforce_name

    +

    workforce_name

    String

    +

    String

    Name of a labeling team.

    +

    Name of a labeling team.

    -
    Table 15 Worker

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 15 Worker

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    create_time

    +

    create_time

    Long

    +

    Long

    Creation time.

    +

    Creation time.

    description

    +

    description

    String

    +

    String

    Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

    +

    Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

    email

    +

    email

    String

    +

    String

    Email address of a labeling team member.

    +

    Email address of a labeling team member.

    role

    +

    role

    Integer

    +

    Integer

    Role. The options are as follows:

    -
    • 0: labeling personnel
    • 1: reviewer
    • 2: team administrator
    • 3: dataset owner
    +

    Role. The options are as follows:

    +
    • 0: labeling personnel
    • 1: reviewer
    • 2: team administrator
    • 3: dataset owner

    status

    +

    status

    Integer

    +

    Integer

    Current login status of a labeling team member. The options are as follows:

    -
    • 0: The invitation email has not been sent.
    • 1: The invitation email has been sent but the user has not logged in.
    • 2: The user has logged in.
    • 3: The labeling team member has been deleted.
    +

    Current login status of a labeling team member. The options are as follows:

    +
    • 0: The invitation email has not been sent.
    • 1: The invitation email has been sent but the user has not logged in.
    • 2: The user has logged in.
    • 3: The labeling team member has been deleted.

    update_time

    +

    update_time

    Long

    +

    Long

    Update time.

    +

    Update time.

    worker_id

    +

    worker_id

    String

    +

    String

    ID of a labeling team member.

    +

    ID of a labeling team member.

    workforce_id

    +

    workforce_id

    String

    +

    String

    ID of a labeling team.

    +

    ID of a labeling team.

    -

    Example Requests

    Querying Details About a Dataset

    -
    GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}
    +

    Example Requests

    Querying Details About a Dataset

    +
    GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}
    -

    Example Responses

    Status code: 200

    -

    OK

    -
    {
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
       "dataset_id" : "gfghHSokody6AJigS5A",
       "dataset_name" : "dataset-f9e8",
       "dataset_type" : 0,
    @@ -1437,38 +1437,38 @@
       } ]
     }
    -

    Status Codes

    -

    Status Code

    +

    Status Codes

    +
    - - - - - - - - -

    Status Code

    Description

    +

    Description

    200

    +

    200

    OK

    +

    OK

    401

    +

    401

    Unauthorized

    +

    Unauthorized

    403

    +

    403

    Forbidden

    +

    Forbidden

    404

    +

    404

    Not Found

    +

    Not Found

    -

    Error Codes

    See Error Codes.

    +

    Error Codes

    See Error Codes.

    diff --git a/docs/modelarts/api-ref/DescImportTask.html b/docs/modelarts/api-ref/DescImportTask.html index 99acea09..10a06e35 100644 --- a/docs/modelarts/api-ref/DescImportTask.html +++ b/docs/modelarts/api-ref/DescImportTask.html @@ -1,463 +1,463 @@

    Querying Details About a Dataset Import Task

    -

    Function

    This API is used to query details about a dataset import task.

    +

    Function

    This API is used to query details about a dataset import task.

    -

    URI

    GET /v2/{project_id}/datasets/{dataset_id}/import-tasks/{task_id}

    +

    URI

    GET /v2/{project_id}/datasets/{dataset_id}/import-tasks/{task_id}

    -
    Table 1 Path Parameters

    Parameter

    +
    - - - - - - - - - - - - - - -
    Table 1 Path Parameters

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    dataset_id

    +

    dataset_id

    Yes

    +

    Yes

    String

    +

    String

    Dataset ID.

    +

    Dataset ID.

    project_id

    +

    project_id

    Yes

    +

    Yes

    String

    +

    String

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    task_id

    +

    task_id

    Yes

    +

    Yes

    String

    +

    String

    Task ID.

    +

    Task ID.

    -

    Request Parameters

    None

    +

    Request Parameters

    None

    -

    Response Parameters

    Status code: 200

    +

    Response Parameters

    Status code: 200

    -
    Table 2 Response body parameters

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 2 Response body parameters

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    annotated_sample_count

    +

    annotated_sample_count

    Long

    +

    Long

    Number of labeled samples.

    +

    Number of labeled samples.

    create_time

    +

    create_time

    Long

    +

    Long

    Time when a task is created.

    +

    Time when a task is created.

    data_source

    +

    data_source

    DataSource object

    +

    DataSource object

    Data source.

    +

    Data source.

    dataset_id

    +

    dataset_id

    String

    +

    String

    Dataset ID.

    +

    Dataset ID.

    elapsed_time

    +

    elapsed_time

    Long

    +

    Long

    Task running time, in seconds.

    +

    Task running time, in seconds.

    error_code

    +

    error_code

    String

    +

    String

    Error code.

    +

    Error code.

    error_msg

    +

    error_msg

    String

    +

    String

    Error message.

    +

    Error message.

    file_statistics

    +

    file_statistics

    FileCopyProgress object

    +

    FileCopyProgress object

    Progress of file copy.

    +

    Progress of file copy.

    finished_file_count

    +

    finished_file_count

    Long

    +

    Long

    Number of files that have been transferred.

    +

    Number of files that have been transferred.

    finished_file_size

    +

    finished_file_size

    Long

    +

    Long

    Size of the file that has been transferred, in bytes.

    +

    Size of the file that has been transferred, in bytes.

    import_path

    +

    import_path

    String

    +

    String

    OBS path or manifest path to be imported.

    -
    • When importing a manifest file, ensure that the path is accurate to the manifest file.
    • When a path is imported as a directory, the dataset type can only support image classification, object detection, text classification, or sound classification.
    +

    OBS path or manifest path to be imported.

    +
    • When importing a manifest file, ensure that the path is accurate to the manifest file.
    • When a path is imported as a directory, the dataset type can only support image classification, object detection, text classification, or sound classification.

    import_type

    +

    import_type

    Integer

    +

    Integer

    Import mode. The options are as follows:

    -
    • 0: Import by directory.
    • 1: Import by manifest file.
    +

    Import mode. The options are as follows:

    +
    • 0: Import by directory.
    • 1: Import by manifest file.

    imported_sample_count

    +

    imported_sample_count

    Long

    +

    Long

    Number of imported samples.

    +

    Number of imported samples.

    imported_sub_sample_count

    +

    imported_sub_sample_count

    Long

    +

    Long

    Number of imported subsamples.

    +

    Number of imported subsamples.

    processor_task_id

    +

    processor_task_id

    String

    +

    String

    ID of a preprocessing task.

    +

    ID of a preprocessing task.

    processor_task_status

    +

    processor_task_status

    Integer

    +

    Integer

    Status of a preprocessing task.

    +

    Status of a preprocessing task.

    status

    +

    status

    String

    +

    String

    Status of an import task. The options are as follows:

    -
    • QUEUING: queuing
    • STARTING: execution started
    • RUNNING: running
    • COMPLETED: completed
    • FAILED: failed
    • NOT_EXIST: not found
    +

    Status of an import task. The options are as follows:

    +
    • QUEUING: queuing
    • STARTING: execution started
    • RUNNING: running
    • COMPLETED: completed
    • FAILED: failed
    • NOT_EXIST: not found

    task_id

    +

    task_id

    String

    +

    String

    Task ID.

    +

    Task ID.

    total_file_count

    +

    total_file_count

    Long

    +

    Long

    Total number of files.

    +

    Total number of files.

    total_file_size

    +

    total_file_size

    Long

    +

    Long

    Total file size, in bytes.

    +

    Total file size, in bytes.

    total_sample_count

    +

    total_sample_count

    Long

    +

    Long

    Total number of samples.

    +

    Total number of samples.

    total_sub_sample_count

    +

    total_sub_sample_count

    Long

    +

    Long

    Total number of subsamples generated from the parent samples.

    +

    Total number of subsamples generated from the parent samples.

    unconfirmed_sample_count

    +

    unconfirmed_sample_count

    Long

    +

    Long

    Number of samples to be confirmed.

    +

    Number of samples to be confirmed.

    update_ms

    +

    update_ms

    Long

    +

    Long

    Time when a task is updated.

    +

    Time when a task is updated.

    -
    Table 3 DataSource

    Parameter

    +
    - - - - - - - - - - - - - - - - -
    Table 3 DataSource

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    data_path

    +

    data_path

    String

    +

    String

    Data source path.

    +

    Data source path.

    data_type

    +

    data_type

    Integer

    +

    Integer

    Data type. The options are as follows:

    -
    • 0: OBS bucket (default value)
    • 1: GaussDB(DWS)
    • 2: DLI
    • 3: RDS
    • 4: MRS
    • 5: AI Gallery
    • 6: Inference service
    +

    Data type. The options are as follows:

    +
    • 0: OBS bucket (default value)
    • 1: GaussDB(DWS)
    • 2: DLI
    • 3: RDS
    • 4: MRS
    • 5: AI Gallery
    • 6: Inference service

    schema_maps

    +

    schema_maps

    Array of SchemaMap objects

    +

    Array of SchemaMap objects

    Schema mapping information corresponding to the table data.

    +

    Schema mapping information corresponding to the table data.

    source_info

    +

    source_info

    SourceInfo object

    +

    SourceInfo object

    Information required for importing a table data source.

    +

    Information required for importing a table data source.

    with_column_header

    +

    with_column_header

    Boolean

    +

    Boolean

    Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

    -
    • true: The first row in the file is the column name.
    • false: The first row in the file is not the column name.
    +

    Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

    +
    • true: The first row in the file is the column name.
    • false: The first row in the file is not the column name.
    -
    Table 4 SchemaMap

    Parameter

    +
    - - - - - - - -
    Table 4 SchemaMap

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    dest_name

    +

    dest_name

    String

    +

    String

    Name of the destination column.

    +

    Name of the destination column.

    src_name

    +

    src_name

    String

    +

    String

    Name of the source column.

    +

    Name of the source column.

    -
    Table 5 SourceInfo

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 5 SourceInfo

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    cluster_id

    +

    cluster_id

    String

    +

    String

    ID of an MRS cluster.

    +

    ID of an MRS cluster.

    cluster_mode

    +

    cluster_mode

    String

    +

    String

    Running mode of an MRS cluster. The options are as follows:

    -
    • 0: normal cluster
    • 1: security cluster
    +

    Running mode of an MRS cluster. The options are as follows:

    +
    • 0: normal cluster
    • 1: security cluster

    cluster_name

    +

    cluster_name

    String

    +

    String

    Name of an MRS cluster.

    +

    Name of an MRS cluster.

    database_name

    +

    database_name

    String

    +

    String

    Name of the database to which the table dataset is imported.

    +

    Name of the database to which the table dataset is imported.

    input

    +

    input

    String

    +

    String

    HDFS path of a table dataset.

    +

    HDFS path of a table dataset.

    ip

    +

    ip

    String

    +

    String

    IP address of your GaussDB(DWS) cluster.

    +

    IP address of your GaussDB(DWS) cluster.

    port

    +

    port

    String

    +

    String

    Port number of your GaussDB(DWS) cluster.

    +

    Port number of your GaussDB(DWS) cluster.

    queue_name

    +

    queue_name

    String

    +

    String

    DLI queue name of a table dataset.

    +

    DLI queue name of a table dataset.

    subnet_id

    +

    subnet_id

    String

    +

    String

    Subnet ID of an MRS cluster.

    +

    Subnet ID of an MRS cluster.

    table_name

    +

    table_name

    String

    +

    String

    Name of the table to which a table dataset is imported.

    +

    Name of the table to which a table dataset is imported.

    user_name

    +

    user_name

    String

    +

    String

    Username, which is mandatory for GaussDB(DWS) data.

    +

    Username, which is mandatory for GaussDB(DWS) data.

    user_password

    +

    user_password

    String

    +

    String

    User password, which is mandatory for GaussDB(DWS) data.

    +

    User password, which is mandatory for GaussDB(DWS) data.

    vpc_id

    +

    vpc_id

    String

    +

    String

    ID of the VPC where an MRS cluster resides.

    +

    ID of the VPC where an MRS cluster resides.

    -
    Table 6 FileCopyProgress

    Parameter

    +
    - - - - - - - - - - - - - -
    Table 6 FileCopyProgress

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    file_num_finished

    +

    file_num_finished

    Long

    +

    Long

    Number of files that have been transferred.

    +

    Number of files that have been transferred.

    file_num_total

    +

    file_num_total

    Long

    +

    Long

    Total number of files.

    +

    Total number of files.

    file_size_finished

    +

    file_size_finished

    Long

    +

    Long

    Size of the file that has been transferred, in bytes.

    +

    Size of the file that has been transferred, in bytes.

    file_size_total

    +

    file_size_total

    Long

    +

    Long

    Total file size, in bytes.

    +

    Total file size, in bytes.

    -

    Example Requests

    Querying Details About an Import Task

    -
    GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/import-tasks/{task_id}
    +

    Example Requests

    Querying Details About an Import Task

    +
    GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/import-tasks/{task_id}
    -

    Example Responses

    Status code: 200

    -

    OK

    -
    {
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
       "status" : "COMPLETED",
       "task_id" : "gfghHSokody6AJigS5A_RHJ1zOkIoI3Nzwxj8nh",
       "dataset_id" : "gfghHSokody6AJigS5A",
    @@ -477,38 +477,38 @@
       "elapsed_time" : 2
     }
    -

    Status Codes

    -

    Status Code

    +

    Status Codes

    +
    - - - - - - - - -

    Status Code

    Description

    +

    Description

    200

    +

    200

    OK

    +

    OK

    401

    +

    401

    Unauthorized

    +

    Unauthorized

    403

    +

    403

    Forbidden

    +

    Forbidden

    404

    +

    404

    Not Found

    +

    Not Found

    -

    Error Codes

    See Error Codes.

    +

    Error Codes

    See Error Codes.

    diff --git a/docs/modelarts/api-ref/DescProcessorTaskVersion.html b/docs/modelarts/api-ref/DescProcessorTaskVersion.html new file mode 100644 index 00000000..3c5f9330 --- /dev/null +++ b/docs/modelarts/api-ref/DescProcessorTaskVersion.html @@ -0,0 +1,464 @@ + + +

    Querying the Details About the Version of a Data Processing Task

    +

    Function

    This API is used to query the details about the version of a data processing task.

    +
    +

    URI

    GET /v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}

    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    task_id

    +

    Yes

    +

    String

    +

    ID of a data processing task.

    +

    version_id

    +

    Yes

    +

    String

    +

    Version ID of a data processing task.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    add_sample_count

    +

    Integer

    +

    Number of added images after processing.

    +

    create_time

    +

    Long

    +

    Time when a data processing task is created.

    +

    deleted_sample_count

    +

    Integer

    +

    Number of deleted images after processing.

    +

    description

    +

    String

    +

    Version description of a data processing task.

    +

    duration_seconds

    +

    Integer

    +

    Running time of a data processing task, in seconds.

    +

    inputs

    +

    Array of ProcessorDataSource objects

    +

    Input channel of a data processing task.

    +

    modified_sample_count

    +

    Integer

    +

    Number of modified images after processing.

    +

    origin_sample_count

    +

    Integer

    +

    Number of images before processing.

    +

    status

    +

    Integer

    +

    Status of a data processing task. The options are as follows:

    +
    • 0: initialized

      +
    • 1: running

      +
    • 2: completed

      +
    • 3: failed

      +
    • 4: stopped

      +
    +

    task_id

    +

    String

    +

    ID of a data processing task.

    +

    task_version_id

    +

    String

    +

    Version ID of a data processing task.

    +

    template

    +

    TemplateParam object

    +

    Algorithm template, such as the algorithm ID and parameters.

    +

    unmodified_sample_count

    +

    Integer

    +

    Number of unmodified images after processing.

    +

    update_time

    +

    Long

    +

    Time when a data processing task is created.

    +

    version_name

    +

    String

    +

    Version name of a data processing task.

    +

    work_path

    +

    WorkPath object

    +

    Output channel of a data processing task.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 3 ProcessorDataSource

    Parameter

    +

    Type

    +

    Description

    +

    name

    +

    String

    +

    Dataset name.

    +

    source

    +

    String

    +

    Data source path. The options are as follows:

    +
    • If type is set to OBS, source is an OBS path.

      +
    • If type is set to TASK, source is a task ID.

      +
    • If type is set to DATASET, source is a dataset ID.

      +
    • If type is set to CUSTOM and the API is called by resource tenants, set source to the project_id of the actual user. Otherwise, this field is left blank.

      +
    +

    type

    +

    String

    +

    Data source type. The options are as follows:

    +
    • OBS: Data obtained from OBS

      +
    • TASK: Data processing task

      +
    • DATASET: Dataset

      +
    • CUSTOM: Data called by resource tenants

      +
    +

    version_id

    +

    String

    +

    Version of a dataset.

    +

    version_name

    +

    String

    +

    Dataset version name.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 4 TemplateParam

    Parameter

    +

    Type

    +

    Description

    +

    id

    +

    String

    +

    Task type, that is, ID of a data processing template. The options are as follows:

    +
    • sys_data_analyse: feature analysis

      +
    • sys_data_cleaning: data cleansing

      +
    • sys_data_augmentation: data augmentation

      +
    • sys_data_validation: data validation

      +
    • sys_data_selection: data selection

      +
    +

    name

    +

    String

    +

    Template name.

    +

    operator_params

    +

    Array of OperatorParam objects

    +

    Operator parameter list.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 5 OperatorParam

    Parameter

    +

    Type

    +

    Description

    +

    advanced_params_switch

    +

    Boolean

    +

    Advanced parameter switch.

    +

    id

    +

    String

    +

    ID of an operator.

    +

    name

    +

    String

    +

    Name of an operator.

    +

    params

    +

    Object

    +

    Operator parameter. The parameter type is map<string,object>. Currently, object only supports the types of Boolean, Integer, Long, String, List and Map<String,String>. For two special scenarios of object detection and image classification in a data preprocessing task, the value of task_type is object_detection or image_classification.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 6 WorkPath

    Parameter

    +

    Type

    +

    Description

    +

    name

    +

    String

    +

    Dataset name.

    +

    output_path

    +

    String

    +

    Output path.

    +

    path

    +

    String

    +

    Working path. The options are as follows:

    +
    • If type is set to OBS, source is an OBS path.

      +
    • If type is set to DATASET, source is a dataset ID.

      +
    +

    type

    +

    String

    +

    Type of a working path. The options are as follows:

    +
    • OBS: OBS path

      +
    • DATASET: dataset

      +
    +

    version_id

    +

    String

    +

    Version of a dataset.

    +

    version_name

    +

    String

    +

    Name of a dataset version. The value can contain 0 to 32 characters. Only digits, letters, underscores (_), and hyphens (-) are allowed.

    +
    +
    +
    +

    Example Requests

    Querying Details About a Data Processing Task Version

    +
    GET https://{endpoint}/v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}
    +
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
    +  "task_version_id" : "qSaudx2sbPvthHygckA",
    +  "task_id" : "kM7j9TSa611ZzBThzSr",
    +  "version_name" : "V002",
    +  "description" : "",
    +  "status" : 0,
    +  "create_time" : 1606377874450,
    +  "inputs" : [ {
    +    "type" : "DATASET",
    +    "source" : "PYc9H2HGv5BJNwBGXyK",
    +    "version_id" : "Osc8SZ7TZStiRV4vYkZ",
    +    "name" : "dataset-test",
    +    "version_name" : "V0010"
    +  } ],
    +  "work_path" : {
    +    "type" : "DATASET",
    +    "path" : "PYc9H2HGv5BJNwBGXyK",
    +    "name" : "dataset-test",
    +    "version_name" : "V0011",
    +    "output_path" : "/test-obs/classify/output/qSaudx2sbPvthHygckA/"
    +  },
    +  "template" : {
    +    "id" : "sys_data_validation",
    +    "name" : "name to translate",
    +    "operator_params" : [ {
    +      "name" : "MetaValidation",
    +      "advanced_params_switch" : false,
    +      "params" : {
    +        "task_type" : "image_classification",
    +        "dataset_type" : "manifest",
    +        "source_service" : "select",
    +        "filter_func" : "data_validation_select",
    +        "image_max_width" : "1920",
    +        "image_max_height" : "1920",
    +        "total_status" : "[0,1,2]"
    +      }
    +    } ]
    +  },
    +  "duration_seconds" : 312
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    OK

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +

    404

    +

    Not Found

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/DescWorker.html b/docs/modelarts/api-ref/DescWorker.html new file mode 100644 index 00000000..eb8ff937 --- /dev/null +++ b/docs/modelarts/api-ref/DescWorker.html @@ -0,0 +1,186 @@ + + +

    Querying Details About Labeling Team Members

    +

    Function

    This API is used to query details about labeling team members.

    +
    +

    URI

    GET /v2/{project_id}/workforces/{workforce_id}/workers/{worker_id}

    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    worker_id

    +

    Yes

    +

    String

    +

    ID of a labeling team member.

    +

    workforce_id

    +

    Yes

    +

    String

    +

    ID of a labeling team.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    create_time

    +

    Long

    +

    Creation time.

    +

    description

    +

    String

    +

    Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

    +

    email

    +

    String

    +

    Email address of a labeling team member.

    +

    role

    +

    Integer

    +

    Role. The options are as follows:

    +
    • 0: labeling personnel

      +
    • 1: reviewer

      +
    • 2: team administrator

      +
    • 3: dataset owner

      +
    +

    status

    +

    Integer

    +

    Current login status of a labeling team member. The options are as follows:

    +
    • 0: The invitation email has not been sent.

      +
    • 1: The invitation email has been sent but the user has not logged in.

      +
    • 2: The user has logged in.

      +
    • 3: The labeling team member has been deleted.

      +
    +

    update_time

    +

    Long

    +

    Update time.

    +

    worker_id

    +

    String

    +

    ID of a labeling team member.

    +

    workforce_id

    +

    String

    +

    ID of a labeling team.

    +
    +
    +
    +

    Example Requests

    Querying Details About Labeling Team Members

    +
    GET https://{endpoint}/v2/{project_id}/workforces/{workforce_id}/workers/{worker_id}
    +
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
    +  "email" : "xxx@xxx.com",
    +  "worker_id" : "b1e4054407ecb36a7bcde70f52ba37f2",
    +  "workforce_id" : "gyb7IaAvkLc5IhEY2dv",
    +  "status" : 0,
    +  "role" : 2,
    +  "description" : "",
    +  "create_time" : 1606356324223,
    +  "update_time" : 1606356324223
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    OK

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +

    404

    +

    Not Found

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/DescWorkforce.html b/docs/modelarts/api-ref/DescWorkforce.html new file mode 100644 index 00000000..e564c883 --- /dev/null +++ b/docs/modelarts/api-ref/DescWorkforce.html @@ -0,0 +1,158 @@ + + +

    Querying Details About a Labeling Team

    +

    Function

    This API is used to query the details about a labeling team.

    +
    +

    URI

    GET /v2/{project_id}/workforces/{workforce_id}

    + +
    + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    workforce_id

    +

    Yes

    +

    String

    +

    ID of a labeling team.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    create_time

    +

    Long

    +

    Time when a labeling team is created.

    +

    description

    +

    String

    +

    Description of a labeling team.

    +

    update_time

    +

    Long

    +

    Time when a labeling team is updated.

    +

    worker_count

    +

    Integer

    +

    Total number of labeling team members.

    +

    workforce_id

    +

    String

    +

    ID of a labeling team.

    +

    workforce_name

    +

    String

    +

    Name of a labeling team.

    +

    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.

    +
    +
    +
    +

    Example Requests

    Querying Details About a Labeling Team

    +
    GET https://{endpoint}/v2/{project_id}/workforces/{workforce_id}
    +
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
    +  "workforce_id" : "gyb7IaAvkLc5IhEY2dv",
    +  "workforce_name" : "team-aed7",
    +  "description" : "",
    +  "worker_count" : 2,
    +  "create_time" : 1575104620882,
    +  "update_time" : 1575104620882
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    OK

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +

    404

    +

    Not Found

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/DescWorkforceTask.html b/docs/modelarts/api-ref/DescWorkforceTask.html new file mode 100644 index 00000000..04772ec5 --- /dev/null +++ b/docs/modelarts/api-ref/DescWorkforceTask.html @@ -0,0 +1,1362 @@ + + +

    Querying Details About a Team Labeling Task

    +

    Function

    This API is used to query the details about a team labeling task.

    +
    +

    URI

    GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}

    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    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.

    +

    workforce_task_id

    +

    Yes

    +

    String

    +

    ID of a team labeling task.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Query Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    label_stats

    +

    No

    +

    Boolean

    +

    Whether to return label statistics. The options are as follows:

    +
    • true: Return label statistics.

      +
    • false: Do not return label statistics. (Default value)

      +
    +

    sample_stats

    +

    No

    +

    Boolean

    +

    Whether to return sample statistics. The options are as follows:

    +
    • true: Return sample statistics.

      +
    • false: Do not return sample statistics. (Default value)

      +
    +

    workforce_stats

    +

    No

    +

    Boolean

    +

    Whether to return personnel statistics. The options are as follows:

    +
    • true: Return personnel statistics.

      +
    • false: Do not return personnel statistics. (Default value)

      +
    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 3 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    auto_sync_dataset

    +

    Boolean

    +

    Whether to automatically synchronize the result of a team labeling task to the dataset. The options are as follows:

    +
    • true: Automatically synchronize the result of a team labeling task to the dataset.

      +
    • false: Do not automatically synchronize the result of a team labeling task to the dataset.

      +
    +

    check_rate

    +

    Double

    +

    Acceptance ratio of a team labeling task.

    +

    checking_task_desc

    +

    WorkforceSamplingTaskDesc object

    +

    Details about the current acceptance task of a team labeling task.

    +

    create_time

    +

    Long

    +

    Time when a labeling task is created.

    +

    dataset_id

    +

    String

    +

    Dataset ID.

    +

    description

    +

    String

    +

    Description of a labeling task.

    +

    label_stats

    +

    Array of LabelStats objects

    +

    Label statistics of a labeling task.

    +

    pass_rate

    +

    Double

    +

    Acceptance pass rate of a team labeling task.

    +

    repetition

    +

    Integer

    +

    Number of persons who label each sample in a team labeling task. The minimum value is 1.

    +

    sample_search_conditions

    +

    Array of SearchCondition objects

    +

    Sample search conditions when creating a task.

    +

    sample_stats

    +

    SampleStats object

    +

    Sample statistics of a labeling task.

    +

    score

    +

    Double

    +

    Average acceptance score of a team labeling task.

    +

    status

    +

    Integer

    +

    Status of a team labeling task. The options are as follows:- 6: created. The owner has created a task but does not start it. Only the owner and manager can view the task list.- 0: starting. The owner or manager starts the task and assigns the files to be labeled. The owner, manager, labeler, and reviewer can view the task list. If the task assignment is not complete, a new task cannot be started.- 1: running. The task is labeled and reviewed by the labeler and reviewer, respectively and is accepted by the owner. If auto labeling files are added or synchronized, or unlabeled files are imported, the new files need to be assigned again.- 2: under acceptance. The owner initiates an acceptance task but does not complete it. In this state, a new acceptance task cannot be initiated until the current one is completed.- 3: passed. The team labeling task has been completed.- 4: rejected. In this state, the manager starts the task again and assigns it for labeling and reviewing.- 5: synchronizing acceptance result. This state is displayed when acceptance tasks are changed to be asynchronous. In this state, new acceptance tasks cannot be initiated and the current acceptance task cannot be continued. In the task name area, a message is displayed, indicating that the acceptance result is being synchronized.- 7: acceptance sampling. This state is displayed when acceptance tasks are changed to be asynchronous. In this state, new acceptance tasks cannot be initiated and the current acceptance task cannot be continued. In the task name area, a message is displayed, indicating that the acceptance sampling is in progress.

    +

    synchronize_auto_labeling_data

    +

    Boolean

    +

    Whether to synchronize the auto labeling result of a team labeling task. The options are as follows:

    +
    • true: Synchronize the results to be confirmed to team members after auto labeling is complete.

      +
    • false: Do not synchronize the auto labeling results. (Default value)

      +
    +

    synchronize_data

    +

    Boolean

    +

    Whether to synchronize the added data of a team labeling task. The options are as follows:

    +
    • true: Upload files, synchronize data sources, and synchronize imported unlabeled files to team members.

      +
    • false: Do not synchronize the added data. (Default value)

      +
    +

    task_id

    +

    String

    +

    ID of a labeling task.

    +

    task_name

    +

    String

    +

    Name of a labeling task.

    +

    update_time

    +

    Long

    +

    Time when a labeling task is updated.

    +

    version_id

    +

    String

    +

    Version ID of the dataset associated with a labeling task.

    +

    worker_stats

    +

    Array of WorkerTask objects

    +

    Labeling progress statistics on team labeling task members.

    +

    workforce_stats

    +

    WorkforceStats object

    +

    Statistics on team labeling task members.

    +

    workforces_config

    +

    WorkforcesConfig object

    +

    Team labeling task information: Tasks can be assigned by the team administrator or a specified team.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 4 WorkforceSamplingTaskDesc

    Parameter

    +

    Type

    +

    Description

    +

    action

    +

    Integer

    +

    Action after the acceptance. The options are as follows:

    +
    • 0: Pass all samples when the acceptance is completed (including single-rejected samples)

      +
    • 1: Reject all samples when the acceptance is completed (including single-accepted samples)

      +
    • 4: Pass only single-accepted samples and unaccepted samples.

      +
    • 5: Reject only single-rejected samples and unaccepted samples.

      +
    +

    checking_stats

    +

    CheckTaskStats object

    +

    Real-time report of acceptance tasks.

    +

    checking_task_id

    +

    String

    +

    ID of the current acceptance task.

    +

    overwrite_last_result

    +

    Boolean

    +

    Whether to use the acceptance result to overwrite the labeled result if a sample has been labeled during acceptance. The options are as follows:

    +
    • true: Overwrite the labeled result.

      +
    • false: Do not overwrite the labeled result. (Default value)

      +
    +

    total_stats

    +

    CheckTaskStats object

    +

    Overall report of historical acceptance tasks.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 5 CheckTaskStats

    Parameter

    +

    Type

    +

    Description

    +

    accepted_sample_count

    +

    Integer

    +

    Accepted samples.

    +

    checked_sample_count

    +

    Integer

    +

    Checked samples.

    +

    pass_rate

    +

    Double

    +

    Pass rate of samples.

    +

    rejected_sample_count

    +

    Integer

    +

    Rejected samples.

    +

    sampled_sample_count

    +

    Integer

    +

    Number of sampled samples.

    +

    sampling_num

    +

    Integer

    +

    Samples of an acceptance task.

    +

    sampling_rate

    +

    Double

    +

    Sampling rate of an acceptance task.

    +

    score

    +

    String

    +

    Acceptance score.

    +

    task_id

    +

    String

    +

    ID of an acceptance task.

    +

    total_sample_count

    +

    Integer

    +

    Total samples.

    +

    total_score

    +

    Long

    +

    Total acceptance score.

    +

    unchecked_sample_count

    +

    Integer

    +

    Unchecked samples.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 6 LabelStats

    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:

    +
    • 0: image classification

      +
    • 1: object detection

      +
    • 100: text classification

      +
    • 101: named entity recognition

      +
    • 102: text triplet relationship

      +
    • 103: text triplet entity

      +
    • 200: speech classification

      +
    • 201: speech content

      +
    • 202: speech paragraph labeling

      +
    • 600: video classification

      +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 7 LabelAttribute

    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:

    +
    • text: text

      +
    • select: single-choice drop-down list

      +
    +

    values

    +

    Array of LabelAttributeValue objects

    +

    List of label attribute values.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 8 LabelAttributeValue

    Parameter

    +

    Type

    +

    Description

    +

    id

    +

    String

    +

    Label attribute value ID.

    +

    value

    +

    String

    +

    Label attribute value.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 9 LabelProperty

    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:

    +
    • bndbox: rectangle

      +
    • polygon: polygon

      +
    • circle: circle

      +
    • line: straight line

      +
    • dashed: dotted line

      +
    • point: point

      +
    • polyline: polyline

      +
    +

    @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.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 10 SearchCondition

    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. The options are as follows:

    +
    • 0: non-hard sample

      +
    • 1: hard sample

      +
    +

    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. The options are as follows:- month: Search for samples added from 30 days ago to the current day.- day: Search for samples added from yesterday (one day ago) to the current day.- yyyyMMdd-yyyyMMdd: Search for samples added in a specified period (at most 30 days), in the format of Start date-End date. For example, 20190901-2019091501 indicates that samples generated from September 1 to September 15, 2019 are searched.

    +

    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.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 11 SearchLabels

    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. The options are as follows:

    +
    • OR: OR operation

      +
    • AND: AND operation

      +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 12 SearchLabel

    Parameter

    +

    Type

    +

    Description

    +

    name

    +

    String

    +

    Label name.

    +

    op

    +

    String

    +

    Operation type between multiple attributes. The options are as follows:

    +
    • OR: OR operation

      +
    • AND: AND operation

      +
    +

    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. The options are as follows:

    +
    • 0: image classification

      +
    • 1: object detection

      +
    • 100: text classification

      +
    • 101: named entity recognition

      +
    • 102: text triplet relationship

      +
    • 103: text triplet entity

      +
    • 200: speech classification

      +
    • 201: speech content

      +
    • 202: speech paragraph labeling

      +
    • 600: video classification

      +
    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 13 SearchProp

    Parameter

    +

    Type

    +

    Description

    +

    op

    +

    String

    +

    Relationship between attribute values. The options are as follows:

    +
    • AND: AND relationship

      +
    • OR: OR relationship

      +
    +

    props

    +

    Map<String,Array<String>>

    +

    Search criteria of an attribute. Multiple search criteria can be set.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 14 SampleStats

    Parameter

    +

    Type

    +

    Description

    +

    accepted_sample_count

    +

    Integer

    +

    Number of samples accepted by the owner.

    +

    auto_annotation_sample_count

    +

    Integer

    +

    Number of samples to be confirmed after intelligent labeling.

    +

    deleted_sample_count

    +

    Integer

    +

    Number of deleted samples.

    +

    rejected_sample_count

    +

    Integer

    +

    Number of samples that failed to pass the owner acceptance.

    +

    sampled_sample_count

    +

    Integer

    +

    Number of samples that are to be accepted by the owner and sampled.

    +

    total_sample_count

    +

    Integer

    +

    Total number of samples.

    +

    unannotated_sample_count

    +

    Integer

    +

    Number of unlabeled samples.

    +

    uncheck_sample_count

    +

    Integer

    +

    Number of samples that have been approved by the reviewer and are to be accepted by the owner.

    +

    unreviewed_sample_count

    +

    Integer

    +

    Number of samples that have been labeled by the labeler but have not been reviewed by the reviewer.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 15 WorkerTask

    Parameter

    +

    Type

    +

    Description

    +

    create_time

    +

    Long

    +

    Time when a labeling team member's task is created.

    +

    dataset_id

    +

    String

    +

    ID of a dataset associated with a labeling team member's task.

    +

    dataset_type

    +

    Integer

    +

    Labeling type of a team member's task.

    +

    email

    +

    String

    +

    Email address of a labeling team member.

    +

    email_status

    +

    Integer

    +

    Email notification status of a labeling team member's labeling task. The options are as follows:

    +
    • 0: The email has not been sent.

      +
    • 1: The email format is incorrect.

      +
    • 2: The email address is unreachable.

      +
    • 3: The email has been sent.

      +
    +

    last_notify_time

    +

    Long

    +

    Timestamp of the latest notification email sent to a labeling team member.

    +

    pass_rate

    +

    Double

    +

    Pass rate of task acceptance review for a labeling team member.

    +

    role

    +

    Integer

    +

    Role of a labeling team member.

    +

    sample_stats

    +

    SampleStats object

    +

    Sample statistics of a labeling team member's task.

    +

    score

    +

    Double

    +

    Average acceptance score of labeling team members' task samples.

    +

    task_id

    +

    String

    +

    Team labeling task ID associated with a member's task.

    +

    task_status

    +

    Integer

    +

    Task status of a labeling team member. The options are as follows:

    +
    • 6: created

      +
    • 0: starting

      +
    • 1: running

      +
    • 2: under acceptance

      +
    • 3: approved, indicating the team labeling task is complete

      +
    • 4: rejected, indicating that the task needs to be labeled and reviewed again

      +
    +

    update_time

    +

    Long

    +

    Time when a labeling team member's task is updated.

    +

    worker_id

    +

    String

    +

    ID of a labeling team member.

    +

    workforce_task_name

    +

    String

    +

    Team labeling task name associated with a member's task.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 16 WorkforceStats

    Parameter

    +

    Type

    +

    Description

    +

    labeler_count

    +

    Integer

    +

    Number of labeling persons.

    +

    reviewer_count

    +

    Integer

    +

    Number of reviewers.

    +

    workforce_count

    +

    Integer

    +

    Number of teams.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 17 WorkforcesConfig

    Parameter

    +

    Type

    +

    Description

    +

    agency

    +

    String

    +

    Team administrator.

    +

    workforces

    +

    Array of WorkforceConfig objects

    +

    List of teams that execute labeling tasks.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 18 WorkforceConfig

    Parameter

    +

    Type

    +

    Description

    +

    workers

    +

    Array of Worker objects

    +

    List of labeling team members.

    +

    workforce_id

    +

    String

    +

    ID of a labeling team.

    +

    workforce_name

    +

    String

    +

    Name of a labeling team. The value contains 0 to 1024 characters and does not support the following special characters: !<>=&"'

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 19 Worker

    Parameter

    +

    Type

    +

    Description

    +

    create_time

    +

    Long

    +

    Creation time.

    +

    description

    +

    String

    +

    Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

    +

    email

    +

    String

    +

    Email address of a labeling team member.

    +

    role

    +

    Integer

    +

    Role. The options are as follows:

    +
    • 0: labeling personnel

      +
    • 1: reviewer

      +
    • 2: team administrator

      +
    • 3: dataset owner

      +
    +

    status

    +

    Integer

    +

    Current login status of a labeling team member. The options are as follows:

    +
    • 0: The invitation email has not been sent.

      +
    • 1: The invitation email has been sent but the user has not logged in.

      +
    • 2: The user has logged in.

      +
    • 3: The labeling team member has been deleted.

      +
    +

    update_time

    +

    Long

    +

    Update time.

    +

    worker_id

    +

    String

    +

    ID of a labeling team member.

    +

    workforce_id

    +

    String

    +

    ID of a labeling team.

    +
    +
    +
    +

    Example Requests

    Querying Details About a Team Labeling Task

    +
    GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}
    +
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
    +  "dataset_id" : "WxCREuCkBSAlQr9xrde",
    +  "task_id" : "iYZx7gScPUozOXner9k",
    +  "task_name" : "task-e63f",
    +  "status" : 1,
    +  "create_time" : 1606184400278,
    +  "update_time" : 1606184400278,
    +  "repetition" : 1,
    +  "workforces_config" : {
    +    "workforces" : [ {
    +      "workforce_id" : "q3ZFSwORu1ztKljDLYQ",
    +      "workers" : [ {
    +        "email" : "xxx@xxx.com",
    +        "worker_id" : "afdda13895bc66322ffbf36ae833bcf0",
    +        "role" : 0
    +      } ]
    +    } ]
    +  },
    +  "synchronize_data" : false,
    +  "synchronize_auto_labeling_data" : false,
    +  "workforce_stats" : {
    +    "workforce_count" : 1,
    +    "labeler_count" : 1,
    +    "reviewer_count" : 0
    +  },
    +  "sample_stats" : {
    +    "total_sample_count" : 317,
    +    "unannotated_sample_count" : 310,
    +    "unreviewed_sample_count" : 0,
    +    "uncheck_sample_count" : 0,
    +    "sampled_sample_count" : 0,
    +    "rejected_sample_count" : 0,
    +    "accepted_sample_count" : 7,
    +    "auto_annotation_sample_count" : 0
    +  },
    +  "checking_task_desc" : {
    +    "checking_task_id" : "onSbri2oqYOmDjDyW17",
    +    "action" : 0,
    +    "overwrite_last_result" : false
    +  },
    +  "auto_check_samples" : true,
    +  "auto_sync_dataset" : true,
    +  "worker_stats" : [ {
    +    "email" : "xxx@xxx.com",
    +    "worker_id" : "afdda13895bc66322ffbf36ae833bcf0",
    +    "role" : 0,
    +    "task_id" : "iYZx7gScPUozOXner9k",
    +    "workforce_task_name" : "task-e63f",
    +    "dataset_id" : "WxCREuCkBSAlQr9xrde",
    +    "sample_stats" : {
    +      "total_sample_count" : 317,
    +      "unannotated_sample_count" : 310,
    +      "unreviewed_sample_count" : 0,
    +      "uncheck_sample_count" : 0,
    +      "sampled_sample_count" : 0,
    +      "rejected_sample_count" : 0,
    +      "accepted_sample_count" : 7,
    +      "auto_annotation_sample_count" : 0
    +    },
    +    "create_time" : 1606184400278,
    +    "update_time" : 1606184795050,
    +    "email_status" : 3,
    +    "last_notify_time" : 0,
    +    "user" : {
    +      "domainId" : "04f924738800d3270fc0c013a47363a0",
    +      "domainName" : "test_123",
    +      "projectId" : "04f924739300d3272fc3c013e36bb4b8",
    +      "userId" : "04f924743b00d4331f31c0131ada6769",
    +      "userName" : "test_123"
    +    }
    +  } ]
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    OK

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +

    404

    +

    Not Found

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/DescribeAutoAnnotationSample.html b/docs/modelarts/api-ref/DescribeAutoAnnotationSample.html new file mode 100644 index 00000000..fe2d195f --- /dev/null +++ b/docs/modelarts/api-ref/DescribeAutoAnnotationSample.html @@ -0,0 +1,614 @@ + + +

    Querying Details About an Auto Labeling Sample

    +

    Function

    This API is used to query details about an auto labeling sample.

    +
    +

    URI

    GET /v2/{project_id}/datasets/{dataset_id}/auto-annotations/samples/{sample_id}

    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    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.

    +

    sample_id

    +

    Yes

    +

    String

    +

    Sample ID.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    check_accept

    +

    Boolean

    +

    Whether the acceptance is passed, which is used for team labeling. The options are as follows:

    +
    • true: The acceptance is passed.
    • false: The acceptance is not passed.
    +

    check_comment

    +

    String

    +

    Acceptance comment, which is used for team labeling.

    +

    check_score

    +

    String

    +

    Acceptance score, which is used for team labeling.

    +

    deletion_reasons

    +

    Array of strings

    +

    Reason for deleting a sample, which is used for healthcare.

    +

    hard_details

    +

    Map<String,HardDetail>

    +

    Details about difficulties, including description, causes, and suggestions of difficult problems.

    +

    labelers

    +

    Array of Worker objects

    +

    Labeling personnel list of sample assignment. The labelers record the team members to which the sample is allocated for team labeling.

    +

    labels

    +

    Array of SampleLabel objects

    +

    Sample label list.

    +

    metadata

    +

    SampleMetadata object

    +

    Key-value pair of the sample metadata attribute.

    +

    review_accept

    +

    Boolean

    +

    Whether to accept the review, which is used for team labeling. The options are as follows:

    +
    • true: accepted
    • false: rejected
    +

    review_comment

    +

    String

    +

    Review comment, which is used for team labeling.

    +

    review_score

    +

    String

    +

    Review score, which is used for team labeling.

    +

    sample_data

    +

    Array of strings

    +

    Sample data list.

    +

    sample_dir

    +

    String

    +

    Sample path.

    +

    sample_id

    +

    String

    +

    Sample ID.

    +

    sample_name

    +

    String

    +

    Sample name.

    +

    sample_size

    +

    Long

    +

    Sample size or text length, in bytes.

    +

    sample_status

    +

    String

    +

    Sample status. The options are as follows:

    +
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed
    +

    sample_time

    +

    Long

    +

    Sample time, when OBS is last modified.

    +

    sample_type

    +

    Integer

    +

    Sample type. The options are as follows:

    +
    • 0: image
    • 1: text
    • 2: speech
    • 4: table
    • 6: video
    • 9: custom format
    +

    score

    +

    String

    +

    Comprehensive score, which is used for team labeling.

    +

    source

    +

    String

    +

    Source address of sample data.

    +

    sub_sample_url

    +

    String

    +

    Subsample URL, which is used for healthcare.

    +

    worker_id

    +

    String

    +

    ID of a labeling team member, which is used for team labeling.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 3 HardDetail

    Parameter

    +

    Type

    +

    Description

    +

    alo_name

    +

    String

    +

    Alias.

    +

    id

    +

    Integer

    +

    Reason ID.

    +

    reason

    +

    String

    +

    Reason description.

    +

    suggestion

    +

    String

    +

    Handling suggestion.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 4 Worker

    Parameter

    +

    Type

    +

    Description

    +

    create_time

    +

    Long

    +

    Creation time.

    +

    description

    +

    String

    +

    Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

    +

    email

    +

    String

    +

    Email address of a labeling team member.

    +

    role

    +

    Integer

    +

    Role. The options are as follows:

    +
    • 0: labeling personnel
    • 1: reviewer
    • 2: team administrator
    • 3: dataset owner
    +

    status

    +

    Integer

    +

    Current login status of a labeling team member. The options are as follows:

    +
    • 0: The invitation email has not been sent.
    • 1: The invitation email has been sent but the user has not logged in.
    • 2: The user has logged in.
    • 3: The labeling team member has been deleted.
    +

    update_time

    +

    Long

    +

    Update time.

    +

    worker_id

    +

    String

    +

    ID of a labeling team member.

    +

    workforce_id

    +

    String

    +

    ID of a labeling team.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 5 SampleLabel

    Parameter

    +

    Type

    +

    Description

    +

    annotated_by

    +

    String

    +

    Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

    +
    • human: manual labeling
    • auto: automatic labeling
    +

    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. The options are as follows:

    +
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 6 SampleLabelProperty

    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. Examples are as follows.- If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.- If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.

    +

    @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 an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:- bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.- polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].- circle: consists of the center point and radius, for example, [[100,100],[50]].- line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- point: consists of one point, for example, [[0,100]].- polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].

    +

    @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:

    +
    • 0/false: not a hard example
    • 1/true: hard example
    +

    @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. The options are as follows:

    +
    • 0: No target objects are identified.
    • 1: The confidence is low.
    • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
    • 3: The prediction result is greatly different from the data of the same type in the training dataset.
    • 4: The prediction results of multiple consecutive similar images are inconsistent.
    • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
    • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
    • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
    • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
    • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
    • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
    • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
    • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
    • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
    • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
    • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
    • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
    • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
    • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
    • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
    • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
    • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
    • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
    • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
    • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
    • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
    • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
    • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
    • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
    • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
    • 30: The data is predicted to be abnormal.
    +

    @modelarts:shape

    +

    String

    +

    Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

    +
    • bndbox: rectangle
    • polygon: polygon
    • circle: circle
    • line: straight line
    • dashed: dotted line
    • point: point
    • polyline: polyline
    +

    @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.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 7 SampleMetadata

    Parameter

    +

    Type

    +

    Description

    +

    @modelarts:hard

    +

    Double

    +

    Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

    +
    • 0: non-hard sample
    • 1: hard sample
    +

    @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. The options are as follows:

    +
    • 0: No target objects are identified.
    • 1: The confidence is low.
    • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
    • 3: The prediction result is greatly different from the data of the same type in the training dataset.
    • 4: The prediction results of multiple consecutive similar images are inconsistent.
    • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
    • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
    • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
    • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
    • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
    • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
    • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
    • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
    • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
    • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
    • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
    • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
    • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
    • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
    • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
    • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
    • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
    • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
    • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
    • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
    • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
    • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
    • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
    • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
    • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
    • 30: The data is predicted to be abnormal.
    +

    @modelarts:size

    +

    Array of objects

    +

    Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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

    Querying Details About an Auto Labeling Sample

    +
    GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/auto-annotations/samples/{sample_id}
    +
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
    +  "sample_id" : "0059c1b9458a2da9443af684b5099b4e",
    +  "sample_type" : 0,
    +  "labels" : [ {
    +    "name" : "Rabbit",
    +    "type" : 0,
    +    "id" : "1",
    +    "property" : {
    +      "@modelarts:hard_coefficient" : "0.0",
    +      "@modelarts:hard" : "false"
    +    },
    +    "score" : 0.66
    +  } ],
    +  "source" : "https://test-obs.obs.xxx.com:443/data/3_1597649054631.jpg?AccessKeyId=RciyO7RHmhNTfOZVryUH&Expires=1606299474&Signature=anOLGOHPSrj3WXUHVc70tAxWlf4%3D",
    +  "metadata" : {
    +    "test" : "1",
    +    "@modelarts:hard_coefficient" : 0.0,
    +    "@modelarts:hard" : false,
    +    "@modelarts:import_origin" : 0,
    +    "@modelarts:hard_reasons" : [ ]
    +  },
    +  "sample_time" : 1600490651933,
    +  "sample_status" : "UN_ANNOTATION",
    +  "annotated_by" : ""
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    OK

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +

    404

    +

    Not Found

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/DescribeDatasetVersion.html b/docs/modelarts/api-ref/DescribeDatasetVersion.html index 5ee0a5e2..bb47abc5 100644 --- a/docs/modelarts/api-ref/DescribeDatasetVersion.html +++ b/docs/modelarts/api-ref/DescribeDatasetVersion.html @@ -1,587 +1,587 @@

    Querying Details About a Dataset Version

    -

    Function

    This API is used to query the 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}

    +

    URI

    GET /v2/{project_id}/datasets/{dataset_id}/versions/{version_id}

    -
    Table 1 Path Parameters

    Parameter

    +
    - - - - - - - - - - - - - - -
    Table 1 Path Parameters

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    dataset_id

    +

    dataset_id

    Yes

    +

    Yes

    String

    +

    String

    Dataset ID.

    +

    Dataset ID.

    project_id

    +

    project_id

    Yes

    +

    Yes

    String

    +

    String

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    version_id

    +

    version_id

    Yes

    +

    Yes

    String

    +

    String

    Dataset version ID.

    +

    Dataset version ID.

    -

    Request Parameters

    None

    +

    Request Parameters

    None

    -

    Response Parameters

    Status code: 200

    +

    Response Parameters

    Status code: 200

    -
    Table 2 Response body parameters

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 2 Response body parameters

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    add_sample_count

    +

    add_sample_count

    Integer

    +

    Integer

    Number of added samples.

    +

    Number of added samples.

    annotated_sample_count

    +

    annotated_sample_count

    Integer

    +

    Integer

    Number of samples with labeled versions.

    +

    Number of samples with labeled versions.

    annotated_sub_sample_count

    +

    annotated_sub_sample_count

    Integer

    +

    Integer

    Number of labeled subsamples.

    +

    Number of labeled subsamples.

    clear_hard_property

    +

    clear_hard_property

    Boolean

    +

    Boolean

    Whether to clear hard example properties during release. The options are as follows:

    -
    • true: Clear hard example properties. (Default value)
    • false: Do not clear hard example properties.
    +

    Whether to clear hard example properties during release. The options are as follows:

    +
    • true: Clear hard example properties. (Default value)
    • false: Do not clear hard example properties.

    code

    +

    code

    String

    +

    String

    Status code of a preprocessing task such as rotation and cropping.

    +

    Status code of a preprocessing task such as rotation and cropping.

    create_time

    +

    create_time

    Long

    +

    Long

    Time when a version is created.

    +

    Time when a version is created.

    crop

    +

    crop

    Boolean

    +

    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:

    -
    • true: Crop the image.
    • false: Do not crop the image. (Default value)
    +

    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:

    +
    • true: Crop the image.
    • false: Do not crop the image. (Default value)

    crop_path

    +

    crop_path

    String

    +

    String

    Path for storing cropped files.

    +

    Path for storing cropped files.

    crop_rotate_cache_path

    +

    crop_rotate_cache_path

    String

    +

    String

    Temporary directory for executing the rotation and cropping task.

    +

    Temporary directory for executing the rotation and cropping task.

    data_path

    +

    data_path

    String

    +

    String

    Path for storing data.

    +

    Path for storing data.

    data_statistics

    +

    data_statistics

    Map<String,Object>

    +

    Map<String,Object>

    Sample statistics on a dataset, including the statistics on sample metadata in JSON format.

    +

    Sample statistics on a dataset, including the statistics on sample metadata in JSON format.

    data_validate

    +

    data_validate

    Boolean

    +

    Boolean

    Whether data is validated by the validation algorithm before release. The options are as follows:

    -
    • true: The data has been validated.
    • false: The data has not been validated.
    +

    Whether data is validated by the validation algorithm before release. The options are as follows:

    +
    • true: The data has been validated.
    • false: The data has not been validated.

    deleted_sample_count

    +

    deleted_sample_count

    Integer

    +

    Integer

    Number of deleted samples.

    +

    Number of deleted samples.

    deletion_stats

    +

    deletion_stats

    Map<String,Integer>

    +

    Map<String,Integer>

    Deletion reason statistics.

    +

    Deletion reason statistics.

    description

    +

    description

    String

    +

    String

    Description of a version.

    +

    Description of a version.

    export_images

    +

    export_images

    Boolean

    +

    Boolean

    Whether to export images to the version output directory during release. The options are as follows:

    -
    • true: Export images to the version output directory.
    • false: Do not export images to the version output directory. (Default value)
    +

    Whether to export images to the version output directory during release. The options are as follows:

    +
    • true: Export images to the version output directory.
    • false: Do not export images to the version output directory. (Default value)

    extract_serial_number

    +

    extract_serial_number

    Boolean

    +

    Boolean

    Whether to parse the subsample number during release. The field is valid for the healthcare dataset. The options are as follows:

    -
    • true: Parse the subsample number.
    • false: Do not parse the subsample number. (Default value)
    +

    Whether to parse the subsample number during release. The field is valid for the healthcare dataset. The options are as follows:

    +
    • true: Parse the subsample number.
    • false: Do not parse the subsample number. (Default value)

    include_dataset_data

    +

    include_dataset_data

    Boolean

    +

    Boolean

    Whether to include the source data of a dataset during release. The options are as follows:

    -
    • true: The source data of a dataset is included.
    • false: The source data of a dataset is not included.
    +

    Whether to include the source data of a dataset during release. The options are as follows:

    +
    • true: The source data of a dataset is included.
    • false: The source data of a dataset is not included.

    is_current

    +

    is_current

    Boolean

    +

    Boolean

    Whether the current dataset version is used. The options are as follows:

    -
    • true: The current dataset version is used.
    • false: The current dataset version is not used.
    +

    Whether the current dataset version is used. The options are as follows:

    +
    • true: The current dataset version is used.
    • false: The current dataset version is not used.

    label_stats

    +

    label_stats

    Array of LabelStats objects

    +

    Array of LabelStats objects

    Label statistics list of a released version.

    +

    Label statistics list of a released version.

    label_type

    +

    label_type

    String

    +

    String

    Label type of a released version. The options are as follows:

    -
    • multi: Multi-label samples are included.
    • single: All samples are single-labeled.
    +

    Label type of a released version. The options are as follows:

    +
    • multi: Multi-label samples are included.
    • single: All samples are single-labeled.

    manifest_cache_input_path

    +

    manifest_cache_input_path

    String

    +

    String

    Input path for the manifest file cache during version release.

    +

    Input path for the manifest file cache during version release.

    manifest_path

    +

    manifest_path

    String

    +

    String

    Path for storing the manifest file with the released version.

    +

    Path for storing the manifest file with the released version.

    message

    +

    message

    String

    +

    String

    Task information recorded during release (for example, error information).

    +

    Task information recorded during release (for example, error information).

    modified_sample_count

    +

    modified_sample_count

    Integer

    +

    Integer

    Number of modified samples.

    +

    Number of modified samples.

    previous_annotated_sample_count

    +

    previous_annotated_sample_count

    Integer

    +

    Integer

    Number of labeled samples of parent versions.

    +

    Number of labeled samples of parent versions.

    previous_total_sample_count

    +

    previous_total_sample_count

    Integer

    +

    Integer

    Total samples of parent versions.

    +

    Total samples of parent versions.

    previous_version_id

    +

    previous_version_id

    String

    +

    String

    Parent version ID

    +

    Parent version ID

    processor_task_id

    +

    processor_task_id

    String

    +

    String

    ID of a preprocessing task such as rotation and cropping.

    +

    ID of a preprocessing task such as rotation and cropping.

    processor_task_status

    +

    processor_task_status

    Integer

    +

    Integer

    Status of a preprocessing task such as rotation and cropping. The options are as follows:

    -
    • 0: initialized
    • 1: running
    • 2: completed
    • 3: failed
    • 4: stopped
    • 5: timeout
    • 6: deletion failed
    • 7: stop failed
    +

    Status of a preprocessing task such as rotation and cropping. The options are as follows:

    +
    • 0: initialized
    • 1: running
    • 2: completed
    • 3: failed
    • 4: stopped
    • 5: timeout
    • 6: deletion failed
    • 7: stop failed

    remove_sample_usage

    +

    remove_sample_usage

    Boolean

    +

    Boolean

    Whether to clear the existing usage information of a dataset during release. The options are as follows:

    -
    • true: Clear the existing usage information of a dataset. (Default value)
    • false: Do not clear the existing usage information of a dataset.
    +

    Whether to clear the existing usage information of a dataset during release. The options are as follows:

    +
    • true: Clear the existing usage information of a dataset. (Default value)
    • false: Do not clear the existing usage information of a dataset.

    rotate

    +

    rotate

    Boolean

    +

    Boolean

    Whether to rotate the image. The options are as follows:

    -
    • true: Rotate the image.
    • false: Do not rotate the image. (Default value)
    +

    Whether to rotate the image. The options are as follows:

    +
    • true: Rotate the image.
    • false: Do not rotate the image. (Default value)

    rotate_path

    +

    rotate_path

    String

    +

    String

    Path for storing the rotated file.

    +

    Path for storing the rotated file.

    sample_state

    +

    sample_state

    String

    +

    String

    Sample status. The options are as follows:

    -
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed
    +

    Sample status. The options are as follows:

    +
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed

    status

    +

    status

    Integer

    +

    Integer

    Status of a dataset version. The options are as follows:

    -
    • 0: creating
    • 1: running
    • 2: deleting
    • 3: deleted
    • 4: error
    +

    Status of a dataset version. The options are as follows:

    +
    • 0: creating
    • 1: running
    • 2: deleting
    • 3: deleted
    • 4: error

    tags

    +

    tags

    Array of strings

    +

    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"].

    +

    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

    +

    task_type

    Integer

    +

    Integer

    Labeling task type of the released version, which is the same as the dataset type.

    +

    Labeling task type of the released version, which is the same as the dataset type.

    total_sample_count

    +

    total_sample_count

    Integer

    +

    Integer

    Total number of version samples.

    +

    Total number of version samples.

    total_sub_sample_count

    +

    total_sub_sample_count

    Integer

    +

    Integer

    Total number of subsamples generated from the parent samples.

    +

    Total number of subsamples generated from the parent samples.

    train_evaluate_sample_ratio

    +

    train_evaluate_sample_ratio

    String

    +

    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.

    +

    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

    +

    update_time

    Long

    +

    Long

    Time when a version is updated.

    +

    Time when a version is updated.

    version_format

    +

    version_format

    String

    +

    String

    Format of a dataset version. The options are as follows:

    -
    • Default: default format
    • CarbonData: CarbonData (supported only by table datasets)
    • CSV: CSV
    +

    Format of a dataset version. The options are as follows:

    +
    • Default: default format
    • CarbonData: CarbonData (supported only by table datasets)
    • CSV: CSV

    version_id

    +

    version_id

    String

    +

    String

    Dataset version ID.

    +

    Dataset version ID.

    version_name

    +

    version_name

    String

    +

    String

    Dataset version name.

    +

    Dataset version name.

    with_column_header

    +

    with_column_header

    Boolean

    +

    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:

    -
    • true: The first row in the released CSV file is a column name.
    • false: The first row in the released CSV file is not a column name.
    +

    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:

    +
    • true: The first row in the released CSV file is a column name.
    • false: The first row in the released CSV file is not a column name.
    -
    Table 3 LabelStats

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - -
    Table 3 LabelStats

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    attributes

    +

    attributes

    Array of LabelAttribute objects

    +

    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.

    +

    Multi-dimensional attribute of a label. For example, if the label is music, attributes such as style and artist may be included.

    count

    +

    count

    Integer

    +

    Integer

    Number of labels.

    +

    Number of labels.

    name

    +

    name

    String

    +

    String

    Label name.

    +

    Label name.

    property

    +

    property

    LabelProperty object

    +

    LabelProperty object

    Basic attribute key-value pair of a label, such as color and shortcut keys.

    +

    Basic attribute key-value pair of a label, such as color and shortcut keys.

    sample_count

    +

    sample_count

    Integer

    +

    Integer

    Number of samples containing the label.

    +

    Number of samples containing the label.

    type

    +

    type

    Integer

    +

    Integer

    Label type. The options are as follows:

    -
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    +

    Label type. The options are as follows:

    +
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    -
    Table 4 LabelAttribute

    Parameter

    +
    - - - - - - - - - - - - - - - - -
    Table 4 LabelAttribute

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    default_value

    +

    default_value

    String

    +

    String

    Default value of a label attribute.

    +

    Default value of a label attribute.

    id

    +

    id

    String

    +

    String

    Label attribute ID.

    +

    Label attribute ID.

    name

    +

    name

    String

    +

    String

    Label attribute name.

    +

    Label attribute name.

    type

    +

    type

    String

    +

    String

    Label attribute type. The options are as follows:

    -
    • text: text
    • select: single-choice drop-down list
    +

    Label attribute type. The options are as follows:

    +
    • text: text
    • select: single-choice drop-down list

    values

    +

    values

    Array of LabelAttributeValue objects

    +

    Array of LabelAttributeValue objects

    List of label attribute values.

    +

    List of label attribute values.

    -
    Table 5 LabelAttributeValue

    Parameter

    +
    - - - - - - - -
    Table 5 LabelAttributeValue

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    id

    +

    id

    String

    +

    String

    Label attribute value ID.

    +

    Label attribute value ID.

    value

    +

    value

    String

    +

    String

    Label attribute value.

    +

    Label attribute value.

    -
    Table 6 LabelProperty

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - -
    Table 6 LabelProperty

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    @modelarts:color

    +

    @modelarts:color

    String

    +

    String

    Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

    +

    Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

    @modelarts:default_shape

    +

    @modelarts:default_shape

    String

    +

    String

    Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

    -
    • bndbox: rectangle
    • polygon: polygon
    • circle: circle
    • line: straight line
    • dashed: dotted line
    • point: point
    • polyline: polyline
    +

    Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

    +
    • bndbox: rectangle
    • polygon: polygon
    • circle: circle
    • line: straight line
    • dashed: dotted line
    • point: point
    • polyline: polyline

    @modelarts:from_type

    +

    @modelarts:from_type

    String

    +

    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.

    +

    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

    +

    @modelarts:rename_to

    String

    +

    String

    Default attribute: The new name of the label.

    +

    Default attribute: The new name of the label.

    @modelarts:shortcut

    +

    @modelarts:shortcut

    String

    +

    String

    Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

    +

    Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

    @modelarts:to_type

    +

    @modelarts:to_type

    String

    +

    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.

    +

    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 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

    -
    {
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
       "version_id" : "eSOKEQaXhKzxN00WKoV",
       "version_name" : "V002",
       "version_format" : "Default",
    @@ -621,38 +621,38 @@
       "extract_serial_number" : false
     }
    -

    Status Codes

    -

    Status Code

    +

    Status Codes

    +
    - - - - - - - - -

    Status Code

    Description

    +

    Description

    200

    +

    200

    OK

    +

    OK

    401

    +

    401

    Unauthorized

    +

    Unauthorized

    403

    +

    403

    Forbidden

    +

    Forbidden

    404

    +

    404

    Not Found

    +

    Not Found

    -

    Error Codes

    See Error Codes.

    +

    Error Codes

    See Error Codes.

    diff --git a/docs/modelarts/api-ref/DescribeProcessorTask.html b/docs/modelarts/api-ref/DescribeProcessorTask.html new file mode 100644 index 00000000..50f1679c --- /dev/null +++ b/docs/modelarts/api-ref/DescribeProcessorTask.html @@ -0,0 +1,464 @@ + + +

    Querying Details About a Processing Task

    +

    Function

    This API is used to query the details about processing tasks. You can query feature analysis tasks and data processing tasks. You can specify the task_id parameter to query the details about a specific task.

    +
    +

    URI

    GET /v2/{project_id}/processor-tasks/{task_id}

    + +
    + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    task_id

    +

    Yes

    +

    String

    +

    ID of a data processing task.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    create_time

    +

    Long

    +

    Time when a data processing task is created.

    +

    data_source

    +

    ProcessorDataSource object

    +

    Input of a data processing task. Either this parameter or inputs is delivered.

    +

    description

    +

    String

    +

    Description of a data processing task.

    +

    duration_seconds

    +

    Integer

    +

    Running time of data processing, in seconds.

    +

    error_msg

    +

    String

    +

    Error message. This field is displayed when the value of status is 3.

    +

    inputs

    +

    Array of ProcessorDataSource objects

    +

    Input channel list of a data processing task. Either this parameter or data_source is delivered.

    +

    is_current

    +

    Boolean

    +

    Whether the current task is the latest of the same type of this version.

    +

    name

    +

    String

    +

    Name of a data processing task.

    +

    result

    +

    Object

    +

    Output result of a data processing task. This field is displayed when status is set to 2 and is valid for a feature analysis task.

    +

    status

    +

    Integer

    +

    Status of a data processing task. The options are as follows:

    +
    • 0: initialized

      +
    • 1: running

      +
    • 2: completed

      +
    • 3: failed

      +
    • 4: stopped

      +
    +

    task_id

    +

    String

    +

    ID of a data processing task.

    +

    template

    +

    TemplateParam object

    +

    Data processing template, such as the algorithm ID and parameters.

    +

    version_count

    +

    Integer

    +

    Version number of a data processing task.

    +

    version_id

    +

    String

    +

    Dataset version ID corresponding to a data processing task.

    +

    version_name

    +

    String

    +

    Dataset version name corresponding to a data processing task.

    +

    work_path

    +

    WorkPath object

    +

    Working directory of a data processing task.

    +

    workspace_id

    +

    String

    +

    Workspace ID of a data processing task. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 3 ProcessorDataSource

    Parameter

    +

    Type

    +

    Description

    +

    name

    +

    String

    +

    Dataset name.

    +

    source

    +

    String

    +

    Data source path. The options are as follows:

    +
    • If type is set to OBS, source is an OBS path.

      +
    • If type is set to TASK, source is a task ID.

      +
    • If type is set to DATASET, source is a dataset ID.

      +
    • If type is set to CUSTOM and the API is called by resource tenants, set source to the project_id of the actual user. Otherwise, this field is left blank.

      +
    +

    type

    +

    String

    +

    Data source type. The options are as follows:

    +
    • OBS: Data obtained from OBS

      +
    • TASK: Data processing task

      +
    • DATASET: Dataset

      +
    • CUSTOM: Data called by resource tenants

      +
    +

    version_id

    +

    String

    +

    Version of a dataset.

    +

    version_name

    +

    String

    +

    Dataset version name.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 4 TemplateParam

    Parameter

    +

    Type

    +

    Description

    +

    id

    +

    String

    +

    Task type, that is, ID of a data processing template. The options are as follows:

    +
    • sys_data_analyse: feature analysis

      +
    • sys_data_cleaning: data cleansing

      +
    • sys_data_augmentation: data augmentation

      +
    • sys_data_validation: data validation

      +
    • sys_data_selection: data selection

      +
    +

    name

    +

    String

    +

    Template name.

    +

    operator_params

    +

    Array of OperatorParam objects

    +

    Operator parameter list.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 5 OperatorParam

    Parameter

    +

    Type

    +

    Description

    +

    advanced_params_switch

    +

    Boolean

    +

    Advanced parameter switch.

    +

    id

    +

    String

    +

    ID of an operator.

    +

    name

    +

    String

    +

    Name of an operator.

    +

    params

    +

    Object

    +

    Operator parameter. The parameter type is map<string,object>. Currently, object only supports the types of Boolean, Integer, Long, String, List and Map<String,String>. For two special scenarios of object detection and image classification in a data preprocessing task, the value of task_type is object_detection or image_classification.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 6 WorkPath

    Parameter

    +

    Type

    +

    Description

    +

    name

    +

    String

    +

    Dataset name.

    +

    output_path

    +

    String

    +

    Output path.

    +

    path

    +

    String

    +

    Working path. The options are as follows:

    +
    • If type is set to OBS, source is an OBS path.

      +
    • If type is set to DATASET, source is a dataset ID.

      +
    +

    type

    +

    String

    +

    Type of a working path. The options are as follows:

    +
    • OBS: OBS path

      +
    • DATASET: dataset

      +
    +

    version_id

    +

    String

    +

    Version of a dataset.

    +

    version_name

    +

    String

    +

    Name of a dataset version. The value can contain 0 to 32 characters. Only digits, letters, underscores (_), and hyphens (-) are allowed.

    +
    +
    +
    +

    Example Requests

    Querying Details About a Data Processing Task

    +
    GET https://{endpoint}/v2/{project_id}/processor-tasks/{task_id}
    +
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
    +  "task_id" : "SSzH9AdmHTvIBeihArb",
    +  "name" : "PRE-6c83",
    +  "description" : "test",
    +  "inputs" : [ {
    +    "type" : "DATASET",
    +    "source" : "qjHAs14pRu4n2so1Qlb",
    +    "version_id" : "cUELhTAYGIR36YpTE5Y",
    +    "name" : "dataset-dba1",
    +    "version_name" : "V001"
    +  } ],
    +  "work_path" : {
    +    "type" : "DATASET",
    +    "path" : "qjHAs14pRu4n2so1Qlb",
    +    "name" : "dataset-dba1",
    +    "version_name" : "V002",
    +    "output_path" : "/test-lxm/data-out/EnyHCFzjTFY20U3sYSE/"
    +  },
    +  "template" : {
    +    "id" : "sys_data_validation",
    +    "name" : "data validation template name",
    +    "operator_params" : [ {
    +      "name" : "MetaValidation",
    +      "advanced_params_switch" : false,
    +      "params" : {
    +        "task_type" : "image_classification",
    +        "dataset_type" : "manifest",
    +        "source_service" : "select",
    +        "filter_func" : "data_validation_select",
    +        "image_max_width" : "-1",
    +        "image_max_height" : "-1",
    +        "total_status" : "[0,1,2]"
    +      }
    +    } ]
    +  },
    +  "status" : 2,
    +  "duration_seconds" : 277,
    +  "create_time" : 1614245065569,
    +  "workspace_id" : "0",
    +  "version_count" : 1,
    +  "ai_project" : ""
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    OK

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +

    404

    +

    Not Found

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/DescribeSample.html b/docs/modelarts/api-ref/DescribeSample.html index d4d73a76..2c85a857 100644 --- a/docs/modelarts/api-ref/DescribeSample.html +++ b/docs/modelarts/api-ref/DescribeSample.html @@ -1,597 +1,595 @@

    Querying Details About a Sample

    -

    Function

    Query details about a sample.

    +

    Function

    Query details about a sample.

    -

    URI

    GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/samples/{sample_id}

    +

    URI

    GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/samples/{sample_id}

    -
    Table 1 Path Parameters

    Parameter

    +
    - - - - - - - - - - - - - - -
    Table 1 Path Parameters

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    dataset_id

    +

    dataset_id

    Yes

    +

    Yes

    String

    +

    String

    Dataset ID.

    +

    Dataset ID.

    project_id

    +

    project_id

    Yes

    +

    Yes

    String

    +

    String

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    sample_id

    +

    sample_id

    Yes

    +

    Yes

    String

    +

    String

    Sample ID.

    +

    Sample ID.

    -
    Table 2 Query Parameters

    Parameter

    +
    - - - - - - - - - - - - - - -
    Table 2 Query Parameters

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    locale

    +

    locale

    No

    +

    No

    String

    +

    String

    Language. The options are as follows:

    -

    en-us: English (default value)

    +

    Language. The options are as follows:

    +

    en-us: English (default value)

    sample_state

    +

    sample_state

    No

    +

    No

    String

    +

    String

    Sample status. The options are as follows:

    -
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed
    +

    Sample status. The options are as follows:

    +
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed

    worker_id

    +

    worker_id

    No

    +

    No

    String

    +

    String

    ID of a labeling team member.

    +

    ID of a labeling team member.

    -

    Request Parameters

    None

    +

    Request Parameters

    None

    -

    Response Parameters

    Status code: 200

    +

    Response Parameters

    Status code: 200

    -
    Table 3 Response body parameters

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 3 Response body parameters

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    check_accept

    +

    check_accept

    Boolean

    +

    Boolean

    Whether the acceptance is passed, which is used for team labeling. The options are as follows:

    -
    • true: The acceptance is passed.
    • false: The acceptance is not passed.
    +

    Whether the acceptance is passed, which is used for team labeling. The options are as follows:

    +
    • true: The acceptance is passed.
    • false: The acceptance is not passed.

    check_comment

    +

    check_comment

    String

    +

    String

    Acceptance comment, which is used for team labeling.

    +

    Acceptance comment, which is used for team labeling.

    check_score

    +

    check_score

    String

    +

    String

    Acceptance score, which is used for team labeling.

    +

    Acceptance score, which is used for team labeling.

    deletion_reasons

    +

    deletion_reasons

    Array of strings

    +

    Array of strings

    Reason for deleting a sample, which is used for healthcare.

    +

    Reason for deleting a sample, which is used for healthcare.

    hard_details

    +

    hard_details

    Map<String,HardDetail>

    +

    Map<String,HardDetail>

    Details about difficulties, including description, causes, and suggestions of difficult problems.

    +

    Details about difficulties, including description, causes, and suggestions of difficult problems.

    labelers

    +

    labelers

    Array of Worker objects

    +

    Array of Worker objects

    Labeling personnel list of sample assignment. The labelers record the team members to which the sample is allocated for team labeling.

    +

    Labeling personnel list of sample assignment. The labelers record the team members to which the sample is allocated for team labeling.

    labels

    +

    labels

    Array of SampleLabel objects

    +

    Array of SampleLabel objects

    Sample label list.

    +

    Sample label list.

    metadata

    +

    metadata

    SampleMetadata object

    +

    SampleMetadata object

    Key-value pair of the sample metadata attribute.

    +

    Key-value pair of the sample metadata attribute.

    review_accept

    +

    review_accept

    Boolean

    +

    Boolean

    Whether to accept the review, which is used for team labeling. The options are as follows:

    -
    • true: accepted
    • false: rejected
    +

    Whether to accept the review, which is used for team labeling. The options are as follows:

    +
    • true: accepted
    • false: rejected

    review_comment

    +

    review_comment

    String

    +

    String

    Review comment, which is used for team labeling.

    +

    Review comment, which is used for team labeling.

    review_score

    +

    review_score

    String

    +

    String

    Review score, which is used for team labeling.

    +

    Review score, which is used for team labeling.

    sample_data

    +

    sample_data

    Array of strings

    +

    Array of strings

    Sample data list.

    +

    Sample data list.

    sample_dir

    +

    sample_dir

    String

    +

    String

    Sample path.

    +

    Sample path.

    sample_id

    +

    sample_id

    String

    +

    String

    Sample ID.

    +

    Sample ID.

    sample_name

    +

    sample_name

    String

    +

    String

    Sample name.

    +

    Sample name.

    sample_size

    +

    sample_size

    Long

    +

    Long

    Sample size or text length, in bytes.

    +

    Sample size or text length, in bytes.

    sample_status

    +

    sample_status

    String

    +

    String

    Sample status. The options are as follows:

    -
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed
    +

    Sample status. The options are as follows:

    +
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed

    sample_time

    +

    sample_time

    Long

    +

    Long

    Sample time, when OBS is last modified.

    +

    Sample time, when OBS is last modified.

    sample_type

    +

    sample_type

    Integer

    +

    Integer

    Sample type. The options are as follows:

    -
    • 0: image
    • 1: text
    • 2: speech
    • 4: table
    • 6: video
    • 9: custom format
    +

    Sample type. The options are as follows:

    +
    • 0: image
    • 1: text
    • 2: speech
    • 4: table
    • 6: video
    • 9: custom format

    score

    +

    score

    String

    +

    String

    Comprehensive score, which is used for team labeling.

    +

    Comprehensive score, which is used for team labeling.

    source

    +

    source

    String

    +

    String

    Source address of sample data.

    +

    Source address of sample data.

    sub_sample_url

    +

    sub_sample_url

    String

    +

    String

    Subsample URL, which is used for healthcare.

    +

    Subsample URL, which is used for healthcare.

    worker_id

    +

    worker_id

    String

    +

    String

    ID of a labeling team member, which is used for team labeling.

    +

    ID of a labeling team member, which is used for team labeling.

    -
    Table 4 HardDetail

    Parameter

    +
    - - - - - - - - - - - - - -
    Table 4 HardDetail

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    alo_name

    +

    alo_name

    String

    +

    String

    Alias.

    +

    Alias.

    id

    +

    id

    Integer

    +

    Integer

    Reason ID.

    +

    Reason ID.

    reason

    +

    reason

    String

    +

    String

    Reason description.

    +

    Reason description.

    suggestion

    +

    suggestion

    String

    +

    String

    Handling suggestion.

    +

    Handling suggestion.

    -
    Table 5 Worker

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 5 Worker

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    create_time

    +

    create_time

    Long

    +

    Long

    Creation time.

    +

    Creation time.

    description

    +

    description

    String

    +

    String

    Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

    +

    Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

    email

    +

    email

    String

    +

    String

    Email address of a labeling team member.

    +

    Email address of a labeling team member.

    role

    +

    role

    Integer

    +

    Integer

    Role. The options are as follows:

    -
    • 0: labeling personnel
    • 1: reviewer
    • 2: team administrator
    • 3: dataset owner
    +

    Role. The options are as follows:

    +
    • 0: labeling personnel
    • 1: reviewer
    • 2: team administrator
    • 3: dataset owner

    status

    +

    status

    Integer

    +

    Integer

    Current login status of a labeling team member. The options are as follows:

    -
    • 0: The invitation email has not been sent.
    • 1: The invitation email has been sent but the user has not logged in.
    • 2: The user has logged in.
    • 3: The labeling team member has been deleted.
    +

    Current login status of a labeling team member. The options are as follows:

    +
    • 0: The invitation email has not been sent.
    • 1: The invitation email has been sent but the user has not logged in.
    • 2: The user has logged in.
    • 3: The labeling team member has been deleted.

    update_time

    +

    update_time

    Long

    +

    Long

    Update time.

    +

    Update time.

    worker_id

    +

    worker_id

    String

    +

    String

    ID of a labeling team member.

    +

    ID of a labeling team member.

    workforce_id

    +

    workforce_id

    String

    +

    String

    ID of a labeling team.

    +

    ID of a labeling team.

    -
    Table 6 SampleLabel

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - -
    Table 6 SampleLabel

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    annotated_by

    +

    annotated_by

    String

    +

    String

    Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

    -
    • human: manual labeling
    • auto: automatic labeling
    +

    Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

    +
    • human: manual labeling
    • auto: automatic labeling

    id

    +

    id

    String

    +

    String

    Label ID.

    +

    Label ID.

    name

    +

    name

    String

    +

    String

    Label name.

    +

    Label name.

    property

    +

    property

    SampleLabelProperty object

    +

    SampleLabelProperty object

    Attribute key-value pair of the sample label, such as the object shape and shape feature.

    +

    Attribute key-value pair of the sample label, such as the object shape and shape feature.

    score

    +

    score

    Float

    +

    Float

    Confidence.

    +

    Confidence.

    type

    +

    type

    Integer

    +

    Integer

    Label type. The options are as follows:

    -
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    +

    Label type. The options are as follows:

    +
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    -
    Table 7 SampleLabelProperty

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 7 SampleLabelProperty

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    @modelarts:content

    +

    @modelarts:content

    String

    +

    String

    Speech text content, which is a default attribute dedicated to the speech label (including the speech content and speech start and end points).

    +

    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

    +

    @modelarts:end_index

    Integer

    +

    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. Examples are as follows.

    -
    • If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.
    • If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.
    +

    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. Examples are as follows.- If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.- If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.

    @modelarts:end_time

    +

    @modelarts:end_time

    String

    +

    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.)

    +

    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

    +

    @modelarts:feature

    Object

    +

    Object

    Shape feature, which is a default attribute dedicated to the object detection label, with type of List. The upper left corner of an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:

    -
    • bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.
    • polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].
    • circle: consists of the center point and radius, for example, [[100,100],[50]].
    • line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.
    • dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.
    • point: consists of one point, for example, [[0,100]].
    • polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].
    +

    Shape feature, which is a default attribute dedicated to the object detection label, with type of List. The upper left corner of an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:- bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.- polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].- circle: consists of the center point and radius, for example, [[100,100],[50]].- line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- point: consists of one point, for example, [[0,100]].- polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].

    @modelarts:from

    +

    @modelarts:from

    String

    +

    String

    ID of the head entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

    +

    ID of the head entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

    @modelarts:hard

    +

    @modelarts:hard

    String

    +

    String

    Sample labeled as a hard sample or not, which is a default attribute. Options:

    -
    • 0/false: not a hard example
    • 1/true: hard example
    +

    Sample labeled as a hard sample or not, which is a default attribute. Options:

    +
    • 0/false: not a hard example
    • 1/true: hard example

    @modelarts:hard_coefficient

    +

    @modelarts:hard_coefficient

    String

    +

    String

    Coefficient of difficulty of each label level, which is a default attribute. The value range is [0,1].

    +

    Coefficient of difficulty of each label level, which is a default attribute. The value range is [0,1].

    @modelarts:hard_reasons

    +

    @modelarts:hard_reasons

    String

    +

    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. The options are as follows:

    -
    • 0: No target objects are identified.
    • 1: The confidence is low.
    • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
    • 3: The prediction result is greatly different from the data of the same type in the training dataset.
    • 4: The prediction results of multiple consecutive similar images are inconsistent.
    • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
    • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
    • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
    • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
    • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
    • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
    • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
    • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
    • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
    • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
    • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
    • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
    • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
    • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
    • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
    • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
    • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
    • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
    • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
    • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
    • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
    • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
    • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
    • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
    • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
    • 30: The data is predicted to be abnormal.
    +

    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. The options are as follows:

    +
    • 0: No target objects are identified.
    • 1: The confidence is low.
    • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
    • 3: The prediction result is greatly different from the data of the same type in the training dataset.
    • 4: The prediction results of multiple consecutive similar images are inconsistent.
    • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
    • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
    • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
    • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
    • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
    • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
    • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
    • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
    • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
    • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
    • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
    • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
    • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
    • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
    • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
    • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
    • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
    • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
    • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
    • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
    • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
    • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
    • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
    • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
    • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
    • 30: The data is predicted to be abnormal.

    @modelarts:shape

    +

    @modelarts:shape

    String

    +

    String

    Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

    -
    • bndbox: rectangle
    • polygon: polygon
    • circle: circle
    • line: straight line
    • dashed: dotted line
    • point: point
    • polyline: polyline
    +

    Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

    +
    • bndbox: rectangle
    • polygon: polygon
    • circle: circle
    • line: straight line
    • dashed: dotted line
    • point: point
    • polyline: polyline

    @modelarts:source

    +

    @modelarts:source

    String

    +

    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.

    +

    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

    +

    @modelarts:start_index

    Integer

    +

    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.

    +

    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

    +

    @modelarts:start_time

    String

    +

    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.)

    +

    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

    +

    @modelarts:to

    String

    +

    String

    ID of the tail entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

    +

    ID of the tail entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

    -
    Table 8 SampleMetadata

    Parameter

    +
    - - - - - - - - - - - - - -
    Table 8 SampleMetadata

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    @modelarts:hard

    +

    @modelarts:hard

    Double

    +

    Double

    Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

    -
    • 0: non-hard sample
    • 1: hard sample
    +

    Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

    +
    • 0: non-hard sample
    • 1: hard sample

    @modelarts:hard_coefficient

    +

    @modelarts:hard_coefficient

    Double

    +

    Double

    Coefficient of difficulty of each sample level, which is a default attribute. The value range is [0,1].

    +

    Coefficient of difficulty of each sample level, which is a default attribute. The value range is [0,1].

    @modelarts:hard_reasons

    +

    @modelarts:hard_reasons

    Array of integers

    +

    Array of integers

    ID of a hard sample reason, which is a default attribute. The options are as follows:

    -
    • 0: No target objects are identified.
    • 1: The confidence is low.
    • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
    • 3: The prediction result is greatly different from the data of the same type in the training dataset.
    • 4: The prediction results of multiple consecutive similar images are inconsistent.
    • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
    • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
    • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
    • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
    • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
    • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
    • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
    • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
    • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
    • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
    • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
    • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
    • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
    • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
    • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
    • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
    • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
    • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
    • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
    • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
    • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
    • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
    • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
    • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
    • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
    • 30: The data is predicted to be abnormal.
    +

    ID of a hard sample reason, which is a default attribute. The options are as follows:

    +
    • 0: No target objects are identified.
    • 1: The confidence is low.
    • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
    • 3: The prediction result is greatly different from the data of the same type in the training dataset.
    • 4: The prediction results of multiple consecutive similar images are inconsistent.
    • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
    • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
    • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
    • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
    • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
    • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
    • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
    • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
    • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
    • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
    • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
    • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
    • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
    • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
    • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
    • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
    • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
    • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
    • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
    • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
    • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
    • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
    • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
    • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
    • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
    • 30: The data is predicted to be abnormal.

    @modelarts:size

    +

    @modelarts:size

    Array of objects

    +

    Array of objects

    Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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.

    +

    Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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

    Querying Details About a Sample

    -
    GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/data-annotations/samples/{sample_id}
    +

    Example Requests

    Querying Details About a Sample

    +
    GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/data-annotations/samples/{sample_id}
    -

    Example Responses

    Status code: 200

    -

    OK

    -
    {
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
       "sample_id" : "012f99f3cf405860130b6ed2350c2228",
       "sample_type" : 0,
       "labels" : [ {
    @@ -599,7 +597,7 @@
         "type" : 0,
         "property" : { }
       } ],
    -  "source" : "https://test-obs.obs.xxx.com:443/image/aifood/%E5%86%B0%E6%BF%80%E5%87%8C/36502.jpg?AccessKeyId=RciyO7xxxxxxxxxxyUH&Expires=1606297079&Signature=Ju4FYpEu973ii%2FAdUVLTfpLCTbg%3D",
    +  "source" : "https://test-obs.obs.xxx.com:443/image/aifood/%E5%86%B0%E6%BF%80%E5%87%8C/36502.jpg?AccessKeyId=RciyO7RHmhNTfOZVryUH&Expires=1606297079&Signature=Ju4FYpEu973ii%2FAdUVLTfpLCTbg%3D",
       "metadata" : {
         "@modelarts:import_origin" : 0
       },
    @@ -613,38 +611,38 @@
       } ]
     }
    -

    Status Codes

    -

    Status Code

    +

    Status Codes

    +
    - - - - - - - - -

    Status Code

    Description

    +

    Description

    200

    +

    200

    OK

    +

    OK

    401

    +

    401

    Unauthorized

    +

    Unauthorized

    403

    +

    403

    Forbidden

    +

    Forbidden

    404

    +

    404

    Not Found

    +

    Not Found

    -

    Error Codes

    See Error Codes.

    +

    Error Codes

    See Error Codes.

    diff --git a/docs/modelarts/api-ref/DescribeWorkforceTaskSample.html b/docs/modelarts/api-ref/DescribeWorkforceTaskSample.html new file mode 100644 index 00000000..8f60fbab --- /dev/null +++ b/docs/modelarts/api-ref/DescribeWorkforceTaskSample.html @@ -0,0 +1,659 @@ + + +

    Querying Details About Team Labeling Samples

    +

    Function

    This API is used to query details about team labeling samples.

    +
    +

    URI

    GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/samples/{sample_id}

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 1 Path Parameters

    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.

    +

    sample_id

    +

    Yes

    +

    String

    +

    Sample ID.

    +

    workforce_task_id

    +

    Yes

    +

    String

    +

    ID of a labeling task.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Query Parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    locale

    +

    No

    +

    String

    +

    Language. The options are as follows:

    +

    en-us: English (default value)

    +

    sample_state

    +

    No

    +

    String

    +

    Sample status. The options are as follows:

    +
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed
    +

    worker_id

    +

    No

    +

    String

    +

    ID of a labeling team member.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 3 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    check_accept

    +

    Boolean

    +

    Whether the acceptance is passed, which is used for team labeling. The options are as follows:

    +
    • true: The acceptance is passed.
    • false: The acceptance is not passed.
    +

    check_comment

    +

    String

    +

    Acceptance comment, which is used for team labeling.

    +

    check_score

    +

    String

    +

    Acceptance score, which is used for team labeling.

    +

    deletion_reasons

    +

    Array of strings

    +

    Reason for deleting a sample, which is used for healthcare.

    +

    hard_details

    +

    Map<String,HardDetail>

    +

    Details about difficulties, including description, causes, and suggestions of difficult problems.

    +

    labelers

    +

    Array of Worker objects

    +

    Labeling personnel list of sample assignment. The labelers record the team members to which the sample is allocated for team labeling.

    +

    labels

    +

    Array of SampleLabel objects

    +

    Sample label list.

    +

    metadata

    +

    SampleMetadata object

    +

    Key-value pair of the sample metadata attribute.

    +

    review_accept

    +

    Boolean

    +

    Whether to accept the review, which is used for team labeling. The options are as follows:

    +
    • true: accepted
    • false: rejected
    +

    review_comment

    +

    String

    +

    Review comment, which is used for team labeling.

    +

    review_score

    +

    String

    +

    Review score, which is used for team labeling.

    +

    sample_data

    +

    Array of strings

    +

    Sample data list.

    +

    sample_dir

    +

    String

    +

    Sample path.

    +

    sample_id

    +

    String

    +

    Sample ID.

    +

    sample_name

    +

    String

    +

    Sample name.

    +

    sample_size

    +

    Long

    +

    Sample size or text length, in bytes.

    +

    sample_status

    +

    String

    +

    Sample status. The options are as follows:

    +
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed
    +

    sample_time

    +

    Long

    +

    Sample time, when OBS is last modified.

    +

    sample_type

    +

    Integer

    +

    Sample type. The options are as follows:

    +
    • 0: image
    • 1: text
    • 2: speech
    • 4: table
    • 6: video
    • 9: custom format
    +

    score

    +

    String

    +

    Comprehensive score, which is used for team labeling.

    +

    source

    +

    String

    +

    Source address of sample data.

    +

    sub_sample_url

    +

    String

    +

    Subsample URL, which is used for healthcare.

    +

    worker_id

    +

    String

    +

    ID of a labeling team member, which is used for team labeling.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 4 HardDetail

    Parameter

    +

    Type

    +

    Description

    +

    alo_name

    +

    String

    +

    Alias.

    +

    id

    +

    Integer

    +

    Reason ID.

    +

    reason

    +

    String

    +

    Reason description.

    +

    suggestion

    +

    String

    +

    Handling suggestion.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 5 Worker

    Parameter

    +

    Type

    +

    Description

    +

    create_time

    +

    Long

    +

    Creation time.

    +

    description

    +

    String

    +

    Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

    +

    email

    +

    String

    +

    Email address of a labeling team member.

    +

    role

    +

    Integer

    +

    Role. The options are as follows:

    +
    • 0: labeling personnel
    • 1: reviewer
    • 2: team administrator
    • 3: dataset owner
    +

    status

    +

    Integer

    +

    Current login status of a labeling team member. The options are as follows:

    +
    • 0: The invitation email has not been sent.
    • 1: The invitation email has been sent but the user has not logged in.
    • 2: The user has logged in.
    • 3: The labeling team member has been deleted.
    +

    update_time

    +

    Long

    +

    Update time.

    +

    worker_id

    +

    String

    +

    ID of a labeling team member.

    +

    workforce_id

    +

    String

    +

    ID of a labeling team.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 6 SampleLabel

    Parameter

    +

    Type

    +

    Description

    +

    annotated_by

    +

    String

    +

    Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

    +
    • human: manual labeling
    • auto: automatic labeling
    +

    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. The options are as follows:

    +
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 7 SampleLabelProperty

    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. Examples are as follows.- If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.- If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.

    +

    @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 an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:- bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.- polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].- circle: consists of the center point and radius, for example, [[100,100],[50]].- line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- point: consists of one point, for example, [[0,100]].- polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].

    +

    @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:

    +
    • 0/false: not a hard example
    • 1/true: hard example
    +

    @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. The options are as follows:

    +
    • 0: No target objects are identified.
    • 1: The confidence is low.
    • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
    • 3: The prediction result is greatly different from the data of the same type in the training dataset.
    • 4: The prediction results of multiple consecutive similar images are inconsistent.
    • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
    • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
    • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
    • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
    • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
    • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
    • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
    • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
    • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
    • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
    • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
    • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
    • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
    • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
    • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
    • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
    • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
    • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
    • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
    • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
    • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
    • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
    • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
    • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
    • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
    • 30: The data is predicted to be abnormal.
    +

    @modelarts:shape

    +

    String

    +

    Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

    +
    • bndbox: rectangle
    • polygon: polygon
    • circle: circle
    • line: straight line
    • dashed: dotted line
    • point: point
    • polyline: polyline
    +

    @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.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 8 SampleMetadata

    Parameter

    +

    Type

    +

    Description

    +

    @modelarts:hard

    +

    Double

    +

    Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

    +
    • 0: non-hard sample
    • 1: hard sample
    +

    @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. The options are as follows:

    +
    • 0: No target objects are identified.
    • 1: The confidence is low.
    • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
    • 3: The prediction result is greatly different from the data of the same type in the training dataset.
    • 4: The prediction results of multiple consecutive similar images are inconsistent.
    • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
    • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
    • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
    • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
    • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
    • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
    • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
    • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
    • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
    • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
    • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
    • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
    • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
    • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
    • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
    • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
    • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
    • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
    • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
    • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
    • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
    • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
    • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
    • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
    • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
    • 30: The data is predicted to be abnormal.
    +

    @modelarts:size

    +

    Array of objects

    +

    Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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

    Querying Details About Team Labeling Samples

    +
    GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/samples/{sample_id}
    +
    +

    Example Responses

    Status code: 200

    +

    OK

    +
    {
    +  "sample_id" : "26c6dd793d80d3274eb89349ec76d678",
    +  "sample_type" : 0,
    +  "labels" : [ ],
    +  "source" : "https://test-obs.obs.xxx.com:443/detect/data/dataset-car-and-person/IMG_kitti_0000_000016.png?AccessKeyId=4D34AYDTK93HUY79NSD7&Expires=1606300437&x-obs-security-token=gQpjbi1ub3J0aC03jELficNKUP87aSTIhvsHQAvImcyVbXlYTrU2XJIc28F7kiXanJ3TyJV39iXl0yi5mzQ...",
    +  "metadata" : {
    +    "@modelarts:import_origin" : 0,
    +    "@modelarts:size" : [ 1242, 375, 3 ]
    +  },
    +  "sample_time" : 1598263639997,
    +  "sample_status" : "UN_ANNOTATION",
    +  "worker_id" : "8c15ad080d3eabad14037b4eb00d6a6f",
    +  "labelers" : [ {
    +    "email" : "xxx@xxx.com",
    +    "worker_id" : "afdda13895bc66322ffbf36ae833bcf0",
    +    "role" : 0
    +  } ]
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    OK

    +

    401

    +

    Unauthorized

    +

    403

    +

    Forbidden

    +

    404

    +

    Not Found

    +
    +
    +
    +

    Error Codes

    See Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/modelarts/api-ref/ExportTask.html b/docs/modelarts/api-ref/ExportTask.html index 772301ca..22af049b 100644 --- a/docs/modelarts/api-ref/ExportTask.html +++ b/docs/modelarts/api-ref/ExportTask.html @@ -1,1024 +1,1022 @@

    Creating a Dataset Export Task

    -

    Function

    This API is used to create a dataset export task to export a dataset to OBS or new datasets.

    +

    Function

    This API is used to create a dataset export task to export a dataset to OBS or new datasets.

    -

    URI

    POST /v2/{project_id}/datasets/{dataset_id}/export-tasks

    +

    URI

    POST /v2/{project_id}/datasets/{dataset_id}/export-tasks

    -
    Table 1 Path Parameters

    Parameter

    +
    - - - - - - - - - - -
    Table 1 Path Parameters

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    dataset_id

    +

    dataset_id

    Yes

    +

    Yes

    String

    +

    String

    Dataset ID.

    +

    Dataset ID.

    project_id

    +

    project_id

    Yes

    +

    Yes

    String

    +

    String

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    +

    Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

    -

    Request Parameters

    -
    Table 2 Request body parameters

    Parameter

    +

    Request Parameters

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 2 Request body parameters

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    annotation_format

    +

    annotation_format

    No

    +

    No

    String

    +

    String

    Labeling format. The options are as follows:

    -
    • VOC: VOC
    • COCO: COCO
    +

    Labeling format. The options are as follows:

    +
    • VOC: VOC
    • COCO: COCO

    dataset_id

    +

    dataset_id

    No

    +

    No

    String

    +

    String

    Dataset ID.

    +

    Dataset ID.

    dataset_type

    +

    dataset_type

    No

    +

    No

    Integer

    +

    Integer

    Dataset type. The options are as follows:

    -
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet
    • 200: sound classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 400: table dataset
    • 600: video labeling
    • 900: custom format
    +

    Dataset type. The options are as follows:

    +
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet
    • 200: sound classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 400: table dataset
    • 600: video labeling
    • 900: custom format

    export_format

    +

    export_format

    No

    +

    No

    Integer

    +

    Integer

    Format of the exported directory. The options are as follows:

    -
    • 1: tree structure. For example: cat/1.jpg,rabbit/2.jpg.
    • 2: tile structure. For example: 1.jpg, 1.txt; 2.jpg,2.txt.
    +

    Format of the exported directory. The options are as follows:

    +
    • 1: tree structure. For example: cat/1.jpg,rabbit/2.jpg.
    • 2: tile structure. For example: 1.jpg, 1.txt; 2.jpg,2.txt.

    export_params

    +

    export_params

    No

    +

    No

    ExportParams object

    +

    ExportParams object

    Parameters of a dataset export task.

    +

    Parameters of a dataset export task.

    export_type

    +

    export_type

    No

    +

    No

    Integer

    +

    Integer

    Export type. The options are as follows:

    -
    • 0: labeled
    • 1: unlabeled
    • 2: all
    • 3: conditional search
    +

    Export type. The options are as follows:

    +
    • 0: labeled
    • 1: unlabeled
    • 2: all
    • 3: conditional search

    path

    +

    path

    No

    +

    No

    String

    +

    String

    Export output path.

    +

    Export output path.

    sample_state

    +

    sample_state

    No

    +

    No

    String

    +

    String

    Sample status. The options are as follows:

    -
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed
    +

    Sample status. The options are as follows:

    +
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed

    source_type_header

    +

    source_type_header

    No

    +

    No

    String

    +

    String

    Prefix of the OBS path in the exported labeling file. The default value is obs://. You can set it to s3://. The image path starting with obs cannot be parsed during training. Set the path prefix in the exported manifest file to s3://.

    +

    Prefix of the OBS path in the exported labeling file. The default value is obs://. You can set it to s3://. The image path starting with obs cannot be parsed during training. Set the path prefix in the exported manifest file to s3://.

    status

    +

    status

    No

    +

    No

    Integer

    +

    Integer

    Task status.

    +

    Task status.

    task_id

    +

    task_id

    No

    +

    No

    String

    +

    String

    Task ID.

    +

    Task ID.

    version_format

    +

    version_format

    No

    +

    No

    String

    +

    String

    Format of a dataset version. The options are as follows:

    -
    • Default: default format
    • CarbonData: CarbonData (supported only by table datasets)
    • CSV: CSV
    +

    Format of a dataset version. The options are as follows:

    +
    • Default: default format
    • CarbonData: CarbonData (supported only by table datasets)
    • CSV: CSV

    version_id

    +

    version_id

    No

    +

    No

    String

    +

    String

    Dataset version ID.

    +

    Dataset version ID.

    with_column_header

    +

    with_column_header

    No

    +

    No

    Boolean

    +

    Boolean

    Whether to write the column name in the first line of the CSV file during export. This field is valid for the table dataset. The options are as follows:

    -
    • true: Write the column name in the first line of the CSV file. (Default value)
    • false: Do not write the column name in the first line of the CSV file.
    +

    Whether to write the column name in the first line of the CSV file during export. This field is valid for the table dataset. The options are as follows:

    +
    • true: Write the column name in the first line of the CSV file. (Default value)
    • false: Do not write the column name in the first line of the CSV file.
    -
    Table 3 ExportParams

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 3 ExportParams

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    clear_hard_property

    +

    clear_hard_property

    No

    +

    No

    Boolean

    +

    Boolean

    Whether to clear hard example attributes. The options are as follows:

    -
    • true: Clear hard example attributes. (Default value)
    • false: Do not clear hard example attributes.
    +

    Whether to clear hard example attributes. The options are as follows:

    +
    • true: Clear hard example attributes. (Default value)
    • false: Do not clear hard example attributes.

    export_dataset_version_format

    +

    export_dataset_version_format

    No

    +

    No

    String

    +

    String

    Format of the dataset version to which data is exported.

    +

    Format of the dataset version to which data is exported.

    export_dataset_version_name

    +

    export_dataset_version_name

    No

    +

    No

    String

    +

    String

    Name of the dataset version to which data is exported.

    +

    Name of the dataset version to which data is exported.

    export_dest

    +

    export_dest

    No

    +

    No

    String

    +

    String

    Export destination. The options are as follows:

    -
    • DIR: Export data to OBS. (Default value)
    • NEW_DATASET: Export data to a new dataset.
    +

    Export destination. The options are as follows:

    +
    • DIR: Export data to OBS. (Default value)
    • NEW_DATASET: Export data to a new dataset.

    export_new_dataset_name

    +

    export_new_dataset_name

    No

    +

    No

    String

    +

    String

    Name of the new dataset to which data is exported.

    +

    Name of the new dataset to which data is exported.

    export_new_dataset_work_path

    +

    export_new_dataset_work_path

    No

    +

    No

    String

    +

    String

    Working directory of the new dataset to which data is exported.

    +

    Working directory of the new dataset to which data is exported.

    ratio_sample_usage

    +

    ratio_sample_usage

    No

    +

    No

    Boolean

    +

    Boolean

    Whether to randomly allocate the training set and validation set based on the specified ratio. The options are as follows:

    -
    • true: Allocate the training set and validation set.
    • false: Do not allocate the training set and validation set. (Default value)
    +

    Whether to randomly allocate the training set and validation set based on the specified ratio. The options are as follows:

    +
    • true: Allocate the training set and validation set.
    • false: Do not allocate the training set and validation set. (Default value)

    sample_state

    +

    sample_state

    No

    +

    No

    String

    +

    String

    Sample status. The options are as follows:

    -
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed
    +

    Sample status. The options are as follows:

    +
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed

    samples

    +

    samples

    No

    +

    No

    Array of strings

    +

    Array of strings

    ID list of exported samples.

    +

    ID list of exported samples.

    search_conditions

    +

    search_conditions

    No

    +

    No

    Array of SearchCondition objects

    +

    Array of SearchCondition objects

    Exported search conditions. The relationship between multiple search conditions is OR.

    +

    Exported search conditions. The relationship between multiple search conditions is OR.

    train_sample_ratio

    +

    train_sample_ratio

    No

    +

    No

    String

    +

    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.

    +

    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.

    -
    Table 4 SearchCondition

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 4 SearchCondition

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    coefficient

    +

    coefficient

    No

    +

    No

    String

    +

    String

    Filter by coefficient of difficulty.

    +

    Filter by coefficient of difficulty.

    frame_in_video

    +

    frame_in_video

    No

    +

    No

    Integer

    +

    Integer

    A frame in the video.

    +

    A frame in the video.

    hard

    +

    hard

    No

    +

    No

    String

    +

    String

    Whether a sample is a hard sample. The options are as follows:

    -
    • 0: non-hard sample
    • 1: hard sample
    +

    Whether a sample is a hard sample. The options are as follows:

    +
    • 0: non-hard sample
    • 1: hard sample

    import_origin

    +

    import_origin

    No

    +

    No

    String

    +

    String

    Filter by data source.

    +

    Filter by data source.

    kvp

    +

    kvp

    No

    +

    No

    String

    +

    String

    CT dosage, filtered by dosage.

    +

    CT dosage, filtered by dosage.

    label_list

    +

    label_list

    No

    +

    No

    SearchLabels object

    +

    SearchLabels object

    Label search criteria.

    +

    Label search criteria.

    labeler

    +

    labeler

    No

    +

    No

    String

    +

    String

    Labeler.

    +

    Labeler.

    metadata

    +

    metadata

    No

    +

    No

    SearchProp object

    +

    SearchProp object

    Search by sample attribute.

    +

    Search by sample attribute.

    parent_sample_id

    +

    parent_sample_id

    No

    +

    No

    String

    +

    String

    Parent sample ID.

    +

    Parent sample ID.

    sample_dir

    +

    sample_dir

    No

    +

    No

    String

    +

    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.

    +

    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

    +

    sample_name

    No

    +

    No

    String

    +

    String

    Search by sample name, including the file name extension.

    +

    Search by sample name, including the file name extension.

    sample_time

    +

    sample_time

    No

    +

    No

    String

    +

    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. The options are as follows:

    -
    • month: Search for samples added from 30 days ago to the current day.
    • day: Search for samples added from yesterday (one day ago) to the current day.
    • yyyyMMdd-yyyyMMdd: Search for samples added in a specified period (at most 30 days), in the format of Start date-End date. For example, 20190901-20190915 indicates that samples generated from September 1 to September 15, 2019 are searched.
    +

    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. The options are as follows:- month: Search for samples added from 30 days ago to the current day.- day: Search for samples added from yesterday (one day ago) to the current day.- yyyyMMdd-yyyyMMdd: Search for samples added in a specified period (at most 30 days), in the format of Start date-End date. For example, 20190901-2019091501 indicates that samples generated from September 1 to September 15, 2019 are searched.

    score

    +

    score

    No

    +

    No

    String

    +

    String

    Search by confidence.

    +

    Search by confidence.

    slice_thickness

    +

    slice_thickness

    No

    +

    No

    String

    +

    String

    DICOM layer thickness. Samples are filtered by layer thickness.

    +

    DICOM layer thickness. Samples are filtered by layer thickness.

    study_date

    +

    study_date

    No

    +

    No

    String

    +

    String

    DICOM scanning time.

    +

    DICOM scanning time.

    time_in_video

    +

    time_in_video

    No

    +

    No

    String

    +

    String

    A time point in the video.

    +

    A time point in the video.

    -
    Table 5 SearchLabels

    Parameter

    +
    - - - - - - - - - - -
    Table 5 SearchLabels

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    labels

    +

    labels

    No

    +

    No

    Array of SearchLabel objects

    +

    Array of SearchLabel objects

    List of label search criteria.

    +

    List of label search criteria.

    op

    +

    op

    No

    +

    No

    String

    +

    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. The options are as follows:

    -
    • OR: OR operation
    • AND: AND operation
    +

    If you want to search for multiple labels, op must be specified. If you search for only one label, op can be left blank. The options are as follows:

    +
    • OR: OR operation
    • AND: AND operation
    -
    Table 6 SearchLabel

    Parameter

    +
    - - - - - - - - - - - - - - - - - - -
    Table 6 SearchLabel

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    name

    +

    name

    No

    +

    No

    String

    +

    String

    Label name.

    +

    Label name.

    op

    +

    op

    No

    +

    No

    String

    +

    String

    Operation type between multiple attributes. The options are as follows:

    -
    • OR: OR operation
    • AND: AND operation
    +

    Operation type between multiple attributes. The options are as follows:

    +
    • OR: OR operation
    • AND: AND operation

    property

    +

    property

    No

    +

    No

    Map<String,Array<String>>

    +

    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.

    +

    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

    +

    type

    No

    +

    No

    Integer

    +

    Integer

    Label type. The options are as follows:

    -
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    +

    Label type. The options are as follows:

    +
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    -
    Table 7 SearchProp

    Parameter

    +
    - - - - - - - - - - -
    Table 7 SearchProp

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    op

    +

    op

    No

    +

    No

    String

    +

    String

    Relationship between attribute values. The options are as follows:

    -
    • AND: AND relationship
    • OR: OR relationship
    +

    Relationship between attribute values. The options are as follows:

    +
    • AND: AND relationship
    • OR: OR relationship

    props

    +

    props

    No

    +

    No

    Map<String,Array<String>>

    +

    Map<String,Array<String>>

    Search criteria of an attribute. Multiple search criteria can be set.

    +

    Search criteria of an attribute. Multiple search criteria can be set.

    -

    Response Parameters

    Status code: 200

    +

    Response Parameters

    Status code: 200

    -
    Table 8 Response body parameters

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 8 Response body parameters

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    create_time

    +

    create_time

    Long

    +

    Long

    Time when a task is created.

    +

    Time when a task is created.

    error_code

    +

    error_code

    String

    +

    String

    Error code.

    +

    Error code.

    error_msg

    +

    error_msg

    String

    +

    String

    Error message.

    +

    Error message.

    export_format

    +

    export_format

    Integer

    +

    Integer

    Format of the exported directory. The options are as follows:

    -
    • 1: tree structure. For example: cat/1.jpg,rabbit/2.jpg.
    • 2: tile structure. For example: 1.jpg, 1.txt; 2.jpg,2.txt.
    +

    Format of the exported directory. The options are as follows:

    +
    • 1: tree structure. For example: cat/1.jpg,rabbit/2.jpg.
    • 2: tile structure. For example: 1.jpg, 1.txt; 2.jpg,2.txt.

    export_params

    +

    export_params

    ExportParams object

    +

    ExportParams object

    Parameters of a dataset export task.

    +

    Parameters of a dataset export task.

    export_type

    +

    export_type

    Integer

    +

    Integer

    Export type. The options are as follows:

    -
    • 0: labeled
    • 1: unlabeled
    • 2: all
    • 3: conditional search
    +

    Export type. The options are as follows:

    +
    • 0: labeled
    • 1: unlabeled
    • 2: all
    • 3: conditional search

    finished_sample_count

    +

    finished_sample_count

    Integer

    +

    Integer

    Number of completed samples.

    +

    Number of completed samples.

    path

    +

    path

    String

    +

    String

    Export output path.

    +

    Export output path.

    progress

    +

    progress

    Float

    +

    Float

    Percentage of current task progress.

    +

    Percentage of current task progress.

    status

    +

    status

    String

    +

    String

    Task status. The options are as follows:

    -
    • INIT: initialized
    • RUNNING: running
    • FAILED: failed
    • SUCCESSED: completed
    +

    Task status. The options are as follows:

    +
    • INIT: initialized
    • RUNNING: running
    • FAILED: failed
    • SUCCESSED: completed

    task_id

    +

    task_id

    String

    +

    String

    Task ID.

    +

    Task ID.

    total_sample_count

    +

    total_sample_count

    Integer

    +

    Integer

    Total number of samples.

    +

    Total number of samples.

    update_time

    +

    update_time

    Long

    +

    Long

    Time when a task is updated.

    +

    Time when a task is updated.

    version_format

    +

    version_format

    String

    +

    String

    Format of a dataset version. The options are as follows:

    -
    • Default: default format
    • CarbonData: CarbonData (supported only by table datasets)
    • CSV: CSV
    +

    Format of a dataset version. The options are as follows:

    +
    • Default: default format
    • CarbonData: CarbonData (supported only by table datasets)
    • CSV: CSV

    version_id

    +

    version_id

    String

    +

    String

    Dataset version ID.

    +

    Dataset version ID.

    -
    Table 9 ExportParams

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 9 ExportParams

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    clear_hard_property

    +

    clear_hard_property

    Boolean

    +

    Boolean

    Whether to clear hard example attributes. The options are as follows:

    -
    • true: Clear hard example attributes. (Default value)
    • false: Do not clear hard example attributes.
    +

    Whether to clear hard example attributes. The options are as follows:

    +
    • true: Clear hard example attributes. (Default value)
    • false: Do not clear hard example attributes.

    export_dataset_version_format

    +

    export_dataset_version_format

    String

    +

    String

    Format of the dataset version to which data is exported.

    +

    Format of the dataset version to which data is exported.

    export_dataset_version_name

    +

    export_dataset_version_name

    String

    +

    String

    Name of the dataset version to which data is exported.

    +

    Name of the dataset version to which data is exported.

    export_dest

    +

    export_dest

    String

    +

    String

    Export destination. The options are as follows:

    -
    • DIR: Export data to OBS. (Default value)
    • NEW_DATASET: Export data to a new dataset.
    +

    Export destination. The options are as follows:

    +
    • DIR: Export data to OBS. (Default value)
    • NEW_DATASET: Export data to a new dataset.

    export_new_dataset_name

    +

    export_new_dataset_name

    String

    +

    String

    Name of the new dataset to which data is exported.

    +

    Name of the new dataset to which data is exported.

    export_new_dataset_work_path

    +

    export_new_dataset_work_path

    String

    +

    String

    Working directory of the new dataset to which data is exported.

    +

    Working directory of the new dataset to which data is exported.

    ratio_sample_usage

    +

    ratio_sample_usage

    Boolean

    +

    Boolean

    Whether to randomly allocate the training set and validation set based on the specified ratio. The options are as follows:

    -
    • true: Allocate the training set and validation set.
    • false: Do not allocate the training set and validation set. (Default value)
    +

    Whether to randomly allocate the training set and validation set based on the specified ratio. The options are as follows:

    +
    • true: Allocate the training set and validation set.
    • false: Do not allocate the training set and validation set. (Default value)

    sample_state

    +

    sample_state

    String

    +

    String

    Sample status. The options are as follows:

    -
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed
    +

    Sample status. The options are as follows:

    +
    • ALL: labeled
    • NONE: unlabeled
    • UNCHECK: pending acceptance
    • ACCEPTED: accepted
    • REJECTED: rejected
    • UNREVIEWED: pending review
    • REVIEWED: reviewed
    • WORKFORCE_SAMPLED: sampled
    • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
    • WORKFORCE_SAMPLED_CHECKED: sampling checked
    • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
    • WORKFORCE_SAMPLED_REJECTED: sampling rejected
    • AUTO_ANNOTATION: to be confirmed

    samples

    +

    samples

    Array of strings

    +

    Array of strings

    ID list of exported samples.

    +

    ID list of exported samples.

    search_conditions

    +

    search_conditions

    Array of SearchCondition objects

    +

    Array of SearchCondition objects

    Exported search conditions. The relationship between multiple search conditions is OR.

    +

    Exported search conditions. The relationship between multiple search conditions is OR.

    train_sample_ratio

    +

    train_sample_ratio

    String

    +

    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.

    +

    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.

    -
    Table 10 SearchCondition

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 10 SearchCondition

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    coefficient

    +

    coefficient

    String

    +

    String

    Filter by coefficient of difficulty.

    +

    Filter by coefficient of difficulty.

    frame_in_video

    +

    frame_in_video

    Integer

    +

    Integer

    A frame in the video.

    +

    A frame in the video.

    hard

    +

    hard

    String

    +

    String

    Whether a sample is a hard sample. The options are as follows:

    -
    • 0: non-hard sample
    • 1: hard sample
    +

    Whether a sample is a hard sample. The options are as follows:

    +
    • 0: non-hard sample
    • 1: hard sample

    import_origin

    +

    import_origin

    String

    +

    String

    Filter by data source.

    +

    Filter by data source.

    kvp

    +

    kvp

    String

    +

    String

    CT dosage, filtered by dosage.

    +

    CT dosage, filtered by dosage.

    label_list

    +

    label_list

    SearchLabels object

    +

    SearchLabels object

    Label search criteria.

    +

    Label search criteria.

    labeler

    +

    labeler

    String

    +

    String

    Labeler.

    +

    Labeler.

    metadata

    +

    metadata

    SearchProp object

    +

    SearchProp object

    Search by sample attribute.

    +

    Search by sample attribute.

    parent_sample_id

    +

    parent_sample_id

    String

    +

    String

    Parent sample ID.

    +

    Parent sample ID.

    sample_dir

    +

    sample_dir

    String

    +

    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.

    +

    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

    +

    sample_name

    String

    +

    String

    Search by sample name, including the file name extension.

    +

    Search by sample name, including the file name extension.

    sample_time

    +

    sample_time

    String

    +

    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. The options are as follows:

    -
    • month: Search for samples added from 30 days ago to the current day.
    • day: Search for samples added from yesterday (one day ago) to the current day.
    • yyyyMMdd-yyyyMMdd: Search for samples added in a specified period (at most 30 days), in the format of Start date-End date. For example, 20190901-20190915 indicates that samples generated from September 1 to September 15, 2019 are searched.
    +

    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. The options are as follows:- month: Search for samples added from 30 days ago to the current day.- day: Search for samples added from yesterday (one day ago) to the current day.- yyyyMMdd-yyyyMMdd: Search for samples added in a specified period (at most 30 days), in the format of Start date-End date. For example, 20190901-2019091501 indicates that samples generated from September 1 to September 15, 2019 are searched.

    score

    +

    score

    String

    +

    String

    Search by confidence.

    +

    Search by confidence.

    slice_thickness

    +

    slice_thickness

    String

    +

    String

    DICOM layer thickness. Samples are filtered by layer thickness.

    +

    DICOM layer thickness. Samples are filtered by layer thickness.

    study_date

    +

    study_date

    String

    +

    String

    DICOM scanning time.

    +

    DICOM scanning time.

    time_in_video

    +

    time_in_video

    String

    +

    String

    A time point in the video.

    +

    A time point in the video.

    -
    Table 11 SearchLabels

    Parameter

    +
    - - - - - - - -
    Table 11 SearchLabels

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    labels

    +

    labels

    Array of SearchLabel objects

    +

    Array of SearchLabel objects

    List of label search criteria.

    +

    List of label search criteria.

    op

    +

    op

    String

    +

    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. The options are as follows:

    -
    • OR: OR operation
    • AND: AND operation
    +

    If you want to search for multiple labels, op must be specified. If you search for only one label, op can be left blank. The options are as follows:

    +
    • OR: OR operation
    • AND: AND operation
    -
    Table 12 SearchLabel

    Parameter

    +
    - - - - - - - - - - - - - -
    Table 12 SearchLabel

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    name

    +

    name

    String

    +

    String

    Label name.

    +

    Label name.

    op

    +

    op

    String

    +

    String

    Operation type between multiple attributes. The options are as follows:

    -
    • OR: OR operation
    • AND: AND operation
    +

    Operation type between multiple attributes. The options are as follows:

    +
    • OR: OR operation
    • AND: AND operation

    property

    +

    property

    Map<String,Array<String>>

    +

    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.

    +

    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

    +

    type

    Integer

    +

    Integer

    Label type. The options are as follows:

    -
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    +

    Label type. The options are as follows:

    +
    • 0: image classification
    • 1: object detection
    • 100: text classification
    • 101: named entity recognition
    • 102: text triplet relationship
    • 103: text triplet entity
    • 200: speech classification
    • 201: speech content
    • 202: speech paragraph labeling
    • 600: video classification
    -
    Table 13 SearchProp

    Parameter

    +
    - - - - - - - -
    Table 13 SearchProp

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    op

    +

    op

    String

    +

    String

    Relationship between attribute values. The options are as follows:

    -
    • AND: AND relationship
    • OR: OR relationship
    +

    Relationship between attribute values. The options are as follows:

    +
    • AND: AND relationship
    • OR: OR relationship

    props

    +

    props

    Map<String,Array<String>>

    +

    Map<String,Array<String>>

    Search criteria of an attribute. Multiple search criteria can be set.

    +

    Search criteria of an attribute. Multiple search criteria can be set.

    -

    Example Requests

    • Creating an Export Task (Exporting Data to OBS)
      {
      +

      Example Requests

      • Creating an Export Task (Exporting Data to OBS)
        {
           "path" : "/test-obs/daoChu/",
           "export_type" : 3,
           "export_params" : {
        @@ -1026,7 +1024,7 @@
             "export_dest" : "DIR"
           }
         }
        -
      • Creating an Export Task (Exporting Data to a New Dataset)
        {
        +
      • Creating an Export Task (Exporting Data to a New Dataset)
        {
           "path" : "/test-obs/classify/input/",
           "export_type" : 3,
           "export_params" : {
        @@ -1038,44 +1036,44 @@
         }
      -

      Example Responses

      Status code: 200

      -

      OK

      -
      {
      +

      Example Responses

      Status code: 200

      +

      OK

      +
      {
         "task_id" : "rF9NNoB56k5rtYKg2Y7"
       }
      -

      Status Codes

      -

      Status Code

      +

      Status Codes

      +
      - - - - - - - - -

      Status Code

      Description

      +

      Description

      200

      +

      200

      OK

      +

      OK

      401

      +

      401

      Unauthorized

      +

      Unauthorized

      403

      +

      403

      Forbidden

      +

      Forbidden

      404

      +

      404

      Not Found

      +

      Not Found

      -

      Error Codes

      See Error Codes.

      +

      Error Codes

      See Error Codes.

      diff --git a/docs/modelarts/api-ref/modelarts_03_0410.html b/docs/modelarts/api-ref/GetAuthorizations.html similarity index 95% rename from docs/modelarts/api-ref/modelarts_03_0410.html rename to docs/modelarts/api-ref/GetAuthorizations.html index a0ea0627..b75fc8a8 100644 --- a/docs/modelarts/api-ref/modelarts_03_0410.html +++ b/docs/modelarts/api-ref/GetAuthorizations.html @@ -1,7 +1,7 @@ - +

      Viewing an Authorization List

      -

      Function

      This API is used to view an authorization list.

      +

      Function

      This API is used to view an authorization list.

      URI

      GET /v2/{project_id}/authorizations

      @@ -93,7 +93,7 @@

      Response Parameters

      Status code: 200

      -
      Table 3 Response body parameters

      Parameter

      +
      @@ -110,7 +110,7 @@ - @@ -119,7 +119,7 @@
      Table 3 Response body parameters

      Parameter

      Type

      auth

      Array of AuthorizationResponse objects

      +

      Array of AuthorizationResponse objects

      Authorization information list.

      -
      Table 4 AuthorizationResponse

      Parameter

      +
      @@ -193,7 +193,7 @@ }

      Status Codes

      -
      Table 4 AuthorizationResponse

      Parameter

      Type

      Status Code

      +
      @@ -233,7 +233,7 @@
      diff --git a/docs/modelarts/api-ref/GetDatasetMetrics.html b/docs/modelarts/api-ref/GetDatasetMetrics.html index 8099d127..569c3325 100644 --- a/docs/modelarts/api-ref/GetDatasetMetrics.html +++ b/docs/modelarts/api-ref/GetDatasetMetrics.html @@ -1,7 +1,7 @@

      Querying the Monitoring Data of a Dataset

      -

      Function

      This API is used to query the monitoring data of a dataset within a specified time range.

      +

      Function

      This API is used to query the monitoring data of a dataset within a specified time range.

      URI

      GET /v2/{project_id}/datasets/{dataset_id}/metrics

      diff --git a/docs/modelarts/api-ref/GetExportTaskStatusOfDataset.html b/docs/modelarts/api-ref/GetExportTaskStatusOfDataset.html index 0ef640d7..a9b97809 100644 --- a/docs/modelarts/api-ref/GetExportTaskStatusOfDataset.html +++ b/docs/modelarts/api-ref/GetExportTaskStatusOfDataset.html @@ -1,496 +1,495 @@

      Querying the Status of a Dataset Export Task

      -

      Function

      This API is used to query the status of a dataset export task.

      +

      Function

      This API is used to query the status of a dataset export task.

      -

      URI

      GET /v2/{project_id}/datasets/{resource_id}/export-tasks/{task_id}

      +

      URI

      GET /v2/{project_id}/datasets/{resource_id}/export-tasks/{task_id}

      -

      Status Code

      Description

      Table 1 Path Parameters

      Parameter

      +
      - - - - - - - - - - - - - - -
      Table 1 Path Parameters

      Parameter

      Mandatory

      +

      Mandatory

      Type

      +

      Type

      Description

      +

      Description

      project_id

      +

      project_id

      Yes

      +

      Yes

      String

      +

      String

      Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

      +

      Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

      resource_id

      +

      resource_id

      Yes

      +

      Yes

      String

      +

      String

      Resource ID. Currently, the dataset ID can be specified.

      +

      Resource ID. Currently, the dataset ID can be specified.

      task_id

      +

      task_id

      Yes

      +

      Yes

      String

      +

      String

      ID of an export task.

      +

      ID of an export task.

      -

      Request Parameters

      None

      +

      Request Parameters

      None

      -

      Response Parameters

      Status code: 200

      +

      Response Parameters

      Status code: 200

      -
      Table 2 Response body parameters

      Parameter

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 2 Response body parameters

      Parameter

      Type

      +

      Type

      Description

      +

      Description

      create_time

      +

      create_time

      Long

      +

      Long

      Time when a task is created.

      +

      Time when a task is created.

      error_code

      +

      error_code

      String

      +

      String

      Error code.

      +

      Error code.

      error_msg

      +

      error_msg

      String

      +

      String

      Error message.

      +

      Error message.

      export_format

      +

      export_format

      Integer

      +

      Integer

      Format of the exported directory. The options are as follows:

      -
      • 1: tree structure. For example: cat/1.jpg,rabbit/2.jpg.
      • 2: tile structure. For example: 1.jpg, 1.txt; 2.jpg,2.txt.
      +

      Format of the exported directory. The options are as follows:

      +
      • 1: tree structure. For example: cat/1.jpg,rabbit/2.jpg.
      • 2: tile structure. For example: 1.jpg, 1.txt; 2.jpg,2.txt.

      export_params

      +

      export_params

      ExportParams object

      +

      ExportParams object

      Parameters of a dataset export task.

      +

      Parameters of a dataset export task.

      export_type

      +

      export_type

      Integer

      +

      Integer

      Export type. The options are as follows:

      -
      • 0: labeled
      • 1: unlabeled
      • 2: all
      • 3: conditional search
      +

      Export type. The options are as follows:

      +
      • 0: labeled
      • 1: unlabeled
      • 2: all
      • 3: conditional search

      finished_sample_count

      +

      finished_sample_count

      Integer

      +

      Integer

      Number of completed samples.

      +

      Number of completed samples.

      path

      +

      path

      String

      +

      String

      Export output path.

      +

      Export output path.

      progress

      +

      progress

      Float

      +

      Float

      Percentage of current task progress.

      +

      Percentage of current task progress.

      status

      +

      status

      String

      +

      String

      Task status.

      +

      Task status.

      task_id

      +

      task_id

      String

      +

      String

      Task ID.

      +

      Task ID.

      total_sample_count

      +

      total_sample_count

      Integer

      +

      Integer

      Total number of samples.

      +

      Total number of samples.

      update_time

      +

      update_time

      Long

      +

      Long

      Time when a task is updated.

      +

      Time when a task is updated.

      version_format

      +

      version_format

      String

      +

      String

      Format of a dataset version. The options are as follows:

      -
      • Default: default format
      • CarbonData: CarbonData (supported only by table datasets)
      • CSV: CSV
      +

      Format of a dataset version. The options are as follows:

      +
      • Default: default format
      • CarbonData: CarbonData (supported only by table datasets)
      • CSV: CSV

      version_id

      +

      version_id

      String

      +

      String

      Dataset version ID.

      +

      Dataset version ID.

      -
      Table 3 ExportParams

      Parameter

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 3 ExportParams

      Parameter

      Type

      +

      Type

      Description

      +

      Description

      clear_hard_property

      +

      clear_hard_property

      Boolean

      +

      Boolean

      Whether to clear hard example attributes. The options are as follows:

      -
      • true: Clear hard example attributes. (Default value)
      • false: Do not clear hard example attributes.
      +

      Whether to clear hard example attributes. The options are as follows:

      +
      • true: Clear hard example attributes. (Default value)
      • false: Do not clear hard example attributes.

      export_dataset_version_format

      +

      export_dataset_version_format

      String

      +

      String

      Format of the dataset version to which data is exported.

      +

      Format of the dataset version to which data is exported.

      export_dataset_version_name

      +

      export_dataset_version_name

      String

      +

      String

      Name of the dataset version to which data is exported.

      +

      Name of the dataset version to which data is exported.

      export_dest

      +

      export_dest

      String

      +

      String

      Export destination. The options are as follows:

      -
      • DIR: Export data to OBS. (Default value)
      • NEW_DATASET: Export data to a new dataset.
      +

      Export destination. The options are as follows:

      +
      • DIR: Export data to OBS. (Default value)
      • NEW_DATASET: Export data to a new dataset.

      export_new_dataset_name

      +

      export_new_dataset_name

      String

      +

      String

      Name of the new dataset to which data is exported.

      +

      Name of the new dataset to which data is exported.

      export_new_dataset_work_path

      +

      export_new_dataset_work_path

      String

      +

      String

      Working directory of the new dataset to which data is exported.

      +

      Working directory of the new dataset to which data is exported.

      ratio_sample_usage

      +

      ratio_sample_usage

      Boolean

      +

      Boolean

      Whether to randomly allocate the training set and validation set based on the specified ratio. The options are as follows:

      -
      • true: Allocate the training set and validation set.
      • false: Do not allocate the training set and validation set. (Default value)
      +

      Whether to randomly allocate the training set and validation set based on the specified ratio. The options are as follows:

      +
      • true: Allocate the training set and validation set.
      • false: Do not allocate the training set and validation set. (Default value)

      sample_state

      +

      sample_state

      String

      +

      String

      Sample status. The options are as follows:

      -
      • ALL: labeled
      • NONE: unlabeled
      • UNCHECK: pending acceptance
      • ACCEPTED: accepted
      • REJECTED: rejected
      • UNREVIEWED: pending review
      • REVIEWED: reviewed
      • WORKFORCE_SAMPLED: sampled
      • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
      • WORKFORCE_SAMPLED_CHECKED: sampling checked
      • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
      • WORKFORCE_SAMPLED_REJECTED: sampling rejected
      • AUTO_ANNOTATION: to be confirmed
      +

      Sample status. The options are as follows:

      +
      • ALL: labeled
      • NONE: unlabeled
      • UNCHECK: pending acceptance
      • ACCEPTED: accepted
      • REJECTED: rejected
      • UNREVIEWED: pending review
      • REVIEWED: reviewed
      • WORKFORCE_SAMPLED: sampled
      • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
      • WORKFORCE_SAMPLED_CHECKED: sampling checked
      • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
      • WORKFORCE_SAMPLED_REJECTED: sampling rejected
      • AUTO_ANNOTATION: to be confirmed

      samples

      +

      samples

      Array of strings

      +

      Array of strings

      ID list of exported samples.

      +

      ID list of exported samples.

      search_conditions

      +

      search_conditions

      Array of SearchCondition objects

      +

      Array of SearchCondition objects

      Exported search conditions. The relationship between multiple search conditions is OR.

      +

      Exported search conditions. The relationship between multiple search conditions is OR.

      train_sample_ratio

      +

      train_sample_ratio

      String

      +

      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.

      +

      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.

      -
      Table 4 SearchCondition

      Parameter

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 4 SearchCondition

      Parameter

      Type

      +

      Type

      Description

      +

      Description

      coefficient

      +

      coefficient

      String

      +

      String

      Filter by coefficient of difficulty.

      +

      Filter by coefficient of difficulty.

      frame_in_video

      +

      frame_in_video

      Integer

      +

      Integer

      A frame in the video.

      +

      A frame in the video.

      hard

      +

      hard

      String

      +

      String

      Whether a sample is a hard sample. The options are as follows:

      -
      • 0: non-hard sample
      • 1: hard sample
      +

      Whether a sample is a hard sample. The options are as follows:

      +
      • 0: non-hard sample
      • 1: hard sample

      import_origin

      +

      import_origin

      String

      +

      String

      Filter by data source.

      +

      Filter by data source.

      kvp

      +

      kvp

      String

      +

      String

      CT dosage, filtered by dosage.

      +

      CT dosage, filtered by dosage.

      label_list

      +

      label_list

      SearchLabels object

      +

      SearchLabels object

      Label search criteria.

      +

      Label search criteria.

      labeler

      +

      labeler

      String

      +

      String

      Labeler.

      +

      Labeler.

      metadata

      +

      metadata

      SearchProp object

      +

      SearchProp object

      Search by sample attribute.

      +

      Search by sample attribute.

      parent_sample_id

      +

      parent_sample_id

      String

      +

      String

      Parent sample ID.

      +

      Parent sample ID.

      sample_dir

      +

      sample_dir

      String

      +

      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.

      +

      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

      +

      sample_name

      String

      +

      String

      Search by sample name, including the file name extension.

      +

      Search by sample name, including the file name extension.

      sample_time

      +

      sample_time

      String

      +

      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. The options are as follows:

      -
      • month: Search for samples added from 30 days ago to the current day.
      • day: Search for samples added from yesterday (one day ago) to the current day.
      • yyyyMMdd-yyyyMMdd: Search for samples added in a specified period (at most 30 days), in the format of Start date-End date. For example, 20190901-20190915 indicates that samples generated from September 1 to September 15, 2019 are searched.
      +

      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. The options are as follows:- month: Search for samples added from 30 days ago to the current day.- day: Search for samples added from yesterday (one day ago) to the current day.- yyyyMMdd-yyyyMMdd: Search for samples added in a specified period (at most 30 days), in the format of Start date-End date. For example, 20190901-2019091501 indicates that samples generated from September 1 to September 15, 2019 are searched.

      score

      +

      score

      String

      +

      String

      Search by confidence.

      +

      Search by confidence.

      slice_thickness

      +

      slice_thickness

      String

      +

      String

      DICOM layer thickness. Samples are filtered by layer thickness.

      +

      DICOM layer thickness. Samples are filtered by layer thickness.

      study_date

      +

      study_date

      String

      +

      String

      DICOM scanning time.

      +

      DICOM scanning time.

      time_in_video

      +

      time_in_video

      String

      +

      String

      A time point in the video.

      +

      A time point in the video.

      -
      Table 5 SearchLabels

      Parameter

      +
      - - - - - - - -
      Table 5 SearchLabels

      Parameter

      Type

      +

      Type

      Description

      +

      Description

      labels

      +

      labels

      Array of SearchLabel objects

      +

      Array of SearchLabel objects

      List of label search criteria.

      +

      List of label search criteria.

      op

      +

      op

      String

      +

      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. The options are as follows:

      -
      • OR: OR operation
      • AND: AND operation
      +

      If you want to search for multiple labels, op must be specified. If you search for only one label, op can be left blank. The options are as follows:

      +
      • OR: OR operation
      • AND: AND operation
      -
      Table 6 SearchLabel

      Parameter

      +
      - - - - - - - - - - - - - -
      Table 6 SearchLabel

      Parameter

      Type

      +

      Type

      Description

      +

      Description

      name

      +

      name

      String

      +

      String

      Label name.

      +

      Label name.

      op

      +

      op

      String

      +

      String

      Operation type between multiple attributes. The options are as follows:

      -
      • OR: OR operation
      • AND: AND operation
      +

      Operation type between multiple attributes. The options are as follows:

      +
      • OR: OR operation
      • AND: AND operation

      property

      +

      property

      Map<String,Array<String>>

      +

      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.

      +

      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

      +

      type

      Integer

      +

      Integer

      Label type. The options are as follows:

      -
      • 0: image classification
      • 1: object detection
      • 100: text classification
      • 101: named entity recognition
      • 102: text triplet relationship
      • 103: text triplet entity
      • 200: speech classification
      • 201: speech content
      • 202: speech paragraph labeling
      • 600: video classification
      +

      Label type. The options are as follows:

      +
      • 0: image classification
      • 1: object detection
      • 100: text classification
      • 101: named entity recognition
      • 102: text triplet relationship
      • 103: text triplet entity
      • 200: speech classification
      • 201: speech content
      • 202: speech paragraph labeling
      • 600: video classification
      -
      Table 7 SearchProp

      Parameter

      +
      - - - - - - - -
      Table 7 SearchProp

      Parameter

      Type

      +

      Type

      Description

      +

      Description

      op

      +

      op

      String

      +

      String

      Relationship between attribute values. The options are as follows:

      -
      • AND: AND relationship
      • OR: OR relationship
      +

      Relationship between attribute values. The options are as follows:

      +
      • AND: AND relationship
      • OR: OR relationship

      props

      +

      props

      Map<String,Array<String>>

      +

      Map<String,Array<String>>

      Search criteria of an attribute. Multiple search criteria can be set.

      +

      Search criteria of an attribute. Multiple search criteria can be set.

      -

      Example Requests

      Querying the Status of an Export Task (Exporting Data to OBS)

      -
      GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/export-tasks/{task_id}
      +

      Example Requests

      Querying the Status of an Export Task (Exporting Data to OBS)

      +
      GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/export-tasks/{task_id}
      -

      Example Responses

      Status code: 200

      -

      OK

      -
      {
      +

      Example Responses

      Status code: 200

      +

      OK

      +
      {
         "task_id" : "TZMuy7OKbClkGCAc3gb",
         "path" : "/test-obs/daoChu/",
         "export_type" : 3,
      @@ -510,38 +509,38 @@
         "update_time" : 1606103494124
       }
      -

      Status Codes

      -

      Status Code

      +

      Status Codes

      +
      - - - - - - - - -

      Status Code

      Description

      +

      Description

      200

      +

      200

      OK

      +

      OK

      401

      +

      401

      Unauthorized

      +

      Unauthorized

      403

      +

      403

      Forbidden

      +

      Forbidden

      404

      +

      404

      Not Found

      +

      Not Found

      -

      Error Codes

      See Error Codes.

      +

      Error Codes

      See Error Codes.

      diff --git a/docs/modelarts/api-ref/GetExportTasksStatusOfDataset.html b/docs/modelarts/api-ref/GetExportTasksStatusOfDataset.html index f609c3f8..7c63b82c 100644 --- a/docs/modelarts/api-ref/GetExportTasksStatusOfDataset.html +++ b/docs/modelarts/api-ref/GetExportTasksStatusOfDataset.html @@ -1,663 +1,662 @@

      Querying the Dataset Export Task List

      -

      Function

      This API is used to query the dataset export task list by page.

      +

      Function

      This API is used to query the dataset export task list by page.

      -

      URI

      GET /v2/{project_id}/datasets/{dataset_id}/export-tasks

      +

      URI

      GET /v2/{project_id}/datasets/{dataset_id}/export-tasks

      -
      Table 1 Path Parameters

      Parameter

      +
      - - - - - - - - - - -
      Table 1 Path Parameters

      Parameter

      Mandatory

      +

      Mandatory

      Type

      +

      Type

      Description

      +

      Description

      dataset_id

      +

      dataset_id

      Yes

      +

      Yes

      String

      +

      String

      Dataset ID.

      +

      Dataset ID.

      project_id

      +

      project_id

      Yes

      +

      Yes

      String

      +

      String

      Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

      +

      Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

      -
      Table 2 Query Parameters

      Parameter

      +
      - - - - - - - - - - - - - - -
      Table 2 Query Parameters

      Parameter

      Mandatory

      +

      Mandatory

      Type

      +

      Type

      Description

      +

      Description

      export_type

      +

      export_type

      No

      +

      No

      Integer

      +

      Integer

      Export type. If this parameter is not specified, all types of export tasks are queried by default. The options are as follows:

      -
      • 0: labeled
      • 1: unlabeled
      • 2: all
      • 3: conditional search
      +

      Export type. If this parameter is not specified, all types of export tasks are queried by default. The options are as follows:

      +
      • 0: labeled
      • 1: unlabeled
      • 2: all
      • 3: conditional search

      limit

      +

      limit

      No

      +

      No

      Integer

      +

      Integer

      Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

      +

      Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

      offset

      +

      offset

      No

      +

      No

      Integer

      +

      Integer

      Start page of the paging list. The default value is 0.

      +

      Start page of the paging list. The default value is 0.

      -

      Request Parameters

      None

      +

      Request Parameters

      None

      -

      Response Parameters

      Status code: 200

      +

      Response Parameters

      Status code: 200

      -
      Table 3 Response body parameters

      Parameter

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 3 Response body parameters

      Parameter

      Type

      +

      Type

      Description

      +

      Description

      create_time

      +

      create_time

      Long

      +

      Long

      Time when a task is created.

      +

      Time when a task is created.

      error_code

      +

      error_code

      String

      +

      String

      Error code.

      +

      Error code.

      error_msg

      +

      error_msg

      String

      +

      String

      Error message.

      +

      Error message.

      export_format

      +

      export_format

      Integer

      +

      Integer

      Format of the exported directory. The options are as follows:

      -
      • 1: tree structure. For example: cat/1.jpg,rabbit/2.jpg.
      • 2: tile structure. For example: 1.jpg, 1.txt; 2.jpg,2.txt.
      +

      Format of the exported directory. The options are as follows:

      +
      • 1: tree structure. For example: cat/1.jpg,rabbit/2.jpg.
      • 2: tile structure. For example: 1.jpg, 1.txt; 2.jpg,2.txt.

      export_params

      +

      export_params

      ExportParams object

      +

      ExportParams object

      Parameters of a dataset export task.

      +

      Parameters of a dataset export task.

      export_tasks

      +

      export_tasks

      Array of ExportTaskStatusResp objects

      +

      Array of ExportTaskStatusResp objects

      Export task list

      +

      Export task list

      export_type

      +

      export_type

      Integer

      +

      Integer

      Export type. The options are as follows:

      -
      • 0: labeled
      • 1: unlabeled
      • 2: all
      • 3: conditional search
      +

      Export type. The options are as follows:

      +
      • 0: labeled
      • 1: unlabeled
      • 2: all
      • 3: conditional search

      finished_sample_count

      +

      finished_sample_count

      Integer

      +

      Integer

      Number of completed samples.

      +

      Number of completed samples.

      path

      +

      path

      String

      +

      String

      Export output path.

      +

      Export output path.

      progress

      +

      progress

      Float

      +

      Float

      Percentage of current task progress.

      +

      Percentage of current task progress.

      status

      +

      status

      String

      +

      String

      Task status.

      +

      Task status.

      task_id

      +

      task_id

      String

      +

      String

      Task ID.

      +

      Task ID.

      total_count

      +

      total_count

      Integer

      +

      Integer

      Total number of export tasks

      +

      Total number of export tasks

      total_sample_count

      +

      total_sample_count

      Integer

      +

      Integer

      Total number of samples.

      +

      Total number of samples.

      update_time

      +

      update_time

      Long

      +

      Long

      Time when a task is updated.

      +

      Time when a task is updated.

      version_format

      +

      version_format

      String

      +

      String

      Format of a dataset version. The options are as follows:

      -
      • Default: default format
      • CarbonData: CarbonData (supported only by table datasets)
      • CSV: CSV
      +

      Format of a dataset version. The options are as follows:

      +
      • Default: default format
      • CarbonData: CarbonData (supported only by table datasets)
      • CSV: CSV

      version_id

      +

      version_id

      String

      +

      String

      Dataset version ID.

      +

      Dataset version ID.

      -
      Table 4 ExportParams

      Parameter

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 4 ExportParams

      Parameter

      Type

      +

      Type

      Description

      +

      Description

      clear_hard_property

      +

      clear_hard_property

      Boolean

      +

      Boolean

      Whether to clear hard example attributes. The options are as follows:

      -
      • true: Clear hard example attributes. (Default value)
      • false: Do not clear hard example attributes.
      +

      Whether to clear hard example attributes. The options are as follows:

      +
      • true: Clear hard example attributes. (Default value)
      • false: Do not clear hard example attributes.

      export_dataset_version_format

      +

      export_dataset_version_format

      String

      +

      String

      Format of the dataset version to which data is exported.

      +

      Format of the dataset version to which data is exported.

      export_dataset_version_name

      +

      export_dataset_version_name

      String

      +

      String

      Name of the dataset version to which data is exported.

      +

      Name of the dataset version to which data is exported.

      export_dest

      +

      export_dest

      String

      +

      String

      Export destination. The options are as follows:

      -
      • DIR: Export data to OBS. (Default value)
      • NEW_DATASET: Export data to a new dataset.
      +

      Export destination. The options are as follows:

      +
      • DIR: Export data to OBS. (Default value)
      • NEW_DATASET: Export data to a new dataset.

      export_new_dataset_name

      +

      export_new_dataset_name

      String

      +

      String

      Name of the new dataset to which data is exported.

      +

      Name of the new dataset to which data is exported.

      export_new_dataset_work_path

      +

      export_new_dataset_work_path

      String

      +

      String

      Working directory of the new dataset to which data is exported.

      +

      Working directory of the new dataset to which data is exported.

      ratio_sample_usage

      +

      ratio_sample_usage

      Boolean

      +

      Boolean

      Whether to randomly allocate the training set and validation set based on the specified ratio. The options are as follows:

      -
      • true: Allocate the training set and validation set.
      • false: Do not allocate the training set and validation set. (Default value)
      +

      Whether to randomly allocate the training set and validation set based on the specified ratio. The options are as follows:

      +
      • true: Allocate the training set and validation set.
      • false: Do not allocate the training set and validation set. (Default value)

      sample_state

      +

      sample_state

      String

      +

      String

      Sample status. The options are as follows:

      -
      • ALL: labeled
      • NONE: unlabeled
      • UNCHECK: pending acceptance
      • ACCEPTED: accepted
      • REJECTED: rejected
      • UNREVIEWED: pending review
      • REVIEWED: reviewed
      • WORKFORCE_SAMPLED: sampled
      • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
      • WORKFORCE_SAMPLED_CHECKED: sampling checked
      • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
      • WORKFORCE_SAMPLED_REJECTED: sampling rejected
      • AUTO_ANNOTATION: to be confirmed
      +

      Sample status. The options are as follows:

      +
      • ALL: labeled
      • NONE: unlabeled
      • UNCHECK: pending acceptance
      • ACCEPTED: accepted
      • REJECTED: rejected
      • UNREVIEWED: pending review
      • REVIEWED: reviewed
      • WORKFORCE_SAMPLED: sampled
      • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
      • WORKFORCE_SAMPLED_CHECKED: sampling checked
      • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
      • WORKFORCE_SAMPLED_REJECTED: sampling rejected
      • AUTO_ANNOTATION: to be confirmed

      samples

      +

      samples

      Array of strings

      +

      Array of strings

      ID list of exported samples.

      +

      ID list of exported samples.

      search_conditions

      +

      search_conditions

      Array of SearchCondition objects

      +

      Array of SearchCondition objects

      Exported search conditions. The relationship between multiple search conditions is OR.

      +

      Exported search conditions. The relationship between multiple search conditions is OR.

      train_sample_ratio

      +

      train_sample_ratio

      String

      +

      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.

      +

      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.

      -
      Table 5 ExportTaskStatusResp

      Parameter

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 5 ExportTaskStatusResp

      Parameter

      Type

      +

      Type

      Description

      +

      Description

      create_time

      +

      create_time

      Long

      +

      Long

      Time when a task is created.

      +

      Time when a task is created.

      error_code

      +

      error_code

      String

      +

      String

      Error code.

      +

      Error code.

      error_msg

      +

      error_msg

      String

      +

      String

      Error message.

      +

      Error message.

      export_format

      +

      export_format

      Integer

      +

      Integer

      Format of the exported directory. The options are as follows:

      -
      • 1: tree structure. For example: cat/1.jpg,rabbit/2.jpg.
      • 2: tile structure. For example: 1.jpg, 1.txt; 2.jpg,2.txt.
      +

      Format of the exported directory. The options are as follows:

      +
      • 1: tree structure. For example: cat/1.jpg,rabbit/2.jpg.
      • 2: tile structure. For example: 1.jpg, 1.txt; 2.jpg,2.txt.

      export_params

      +

      export_params

      ExportParams object

      +

      ExportParams object

      Parameters of a dataset export task.

      +

      Parameters of a dataset export task.

      export_type

      +

      export_type

      Integer

      +

      Integer

      Export type. The options are as follows:

      -
      • 0: labeled
      • 1: unlabeled
      • 2: all
      • 3: conditional search
      +

      Export type. The options are as follows:

      +
      • 0: labeled
      • 1: unlabeled
      • 2: all
      • 3: conditional search

      finished_sample_count

      +

      finished_sample_count

      Integer

      +

      Integer

      Number of completed samples.

      +

      Number of completed samples.

      path

      +

      path

      String

      +

      String

      Export output path.

      +

      Export output path.

      progress

      +

      progress

      Float

      +

      Float

      Percentage of current task progress.

      +

      Percentage of current task progress.

      status

      +

      status

      String

      +

      String

      Task status.

      +

      Task status.

      task_id

      +

      task_id

      String

      +

      String

      Task ID.

      +

      Task ID.

      total_sample_count

      +

      total_sample_count

      Integer

      +

      Integer

      Total number of samples.

      +

      Total number of samples.

      update_time

      +

      update_time

      Long

      +

      Long

      Time when a task is updated.

      +

      Time when a task is updated.

      version_format

      +

      version_format

      String

      +

      String

      Format of a dataset version. The options are as follows:

      -
      • Default: default format
      • CarbonData: CarbonData (supported only by table datasets)
      • CSV: CSV
      +

      Format of a dataset version. The options are as follows:

      +
      • Default: default format
      • CarbonData: CarbonData (supported only by table datasets)
      • CSV: CSV

      version_id

      +

      version_id

      String

      +

      String

      Dataset version ID.

      +

      Dataset version ID.

      -
      Table 6 SearchCondition

      Parameter

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 6 SearchCondition

      Parameter

      Type

      +

      Type

      Description

      +

      Description

      coefficient

      +

      coefficient

      String

      +

      String

      Filter by coefficient of difficulty.

      +

      Filter by coefficient of difficulty.

      frame_in_video

      +

      frame_in_video

      Integer

      +

      Integer

      A frame in the video.

      +

      A frame in the video.

      hard

      +

      hard

      String

      +

      String

      Whether a sample is a hard sample. The options are as follows:

      -
      • 0: non-hard sample
      • 1: hard sample
      +

      Whether a sample is a hard sample. The options are as follows:

      +
      • 0: non-hard sample
      • 1: hard sample

      import_origin

      +

      import_origin

      String

      +

      String

      Filter by data source.

      +

      Filter by data source.

      kvp

      +

      kvp

      String

      +

      String

      CT dosage, filtered by dosage.

      +

      CT dosage, filtered by dosage.

      label_list

      +

      label_list

      SearchLabels object

      +

      SearchLabels object

      Label search criteria.

      +

      Label search criteria.

      labeler

      +

      labeler

      String

      +

      String

      Labeler.

      +

      Labeler.

      metadata

      +

      metadata

      SearchProp object

      +

      SearchProp object

      Search by sample attribute.

      +

      Search by sample attribute.

      parent_sample_id

      +

      parent_sample_id

      String

      +

      String

      Parent sample ID.

      +

      Parent sample ID.

      sample_dir

      +

      sample_dir

      String

      +

      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.

      +

      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

      +

      sample_name

      String

      +

      String

      Search by sample name, including the file name extension.

      +

      Search by sample name, including the file name extension.

      sample_time

      +

      sample_time

      String

      +

      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. The options are as follows:

      -
      • month: Search for samples added from 30 days ago to the current day.
      • day: Search for samples added from yesterday (one day ago) to the current day.
      • yyyyMMdd-yyyyMMdd: Search for samples added in a specified period (at most 30 days), in the format of Start date-End date. For example, 20190901-20190915 indicates that samples generated from September 1 to September 15, 2019 are searched.
      +

      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. The options are as follows:- month: Search for samples added from 30 days ago to the current day.- day: Search for samples added from yesterday (one day ago) to the current day.- yyyyMMdd-yyyyMMdd: Search for samples added in a specified period (at most 30 days), in the format of Start date-End date. For example, 20190901-2019091501 indicates that samples generated from September 1 to September 15, 2019 are searched.

      score

      +

      score

      String

      +

      String

      Search by confidence.

      +

      Search by confidence.

      slice_thickness

      +

      slice_thickness

      String

      +

      String

      DICOM layer thickness. Samples are filtered by layer thickness.

      +

      DICOM layer thickness. Samples are filtered by layer thickness.

      study_date

      +

      study_date

      String

      +

      String

      DICOM scanning time.

      +

      DICOM scanning time.

      time_in_video

      +

      time_in_video

      String

      +

      String

      A time point in the video.

      +

      A time point in the video.

      -
      Table 7 SearchLabels

      Parameter

      +
      - - - - - - - -
      Table 7 SearchLabels

      Parameter

      Type

      +

      Type

      Description

      +

      Description

      labels

      +

      labels

      Array of SearchLabel objects

      +

      Array of SearchLabel objects

      List of label search criteria.

      +

      List of label search criteria.

      op

      +

      op

      String

      +

      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. The options are as follows:

      -
      • OR: OR operation
      • AND: AND operation
      +

      If you want to search for multiple labels, op must be specified. If you search for only one label, op can be left blank. The options are as follows:

      +
      • OR: OR operation
      • AND: AND operation
      -
      Table 8 SearchLabel

      Parameter

      +
      - - - - - - - - - - - - - -
      Table 8 SearchLabel

      Parameter

      Type

      +

      Type

      Description

      +

      Description

      name

      +

      name

      String

      +

      String

      Label name.

      +

      Label name.

      op

      +

      op

      String

      +

      String

      Operation type between multiple attributes. The options are as follows:

      -
      • OR: OR operation
      • AND: AND operation
      +

      Operation type between multiple attributes. The options are as follows:

      +
      • OR: OR operation
      • AND: AND operation

      property

      +

      property

      Map<String,Array<String>>

      +

      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.

      +

      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

      +

      type

      Integer

      +

      Integer

      Label type. The options are as follows:

      -
      • 0: image classification
      • 1: object detection
      • 100: text classification
      • 101: named entity recognition
      • 102: text triplet relationship
      • 103: text triplet entity
      • 200: speech classification
      • 201: speech content
      • 202: speech paragraph labeling
      • 600: video classification
      +

      Label type. The options are as follows:

      +
      • 0: image classification
      • 1: object detection
      • 100: text classification
      • 101: named entity recognition
      • 102: text triplet relationship
      • 103: text triplet entity
      • 200: speech classification
      • 201: speech content
      • 202: speech paragraph labeling
      • 600: video classification
      -
      Table 9 SearchProp

      Parameter

      +
      - - - - - - - -
      Table 9 SearchProp

      Parameter

      Type

      +

      Type

      Description

      +

      Description

      op

      +

      op

      String

      +

      String

      Relationship between attribute values. The options are as follows:

      -
      • AND: AND relationship
      • OR: OR relationship
      +

      Relationship between attribute values. The options are as follows:

      +
      • AND: AND relationship
      • OR: OR relationship

      props

      +

      props

      Map<String,Array<String>>

      +

      Map<String,Array<String>>

      Search criteria of an attribute. Multiple search criteria can be set.

      +

      Search criteria of an attribute. Multiple search criteria can be set.

      -

      Example Requests

      Querying the Export Task List by Page

      -
      GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/export-tasks
      +

      Example Requests

      Querying the Export Task List by Page

      +
      GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/export-tasks
      -

      Example Responses

      Status code: 200

      -

      OK

      -
      {
      +

      Example Responses

      Status code: 200

      +

      OK

      +
      {
         "total_count" : 2,
         "export_tasks" : [ {
           "task_id" : "rF9NNoB56k5rtYKg2Y7",
      @@ -704,38 +703,38 @@
         } ]
       }
      -

      Status Codes

      -

      Status Code

      +

      Status Codes

      +
      - - - - - - - - -

      Status Code

      Description

      +

      Description

      200

      +

      200

      OK

      +

      OK

      401

      +

      401

      Unauthorized

      +

      Unauthorized

      403

      +

      403

      Forbidden

      +

      Forbidden

      404

      +

      404

      Not Found

      +

      Not Found

      -

      Error Codes

      See Error Codes.

      +

      Error Codes

      See Error Codes.

      diff --git a/docs/modelarts/api-ref/GetProcessorTaskItems.html b/docs/modelarts/api-ref/GetProcessorTaskItems.html new file mode 100644 index 00000000..e8e041c3 --- /dev/null +++ b/docs/modelarts/api-ref/GetProcessorTaskItems.html @@ -0,0 +1,152 @@ + + +

      Querying the Algorithm Type for Data Processing

      +

      Function

      This API is used to query the algorithm type for data processing.

      +
      +

      URI

      GET /v2/{project_id}/processor-tasks/items

      + +
      + + + + + + + + + + + +
      Table 1 Path Parameters

      Parameter

      +

      Mandatory

      +

      Type

      +

      Description

      +

      project_id

      +

      Yes

      +

      String

      +

      Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

      +
      +
      +
      +

      Request Parameters

      None

      +
      +

      Response Parameters

      Status code: 200

      + +
      + + + + + + + + + + + + + +
      Table 2 Response body parameters

      Parameter

      +

      Type

      +

      Description

      +

      items

      +

      Array of ProcessorTaskItem objects

      +

      Algorithm type list.

      +

      total

      +

      Integer

      +

      Total number.

      +
      +
      + +
      + + + + + + + + + + + + + +
      Table 3 ProcessorTaskItem

      Parameter

      +

      Type

      +

      Description

      +

      label_en

      +

      String

      +

      English name of an algorithm type.

      +

      template_id

      +

      String

      +

      Algorithm type ID.

      +
      +
      +
      +

      Example Requests

      Querying the List of the Algorithm Type for Data Processing

      +
      GET https://{endpoint}/v2/{project_id}/processor-tasks/items
      +
      +

      Example Responses

      Status code: 200

      +

      OK

      +
      {
      +  "total" : 4,
      +  "items" : [ {
      +    "template_id" : "sys_data_cleaning",
      +    "label_zh" : "label_zh to translate",
      +    "label_en" : "data cleaning"
      +  }, {
      +    "template_id" : "sys_data_validation",
      +    "label_zh" : "label_zh to translate",
      +    "label_en" : "data validation"
      +  }, {
      +    "template_id" : "sys_data_selection",
      +    "label_zh" : "label_zh to translate",
      +    "label_en" : "data selection"
      +  }, {
      +    "template_id" : "sys_data_augmentation",
      +    "label_zh" : "label_zh to translate",
      +    "label_en" : "data augmentation"
      +  } ]
      +}
      +
      +

      Status Codes

      +
      + + + + + + + + + + + + + + + + +

      Status Code

      +

      Description

      +

      200

      +

      OK

      +

      401

      +

      Unauthorized

      +

      403

      +

      Forbidden

      +

      404

      +

      Not Found

      +
      +
      +
      +

      Error Codes

      See Error Codes.

      +
      +
      +
      + +
      + diff --git a/docs/modelarts/api-ref/GetWorkforceSamplingTask.html b/docs/modelarts/api-ref/GetWorkforceSamplingTask.html new file mode 100644 index 00000000..3427acce --- /dev/null +++ b/docs/modelarts/api-ref/GetWorkforceSamplingTask.html @@ -0,0 +1,258 @@ + + +

      Querying the Report of a Team Labeling Acceptance Task

      +

      Function

      This API is used to query the report of a team labeling acceptance task.

      +
      +

      URI

      GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/acceptance/report

      + +
      + + + + + + + + + + + + + + + + + + + + + +
      Table 1 Path Parameters

      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.

      +

      workforce_task_id

      +

      Yes

      +

      String

      +

      ID of a team labeling task.

      +
      +
      + +
      + + + + + + + + + + + +
      Table 2 Query Parameters

      Parameter

      +

      Mandatory

      +

      Type

      +

      Description

      +

      checking_task_id

      +

      Yes

      +

      String

      +

      ID of the task that is being checked.

      +
      +
      +
      +

      Request Parameters

      None

      +
      +

      Response Parameters

      Status code: 200

      + +
      + + + + + + + + + + + + + +
      Table 3 Response body parameters

      Parameter

      +

      Type

      +

      Description

      +

      checking_stats

      +

      CheckTaskStats object

      +

      Real-time acceptance statistics.

      +

      total_stats

      +

      CheckTaskStats object

      +

      Historical statistics.

      +
      +
      + +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Table 4 CheckTaskStats

      Parameter

      +

      Type

      +

      Description

      +

      accepted_sample_count

      +

      Integer

      +

      Accepted samples.

      +

      checked_sample_count

      +

      Integer

      +

      Checked samples.

      +

      pass_rate

      +

      Double

      +

      Pass rate of samples.

      +

      rejected_sample_count

      +

      Integer

      +

      Rejected samples.

      +

      sampled_sample_count

      +

      Integer

      +

      Number of sampled samples.

      +

      sampling_num

      +

      Integer

      +

      Samples of an acceptance task.

      +

      sampling_rate

      +

      Double

      +

      Sampling rate of an acceptance task.

      +

      score

      +

      String

      +

      Acceptance score.

      +

      task_id

      +

      String

      +

      ID of an acceptance task.

      +

      total_sample_count

      +

      Integer

      +

      Total samples.

      +

      total_score

      +

      Long

      +

      Total acceptance score.

      +

      unchecked_sample_count

      +

      Integer

      +

      Unchecked samples.

      +
      +
      +
      +

      Example Requests

      Querying the Report of a Team Labeling Acceptance Task

      +
      GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/acceptance/report
      +
      +

      Example Responses

      Status code: 200

      +

      OK

      +
      {
      +  "total_stats" : {
      +    "sampling_rate" : 1.0,
      +    "sampling_num" : 3,
      +    "pass_rate" : 0.0,
      +    "score" : "E",
      +    "total_score" : 0,
      +    "total_sample_count" : 3,
      +    "sampled_sample_count" : 3,
      +    "unchecked_sample_count" : 3,
      +    "checked_sample_count" : 0,
      +    "accepted_sample_count" : 0,
      +    "rejected_sample_count" : 0
      +  }
      +}
      +
      +

      Status Codes

      +
      + + + + + + + + + + + + + + + + +

      Status Code

      +

      Description

      +

      200

      +

      OK

      +

      401

      +

      Unauthorized

      +

      403

      +

      Forbidden

      +

      404

      +

      Not Found

      +
      +
      +
      +

      Error Codes

      See Error Codes.

      +
      +
      +
      + +
      + diff --git a/docs/modelarts/api-ref/GetWorkforceTaskMetrics.html b/docs/modelarts/api-ref/GetWorkforceTaskMetrics.html new file mode 100644 index 00000000..727670dc --- /dev/null +++ b/docs/modelarts/api-ref/GetWorkforceTaskMetrics.html @@ -0,0 +1,129 @@ + + +

      Querying Details About the Progress of a Team Labeling Task Member

      +

      Function

      This API is used to query details about the progress of a team labeling task member.

      +
      +

      URI

      GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/metrics

      + +
      + + + + + + + + + + + + + + + + + + + + + +
      Table 1 Path Parameters

      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.

      +

      workforce_task_id

      +

      Yes

      +

      String

      +

      ID of a team labeling task.

      +
      +
      +
      +

      Request Parameters

      None

      +
      +

      Response Parameters

      Status code: 200

      + +
      + + + + + + + + + +
      Table 2 Response body parameters

      Parameter

      +

      Type

      +

      Description

      +

      sample_stats

      +

      Map<String,Map<String,Integer>>

      +

      Statistics on team labeling task members.

      +
      +
      +
      +

      Example Requests

      Querying Details About the Progress of a Team Labeling Task Member

      +
      GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/metrics
      +
      +

      Example Responses

      Status code: 200

      +

      OK

      +
      {
      +  "sample_stats" : {
      +    "xxx@xxx.com" : {
      +      "un_annotation" : 51,
      +      "rejected" : 0,
      +      "unreviewed" : 0,
      +      "accepted" : 0,
      +      "auto_annotation" : 0,
      +      "uncheck" : 0
      +    }
      +  }
      +}
      +
      +

      Status Codes

      +
      + + + + + + + + + + + + + + + + +

      Status Code

      +

      Description

      +

      200

      +

      OK

      +

      401

      +

      Unauthorized

      +

      403

      +

      Forbidden

      +

      404

      +

      Not Found

      +
      +
      +
      +

      Error Codes

      See Error Codes.

      +
      +
      +
      + +
      + diff --git a/docs/modelarts/api-ref/ImportTask.html b/docs/modelarts/api-ref/ImportTask.html index 064b9527..3007aabf 100644 --- a/docs/modelarts/api-ref/ImportTask.html +++ b/docs/modelarts/api-ref/ImportTask.html @@ -1,700 +1,699 @@

      Creating an Import Task

      -

      Function

      This API is used to create a dataset import task to import samples and labels from the storage system to the dataset.

      +

      Function

      This API is used to create a dataset import task to import samples and labels from the storage system to the dataset.

      -

      URI

      POST /v2/{project_id}/datasets/{dataset_id}/import-tasks

      +

      URI

      POST /v2/{project_id}/datasets/{dataset_id}/import-tasks

      -
      Table 1 Path Parameters

      Parameter

      +
      - - - - - - - - - - -
      Table 1 Path Parameters

      Parameter

      Mandatory

      +

      Mandatory

      Type

      +

      Type

      Description

      +

      Description

      dataset_id

      +

      dataset_id

      Yes

      +

      Yes

      String

      +

      String

      Dataset ID.

      +

      Dataset ID.

      project_id

      +

      project_id

      Yes

      +

      Yes

      String

      +

      String

      Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

      +

      Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

      -

      Request Parameters

      -
      Table 2 Request body parameters

      Parameter

      +

      Request Parameters

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 2 Request body parameters

      Parameter

      Mandatory

      +

      Mandatory

      Type

      +

      Type

      Description

      +

      Description

      annotation_format

      +

      annotation_format

      No

      +

      No

      String

      +

      String

      Format of the labeling information. Currently, only object detection is supported. The options are as follows:

      -
      • VOC: VOC
      • COCO: COCO
      +

      Format of the labeling information. Currently, only object detection is supported. The options are as follows:

      +
      • VOC: VOC
      • COCO: COCO

      data_source

      +

      data_source

      No

      +

      No

      DataSource object

      +

      DataSource object

      Data source.

      +

      Data source.

      difficult_only

      +

      difficult_only

      No

      +

      No

      Boolean

      +

      Boolean

      Whether to import only hard examples. The options are as follows:

      -
      • true: Only difficult samples are imported.
      • false: All samples are imported. (Default value)
      +

      Whether to import only hard examples. The options are as follows:

      +
      • true: Only difficult samples are imported.
      • false: All samples are imported. (Default value)

      excluded_labels

      +

      excluded_labels

      No

      +

      No

      Array of Label objects

      +

      Array of Label objects

      Do not import samples containing the specified label.

      +

      Do not import samples containing the specified label.

      final_annotation

      +

      final_annotation

      No

      +

      No

      Boolean

      +

      Boolean

      Whether to import data to the final state. The options are as follows:

      -
      • true: Import data to the final state. (Default value)
      • false: Do not import data to the final state.
      +

      Whether to import data to the final state. The options are as follows:

      +
      • true: Import data to the final state. (Default value)
      • false: Do not import data to the final state.

      import_annotations

      +

      import_annotations

      No

      +

      No

      Boolean

      +

      Boolean

      Whether to import labels. The options are as follows:

      -
      • true: Import labels. (Default value)
      • false: Do not import labels.
      +

      Whether to import labels. The options are as follows:

      +
      • true: Import labels. (Default value)
      • false: Do not import labels.

      import_folder

      +

      import_folder

      No

      +

      No

      String

      +

      String

      Name of the subdirectory in the dataset storage directory after import. You can specify the same subdirectory for multiple import tasks to avoid repeated import of the same samples. This field is invalid for table datasets.

      +

      Name of the subdirectory in the dataset storage directory after import. You can specify the same subdirectory for multiple import tasks to avoid repeated import of the same samples. This field is invalid for table datasets.

      import_origin

      +

      import_origin

      No

      +

      No

      String

      +

      String

      Data source. The options are as follows:

      -
      • obs: OBS bucket (default value)
      • dws: GaussDB(DWS)
      • dli: DLI
      • rds: RDS
      • mrs: MRS
      • inference: Inference service
      +

      Data source. The options are as follows:

      +
      • obs: OBS bucket (default value)
      • dws: GaussDB(DWS)
      • dli: DLI
      • rds: RDS
      • mrs: MRS
      • inference: Inference service

      import_path

      +

      import_path

      No

      +

      No

      String

      +

      String

      OBS path or manifest path to be imported.

      -
      • When importing a manifest file, ensure that the path is accurate to the manifest file.
      • When a path is imported as a directory, the dataset type can only support image classification, object detection, text classification, or sound classification.
      +

      OBS path or manifest path to be imported.

      +
      • When importing a manifest file, ensure that the path is accurate to the manifest file.
      • When a path is imported as a directory, the dataset type can only support image classification, object detection, text classification, or sound classification.

      import_samples

      +

      import_samples

      No

      +

      No

      Boolean

      +

      Boolean

      Whether to import samples. The options are as follows:

      -
      • true: Import samples. (Default value)
      • false: Do not import samples.
      +

      Whether to import samples. The options are as follows:

      +
      • true: Import samples. (Default value)
      • false: Do not import samples.

      import_type

      +

      import_type

      No

      +

      No

      String

      +

      String

      Import mode. The options are as follows:

      -
      • 0: Import by directory.
      • 1: Import by manifest file.
      +

      Import mode. The options are as follows:

      +
      • 0: Import by directory.
      • 1: Import by manifest file.

      included_labels

      +

      included_labels

      No

      +

      No

      Array of Label objects

      +

      Array of Label objects

      Import samples containing the specified label.

      +

      Import samples containing the specified label.

      label_format

      +

      label_format

      No

      +

      No

      LabelFormat object

      +

      LabelFormat object

      Label format. This parameter is used only for text datasets.

      +

      Label format. This parameter is used only for text datasets.

      with_column_header

      +

      with_column_header

      No

      +

      No

      Boolean

      +

      Boolean

      Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

      -
      • true: The first row in the file is the column name.
      • false: The first row in the file is not the column name. (Default value)
      +

      Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

      +
      • true: The first row in the file is the column name.
      • false: The first row in the file is not the column name. (Default value)
      -
      Table 3 DataSource

      Parameter

      +
      - - - - - - - - - - - - - - - - - - - - - - -
      Table 3 DataSource

      Parameter

      Mandatory

      +

      Mandatory

      Type

      +

      Type

      Description

      +

      Description

      data_path

      +

      data_path

      No

      +

      No

      String

      +

      String

      Data source path.

      +

      Data source path.

      data_type

      +

      data_type

      No

      +

      No

      Integer

      +

      Integer

      Data type. The options are as follows:

      -
      • 0: OBS bucket (default value)
      • 1: GaussDB(DWS)
      • 2: DLI
      • 3: RDS
      • 4: MRS
      • 5: AI Gallery
      • 6: Inference service
      +

      Data type. The options are as follows:

      +
      • 0: OBS bucket (default value)
      • 1: GaussDB(DWS)
      • 2: DLI
      • 3: RDS
      • 4: MRS
      • 5: AI Gallery
      • 6: Inference service

      schema_maps

      +

      schema_maps

      No

      +

      No

      Array of SchemaMap objects

      +

      Array of SchemaMap objects

      Schema mapping information corresponding to the table data.

      +

      Schema mapping information corresponding to the table data.

      source_info

      +

      source_info

      No

      +

      No

      SourceInfo object

      +

      SourceInfo object

      Information required for importing a table data source.

      +

      Information required for importing a table data source.

      with_column_header

      +

      with_column_header

      No

      +

      No

      Boolean

      +

      Boolean

      Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

      -
      • true: The first row in the file is the column name.
      • false: The first row in the file is not the column name.
      +

      Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

      +
      • true: The first row in the file is the column name.
      • false: The first row in the file is not the column name.
      -
      Table 4 SchemaMap

      Parameter

      +
      - - - - - - - - - - -
      Table 4 SchemaMap

      Parameter

      Mandatory

      +

      Mandatory

      Type

      +

      Type

      Description

      +

      Description

      dest_name

      +

      dest_name

      No

      +

      No

      String

      +

      String

      Name of the destination column.

      +

      Name of the destination column.

      src_name

      +

      src_name

      No

      +

      No

      String

      +

      String

      Name of the source column.

      +

      Name of the source column.

      -
      Table 5 SourceInfo

      Parameter

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 5 SourceInfo

      Parameter

      Mandatory

      +

      Mandatory

      Type

      +

      Type

      Description

      +

      Description

      cluster_id

      +

      cluster_id

      No

      +

      No

      String

      +

      String

      ID of an MRS cluster.

      +

      ID of an MRS cluster.

      cluster_mode

      +

      cluster_mode

      No

      +

      No

      String

      +

      String

      Running mode of an MRS cluster. The options are as follows:

      -
      • 0: normal cluster
      • 1: security cluster
      +

      Running mode of an MRS cluster. The options are as follows:

      +
      • 0: normal cluster
      • 1: security cluster

      cluster_name

      +

      cluster_name

      No

      +

      No

      String

      +

      String

      Name of an MRS cluster.

      +

      Name of an MRS cluster.

      database_name

      +

      database_name

      No

      +

      No

      String

      +

      String

      Name of the database to which the table dataset is imported.

      +

      Name of the database to which the table dataset is imported.

      input

      +

      input

      No

      +

      No

      String

      +

      String

      HDFS path of a table dataset.

      +

      HDFS path of a table dataset.

      ip

      +

      ip

      No

      +

      No

      String

      +

      String

      IP address of your GaussDB(DWS) cluster.

      +

      IP address of your GaussDB(DWS) cluster.

      port

      +

      port

      No

      +

      No

      String

      +

      String

      Port number of your GaussDB(DWS) cluster.

      +

      Port number of your GaussDB(DWS) cluster.

      queue_name

      +

      queue_name

      No

      +

      No

      String

      +

      String

      DLI queue name of a table dataset.

      +

      DLI queue name of a table dataset.

      subnet_id

      +

      subnet_id

      No

      +

      No

      String

      +

      String

      Subnet ID of an MRS cluster.

      +

      Subnet ID of an MRS cluster.

      table_name

      +

      table_name

      No

      +

      No

      String

      +

      String

      Name of the table to which a table dataset is imported.

      +

      Name of the table to which a table dataset is imported.

      user_name

      +

      user_name

      No

      +

      No

      String

      +

      String

      Username, which is mandatory for GaussDB(DWS) data.

      +

      Username, which is mandatory for GaussDB(DWS) data.

      user_password

      +

      user_password

      No

      +

      No

      String

      +

      String

      User password, which is mandatory for GaussDB(DWS) data.

      +

      User password, which is mandatory for GaussDB(DWS) data.

      vpc_id

      +

      vpc_id

      No

      +

      No

      String

      +

      String

      ID of the VPC where an MRS cluster resides.

      +

      ID of the VPC where an MRS cluster resides.

      -
      Table 6 Label

      Parameter

      +
      - - - - - - - - - - - - - - - - - - -
      Table 6 Label

      Parameter

      Mandatory

      +

      Mandatory

      Type

      +

      Type

      Description

      +

      Description

      attributes

      +

      attributes

      No

      +

      No

      Array of LabelAttribute objects

      +

      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.

      +

      Multi-dimensional attribute of a label. For example, if the label is music, attributes such as style and artist may be included.

      name

      +

      name

      No

      +

      No

      String

      +

      String

      Label name.

      +

      Label name.

      property

      +

      property

      No

      +

      No

      LabelProperty object

      +

      LabelProperty object

      Basic attribute key-value pair of a label, such as color and shortcut keys.

      +

      Basic attribute key-value pair of a label, such as color and shortcut keys.

      type

      +

      type

      No

      +

      No

      Integer

      +

      Integer

      Label type. The options are as follows:

      -
      • 0: image classification
      • 1: object detection
      • 100: text classification
      • 101: named entity recognition
      • 102: text triplet relationship
      • 103: text triplet entity
      • 200: speech classification
      • 201: speech content
      • 202: speech paragraph labeling
      • 600: video classification
      +

      Label type. The options are as follows:

      +
      • 0: image classification
      • 1: object detection
      • 100: text classification
      • 101: named entity recognition
      • 102: text triplet relationship
      • 103: text triplet entity
      • 200: speech classification
      • 201: speech content
      • 202: speech paragraph labeling
      • 600: video classification
      -
      Table 7 LabelAttribute

      Parameter

      +
      - - - - - - - - - - - - - - - - - - - - - - -
      Table 7 LabelAttribute

      Parameter

      Mandatory

      +

      Mandatory

      Type

      +

      Type

      Description

      +

      Description

      default_value

      +

      default_value

      No

      +

      No

      String

      +

      String

      Default value of a label attribute.

      +

      Default value of a label attribute.

      id

      +

      id

      No

      +

      No

      String

      +

      String

      Label attribute ID.

      +

      Label attribute ID.

      name

      +

      name

      No

      +

      No

      String

      +

      String

      Label attribute name.

      +

      Label attribute name.

      type

      +

      type

      No

      +

      No

      String

      +

      String

      Label attribute type. The options are as follows:

      -
      • text: text
      • select: single-choice drop-down list
      +

      Label attribute type. The options are as follows:

      +
      • text: text
      • select: single-choice drop-down list

      values

      +

      values

      No

      +

      No

      Array of LabelAttributeValue objects

      +

      Array of LabelAttributeValue objects

      List of label attribute values.

      +

      List of label attribute values.

      -
      Table 8 LabelAttributeValue

      Parameter

      +
      - - - - - - - - - - -
      Table 8 LabelAttributeValue

      Parameter

      Mandatory

      +

      Mandatory

      Type

      +

      Type

      Description

      +

      Description

      id

      +

      id

      No

      +

      No

      String

      +

      String

      Label attribute value ID.

      +

      Label attribute value ID.

      value

      +

      value

      No

      +

      No

      String

      +

      String

      Label attribute value.

      +

      Label attribute value.

      -
      Table 9 LabelProperty

      Parameter

      +
      - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 9 LabelProperty

      Parameter

      Mandatory

      +

      Mandatory

      Type

      +

      Type

      Description

      +

      Description

      @modelarts:color

      +

      @modelarts:color

      No

      +

      No

      String

      +

      String

      Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

      +

      Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

      @modelarts:default_shape

      +

      @modelarts:default_shape

      No

      +

      No

      String

      +

      String

      Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

      -
      • bndbox: rectangle
      • polygon: polygon
      • circle: circle
      • line: straight line
      • dashed: dotted line
      • point: point
      • polyline: polyline
      +

      Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

      +
      • bndbox: rectangle
      • polygon: polygon
      • circle: circle
      • line: straight line
      • dashed: dotted line
      • point: point
      • polyline: polyline

      @modelarts:from_type

      +

      @modelarts:from_type

      No

      +

      No

      String

      +

      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.

      +

      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

      +

      @modelarts:rename_to

      No

      +

      No

      String

      +

      String

      Default attribute: The new name of the label.

      +

      Default attribute: The new name of the label.

      @modelarts:shortcut

      +

      @modelarts:shortcut

      No

      +

      No

      String

      +

      String

      Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

      +

      Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

      @modelarts:to_type

      +

      @modelarts:to_type

      No

      +

      No

      String

      +

      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.

      +

      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.

      -
      Table 10 LabelFormat

      Parameter

      +
      - - - - - - - - - - - - - - -
      Table 10 LabelFormat

      Parameter

      Mandatory

      +

      Mandatory

      Type

      +

      Type

      Description

      +

      Description

      label_type

      +

      label_type

      No

      +

      No

      String

      +

      String

      Label type of text classification. The options are as follows:

      -
      • 0: The label is separated from the text, and they are distinguished by the fixed suffix _result. For example, the text file is abc.txt, and the label file is abc_result.txt.
      • 1: Default value. Labels and texts are stored in the same file and separated by separators. You can use text_sample_separator to specify the separator between the text and label and text_label_separator to specify the separator between labels.
      +

      Label type of text classification. The options are as follows:- 0: The label is separated from the text, and they are distinguished by the fixed suffix _result. For example, the text file is abc.txt, and the label file is abc_result.txt.- 1: Default value. Labels and texts are stored in the same file and separated by separators. You can use text_sample_separator to specify the separator between the text and label and text_label_separator to specify the separator between labels.

      text_label_separator

      +

      text_label_separator

      No

      +

      No

      String

      +

      String

      Separator between labels. By default, a comma (,) is used as the separator. The separator needs to be escaped. The separator can contain only one character, such as a letter, a digit, or any of the following special characters: !@#$%^&*_=|?/':.;,

      +

      Separator between labels. By default, a comma (,) is used as the separator. The separator needs to be escaped. The separator can contain only one character, such as a letter, a digit, or any of the following special characters: !@#$%^&*_=|?/':.;,

      text_sample_separator

      +

      text_sample_separator

      No

      +

      No

      String

      +

      String

      Separator between the text and label. By default, the Tab key is used as the separator. The separator needs to be escaped. The separator can contain only one character, such as a letter, a digit, or any of the following special characters: !@#$%^&*_=|?/':.;,

      +

      Separator between the text and label. By default, the Tab key is used as the separator. The separator needs to be escaped. The separator can contain only one character, such as a letter, a digit, or any of the following special characters: !@#$%^&*_=|?/':.;,

      -

      Response Parameters

      Status code: 200

      +

      Response Parameters

      Status code: 200

      -
      Table 11 Response body parameters

      Parameter

      +
      - - - - -
      Table 11 Response body parameters

      Parameter

      Type

      +

      Type

      Description

      +

      Description

      task_id

      +

      task_id

      String

      +

      String

      ID of an import task.

      +

      ID of an import task.

      -

      Example Requests

      • Creating an Import Task (Importing Data from OBS)
        {
        +

        Example Requests

        • Creating an Import Task (Importing Data from OBS)
          {
             "import_type" : "dir",
             "import_path" : "s3://test-obs/daoLu_images/cat-rabbit/",
             "included_tags" : [ ],
             "import_annotations" : false,
             "difficult_only" : false
           }
          -
        • Creating an Import Task (Importing Data from Manifest)
          {
          +
        • Creating an Import Task (Importing Data from Manifest)
          {
             "import_type" : "manifest",
             "import_path" : "s3://test-obs/classify/output/dataset-f9e8-gfghHSokody6AJigS5A/annotation/V002/V002.manifest",
             "included_tags" : [ "cat", "rabbit", "Cat", "Rabbit" ],
          @@ -703,44 +702,44 @@
           }
        -

        Example Responses

        Status code: 200

        -

        OK

        -
        {
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
           "task_id" : "gfghHSokody6AJigS5A_m1dYqOw8vWCAznw1V28"
         }
        -

        Status Codes

        -

        Status Code

        +

        Status Codes

        +
        - - - - - - - - -

        Status Code

        Description

        +

        Description

        200

        +

        200

        OK

        +

        OK

        401

        +

        401

        Unauthorized

        +

        Unauthorized

        403

        +

        403

        Forbidden

        +

        Forbidden

        404

        +

        404

        Not Found

        +

        Not Found

        -

        Error Codes

        See Error Codes.

        +

        Error Codes

        See Error Codes.

        diff --git a/docs/modelarts/api-ref/ListAlgorithms.html b/docs/modelarts/api-ref/ListAlgorithms.html new file mode 100644 index 00000000..d18fcd55 --- /dev/null +++ b/docs/modelarts/api-ref/ListAlgorithms.html @@ -0,0 +1,1061 @@ + + +

        Querying the Algorithm List

        +

        Function

        This API is used to query the algorithm list.

        +
        +

        URI

        GET /v2/{project_id}/algorithms

        + +
        + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        offset

        +

        No

        +

        Integer

        +

        Offset for querying algorithms. The minimum value is 0. For example, if this parameter is set to 1, the query starts from the second one.

        +

        limit

        +

        No

        +

        Integer

        +

        Limit of algorithms to be queried. The value ranges from 1 to 50.

        +

        sort_by

        +

        No

        +

        String

        +

        Metric for sorting algorithms to be queried. create_time is used by default.

        +

        order

        +

        No

        +

        String

        +

        Order of queried algorithms. The default value is desc, indicating that queried algorithms are sorted in descending order. You can also set this parameter to asc, indicating the ascending order.

        +

        group_by

        +

        No

        +

        String

        +

        Condition for grouping the algorithms to be queried.

        +

        searches

        +

        No

        +

        String

        +

        Filter criteria for algorithms to be queried, for example, fuzzy match by the algorithm name.

        +

        workspace_id

        +

        No

        +

        String

        +

        Workspace ID

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        total

        +

        Integer

        +

        Total number of queried algorithms of the current user.

        +

        count

        +

        Integer

        +

        Total number of algorithms that meet the search criteria of the current user.

        +

        limit

        +

        Integer

        +

        Maximum number of queried algorithms of the current user.

        +

        offset

        +

        Integer

        +

        Offset of all algorithm queries of the current user.

        +

        sort_by

        +

        String

        +

        Fields used to sort queried algorithms of the current user.

        +

        order

        +

        String

        +

        Sorting mode of queried algorithms of the current user. The default value is desc, indicating the descending order. You can also set this parameter to asc, indicating the ascending order.

        +

        group_by

        +

        String

        +

        Grouping mode of queried algorithms of the current user.

        +

        items

        +

        Array of AlgorithmResponse objects

        +

        Details about all algorithms that meet the search criteria of the current user.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 4 AlgorithmResponse

        Parameter

        +

        Type

        +

        Description

        +

        metadata

        +

        metadata object

        +

        Algorithm metadata, which describes basic algorithm information.

        +

        job_config

        +

        job_config object

        +

        Algorithm configuration, such as the boot file.

        +

        resource_requirements

        +

        Array of resource_requirements objects

        +

        Algorithm resource constraint. You can disable this function by not setting this parameter.

        +

        advanced_config

        +

        advanced_config object

        +

        Advanced algorithm configuration. Currently, autosearch is supported.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 5 metadata

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        Integer

        +

        Algorithm UUID. You do not need to set this parameter when creating an algorithm.

        +

        name

        +

        String

        +

        Algorithm name. The value must contain 1 to 64 characters consisting of only digits, letters, underscores (_), and hyphens (-).

        +

        description

        +

        String

        +

        Algorithm description. The value must contain 0 to 256 characters. The default value is NULL.

        +

        workspace_id

        +

        String

        +

        Workspace where a specified algorithm is located. The default value is 0.

        +

        ai_project

        +

        String

        +

        AI project to which a specified algorithm belongs. The default value is default-ai-project.

        +

        user_name

        +

        String

        +

        Username.

        +

        domain_id

        +

        String

        +

        Domain ID of a user.

        +

        source

        +

        String

        +

        Algorithm source.

        +

        api_version

        +

        String

        +

        Algorithm API version, which identifies the old and new ones.

        +

        is_valid

        +

        String

        +

        Algorithm availability.

        +

        state

        +

        String

        +

        Algorithm state.

        +

        tags

        +

        Array of Map<String,String> objects

        +

        Algorithm tags.

        +

        attr_list

        +

        Array of strings

        +

        Algorithm attribute list.

        +

        version_num

        +

        Integer

        +

        Number of algorithm versions. The default value is 0.

        +

        size

        +

        Integer

        +

        Algorithm size.

        +

        create_time

        +

        Long

        +

        Timestamp when the algorithm is created.

        +

        update_time

        +

        Long

        +

        Timestamp when the algorithm is updated.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 6 job_config

        Parameter

        +

        Type

        +

        Description

        +

        code_dir

        +

        String

        +

        Algorithm code directory, for example, /usr/app/. This parameter must be used together with boot_file.

        +

        boot_file

        +

        String

        +

        Code boot file of the algorithm, which needs to be stored in the code directory, for example, /usr/app/boot.py. This parameter must be used together with code_dir.

        +

        command

        +

        String

        +

        Container startup command of a custom image algorithm.

        +

        parameters

        +

        Array of Parameter objects

        +

        Running parameter of an algorithm.

        +

        inputs

        +

        Array of inputs objects

        +

        Data input of an algorithm.

        +

        outputs

        +

        Array of outputs objects

        +

        Data output of an algorithm.

        +

        engine

        +

        engine object

        +

        Algorithm engine.

        +

        code_tree

        +

        Array of code_tree objects

        +

        Algorithm directory tree.

        +

        parameters_customization

        +

        Boolean

        +

        Whether the algorithm allows hyperparameter customization during training job creation.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 7 Parameter

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Parameter name.

        +

        value

        +

        String

        +

        Parameter value.

        +

        description

        +

        String

        +

        Parameter description.

        +

        constraint

        +

        constraint object

        +

        Parameter constraint.

        +

        i18n_description

        +

        i18n_description object

        +

        Internationalization description.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 8 constraint

        Parameter

        +

        Type

        +

        Description

        +

        type

        +

        String

        +

        Parameter type.

        +

        editable

        +

        Boolean

        +

        Whether the parameter is editable.

        +

        required

        +

        Boolean

        +

        Whether the parameter is mandatory.

        +

        sensitive

        +

        Boolean

        +

        Whether the parameter is sensitive.

        +

        valid_type

        +

        String

        +

        Valid type.

        +

        valid_range

        +

        Array of strings

        +

        Valid range.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 9 i18n_description

        Parameter

        +

        Type

        +

        Description

        +

        language

        +

        String

        +

        Internationalization language.

        +

        description

        +

        String

        +

        Description.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 10 inputs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data input channel.

        +

        description

        +

        String

        +

        Description of the data input channel.

        +

        remote_constraints

        +

        Array of remote_constraints objects

        +

        Data input constraint.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 11 remote_constraints

        Parameter

        +

        Type

        +

        Description

        +

        data_type

        +

        String

        +

        Data input type, including the data storage location and dataset.

        +

        attributes

        +

        Array of Map<String,String> objects

        +

        Attributes if a dataset is used as the data input. Options:

        +
        • data_format: Data format

          +
        • data_segmentation: Data segmentation

          +
        • dataset_type: Labeling type

          +
        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 12 outputs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data output channel.

        +

        description

        +

        String

        +

        Description of the data output channel.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 13 engine

        Parameter

        +

        Type

        +

        Description

        +

        engine_id

        +

        String

        +

        Engine ID selected for an algorithm.

        +

        engine_name

        +

        String

        +

        Engine version name selected for an algorithm. If engine_id is specified, leave this parameter blank.

        +

        engine_version

        +

        String

        +

        Engine version name selected for an algorithm. If engine_id is specified, leave this parameter blank.

        +

        image_url

        +

        String

        +

        Custom image URL selected by an algorithm.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 14 code_tree

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the current directory in the algorithm directory tree.

        +

        children

        +

        Object

        +

        Subfiles and subdirectories in the current directory of the algorithm directory tree.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 15 resource_requirements

        Parameter

        +

        Type

        +

        Description

        +

        key

        +

        String

        +

        Resource constraint. Options:flavor_type: flavor type. The value can be CPU, Ascend, or GPU.device_distributed_mode: whether to support multi-device training. The value can be multiple (supported) or singular (not supported).host_distributed_mode: whether to support distributed training. The value can be multiple (supported) or singular (not supported).

        +

        value

        +

        Array of strings

        +

        Value of the resource constraint key.

        +

        operator

        +

        String

        +

        Relationship between keys and values. Currently, only in is supported. For example: flavor_type in [CPU,GPU].

        +
        +
        + +
        + + + + + + + + + +
        Table 16 advanced_config

        Parameter

        +

        Type

        +

        Description

        +

        auto_search

        +

        auto_search object

        +

        Hyperparameter search policy.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 18 reward_attrs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Metric name.

        +

        mode

        +

        String

        +

        Search direction.

        +
        • max: A larger metric value indicates better performance.

          +
        • min: A smaller metric value indicates better performance.

          +
        +

        regex

        +

        String

        +

        Regular expression of a metric.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 19 search_params

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Hyperparameter name.

        +

        param_type

        +

        String

        +

        Parameter type.

        +
        • continuous: The hyperparameter is of the continuous type.

          +
        • discrete: The hyperparameter is of the discrete type.

          +
        +

        lower_bound

        +

        String

        +

        Lower bound of the hyperparameter.

        +

        upper_bound

        +

        String

        +

        Upper bound of the hyperparameter.

        +

        discrete_points_num

        +

        String

        +

        Number of discrete points of a continuous hyperparameter.

        +

        discrete_values

        +

        String

        +

        List of discrete hyperparameter values.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 20 algo_configs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the search algorithm.

        +

        params

        +

        Array of AutoSearchAlgoConfigParameter objects

        +

        Search algorithm parameters.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 21 AutoSearchAlgoConfigParameter

        Parameter

        +

        Type

        +

        Description

        +

        key

        +

        String

        +

        Parameter key.

        +

        value

        +

        String

        +

        Parameter value.

        +

        type

        +

        String

        +

        Parameter type.

        +
        +
        +
        +

        Example Requests

        The following shows how to query all algorithms in jobs whose names contain TestModelArtsalgorithm and maximum number of algorithms is set to 1.

        +
        GET    https://endpoint/v2/{project_id}/algorithms?limit=1&searches=name%3ATestModelArtsalgorithm
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "total" : 1,
        +  "count" : 1,
        +  "limit" : 1,
        +  "offset" : 0,
        +  "sort_by" : "create_time",
        +  "order" : "desc",
        +  "group_by" : "",
        +  "items" : [ {
        +    "metadata" : {
        +      "id" : "2e5451fe-913f-4492-821a-2981031382f7",
        +      "name" : "TestModelArtsalgorithm",
        +      "description" : "This is a ModelArts algorithm",
        +      "create_time" : 1636600721742,
        +      "workspace_id" : "0",
        +      "ai_project" : "default-ai-project",
        +      "user_name" : "",
        +      "domain_id" : "xxxxxxxxxxxxxxxxxxxxxxxxxx",
        +      "source" : "custom",
        +      "api_version" : "",
        +      "is_valid" : true,
        +      "state" : "",
        +      "size" : 4791,
        +      "tags" : [ ],
        +      "attr_list" : null,
        +      "version_num" : 0,
        +      "update_time" : 0
        +    },
        +    "share_info" : { },
        +    "job_config" : {
        +      "code_dir" : "/algo-test/pytorch/work1/code/",
        +      "boot_file" : "/algo-test/pytorch/work1/code/test-pytorch.py",
        +      "command" : "",
        +      "parameters" : [ {
        +        "name" : "test-parameter",
        +        "description" : "",
        +        "i18n_description" : null,
        +        "value" : "10",
        +        "constraint" : {
        +          "type" : "String",
        +          "editable" : true,
        +          "required" : false,
        +          "sensitive" : false,
        +          "valid_type" : "None",
        +          "valid_range" : [ ]
        +        }
        +      } ],
        +      "parameters_customization" : true,
        +      "inputs" : [ {
        +        "name" : "data_url",
        +        "description" : "name to translate"
        +      } ],
        +      "outputs" : [ {
        +        "name" : "train_url",
        +        "description" : "name to translate"
        +      } ],
        +      "engine" : {
        +        "engine_id" : "pytorch-cp36-1.3.0",
        +        "engine_name" : "PyTorch",
        +        "engine_version" : "PyTorch-1.3.0-python3.6",
        +        "v1_compatible" : true,
        +        "run_user" : "",
        +        "image_info" : {
        +          "cpu_image_url" : "modelarts-job-dev-image/pytorch-cpu-cp36:1.3.0",
        +          "gpu_image_url" : "modelarts-job-dev-image/pytorch-gpu-cuda10-cp36:1.3.0",
        +          "image_version" : "3.1.0"
        +        }
        +      },
        +      "code_tree" : {
        +        "name" : "code/",
        +        "children" : [ {
        +          "name" : "test-pytorch.py"
        +        } ]
        +      }
        +    },
        +    "resource_requirements" : null,
        +    "advanced_config" : { }
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListAllWorkers.html b/docs/modelarts/api-ref/ListAllWorkers.html new file mode 100644 index 00000000..8b5dfd29 --- /dev/null +++ b/docs/modelarts/api-ref/ListAllWorkers.html @@ -0,0 +1,275 @@ + + +

        Querying the List of All Labeling Team Members

        +

        Function

        This API is used to query the list of all labeling team members.

        +
        +

        URI

        GET /v2/{project_id}/workforces/workers

        + +
        + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        limit

        +

        No

        +

        Integer

        +

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

        +

        offset

        +

        No

        +

        Integer

        +

        Start page of the paging list. The default value is 0.

        +

        order

        +

        No

        +

        String

        +

        Sorting sequence of the query. The options are as follows:

        +
        • asc: ascending order

          +
        • desc: descending order (default value)

          +
        +

        role

        +

        No

        +

        Integer

        +

        Filtering query based on the member role. The options are as follows:

        +
        • 0: labeling personnel (default value)

          +
        • 1: reviewer

          +
        • 2: team administrator

          +
        +

        sort_by

        +

        No

        +

        String

        +

        Sorting mode of the query. The options are as follows:

        +
        • create_time: Sort by creation time. (Default value)

          +
        • email: Sort by email.

          +
        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        total_number

        +

        Integer

        +

        Total number of labeling team members.

        +

        workers

        +

        Array of Worker objects

        +

        Labeling team members list queried by page.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 Worker

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Creation time.

        +

        description

        +

        String

        +

        Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        +

        email

        +

        String

        +

        Email address of a labeling team member.

        +

        role

        +

        Integer

        +

        Role. The options are as follows:

        +
        • 0: labeling personnel

          +
        • 1: reviewer

          +
        • 2: team administrator

          +
        • 3: dataset owner

          +
        +

        status

        +

        Integer

        +

        Current login status of a labeling team member. The options are as follows:

        +
        • 0: The invitation email has not been sent.

          +
        • 1: The invitation email has been sent but the user has not logged in.

          +
        • 2: The user has logged in.

          +
        • 3: The labeling team member has been deleted.

          +
        +

        update_time

        +

        Long

        +

        Update time.

        +

        worker_id

        +

        String

        +

        ID of a labeling team member.

        +

        workforce_id

        +

        String

        +

        ID of a labeling team.

        +
        +
        +
        +

        Example Requests

        Querying All Labeling Team Administrators

        +
        GET https://{endpoint}/v2/{project_id}/workforces/workers??role=2
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "total_number" : 2,
        +  "workers" : [ {
        +    "email" : "xxx@xxx.com",
        +    "worker_id" : "df40e4afcb793d13f01f6c9022341e6f",
        +    "workforce_id" : "feSUo5NUIUnQAQNNTiS",
        +    "status" : 0,
        +    "role" : 2,
        +    "description" : "",
        +    "create_time" : 1595927749772,
        +    "update_time" : 1595927749772
        +  }, {
        +    "email" : "xxx@xxx.com",
        +    "worker_id" : "27906df1d06c0827b7c24f761d618541",
        +    "workforce_id" : "XiL5RcHmxyIt3aYIOtI",
        +    "status" : 0,
        +    "role" : 2,
        +    "description" : "",
        +    "create_time" : 1590027298717,
        +    "update_time" : 1590027298717
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListAutoAnnotationSamples.html b/docs/modelarts/api-ref/ListAutoAnnotationSamples.html new file mode 100644 index 00000000..b0914425 --- /dev/null +++ b/docs/modelarts/api-ref/ListAutoAnnotationSamples.html @@ -0,0 +1,729 @@ + + +

        Querying Auto Labeling Sample List

        +

        Function

        This API is used to query auto labeling samples in a dataset.

        +
        +

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/auto-annotations/samples

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        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.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        high_score

        +

        No

        +

        String

        +

        Upper confidence limit. The default value is 1.

        +

        label_name

        +

        No

        +

        String

        +

        Label name.

        +

        label_type

        +

        No

        +

        Integer

        +

        Labeling type. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet
        • 200: sound classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 400: table dataset
        • 600: video labeling
        • 900: custom format
        +

        limit

        +

        No

        +

        Integer

        +

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

        +

        low_score

        +

        No

        +

        String

        +

        Lower confidence limit. The default value is 0.

        +

        offset

        +

        No

        +

        Integer

        +

        Start page of the paging list. The default value is 0.

        +

        order

        +

        No

        +

        String

        +

        Sorting sequence of the query. The options are as follows:

        +
        • asc: ascending order
        • desc: descending order (default value)
        +

        process_parameter

        +

        No

        +

        String

        +

        Image resizing setting, which is the same as the OBS resizing setting. For details, see . For example, image/resize,m_lfit,h_200 indicates that the target image is resized proportionally and the height is set to 200 pixels.

        +

        search_conditions

        +

        No

        +

        String

        +

        Multi-dimensional search condition after URL encoding. The relationship between multiple search conditions is AND.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        sample_count

        +

        Integer

        +

        Number of samples.

        +

        samples

        +

        Array of DescribeSampleResp objects

        +

        Sample list.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 DescribeSampleResp

        Parameter

        +

        Type

        +

        Description

        +

        check_accept

        +

        Boolean

        +

        Whether the acceptance is passed, which is used for team labeling. The options are as follows:

        +
        • true: The acceptance is passed.
        • false: The acceptance is not passed.
        +

        check_comment

        +

        String

        +

        Acceptance comment, which is used for team labeling.

        +

        check_score

        +

        String

        +

        Acceptance score, which is used for team labeling.

        +

        deletion_reasons

        +

        Array of strings

        +

        Reason for deleting a sample, which is used for healthcare.

        +

        hard_details

        +

        Map<String,HardDetail>

        +

        Details about difficulties, including description, causes, and suggestions of difficult problems.

        +

        labelers

        +

        Array of Worker objects

        +

        Labeling personnel list of sample assignment. The labelers record the team members to which the sample is allocated for team labeling.

        +

        labels

        +

        Array of SampleLabel objects

        +

        Sample label list.

        +

        metadata

        +

        SampleMetadata object

        +

        Key-value pair of the sample metadata attribute.

        +

        review_accept

        +

        Boolean

        +

        Whether to accept the review, which is used for team labeling. The options are as follows:

        +
        • true: accepted
        • false: rejected
        +

        review_comment

        +

        String

        +

        Review comment, which is used for team labeling.

        +

        review_score

        +

        String

        +

        Review score, which is used for team labeling.

        +

        sample_data

        +

        Array of strings

        +

        Sample data list.

        +

        sample_dir

        +

        String

        +

        Sample path.

        +

        sample_id

        +

        String

        +

        Sample ID.

        +

        sample_name

        +

        String

        +

        Sample name.

        +

        sample_size

        +

        Long

        +

        Sample size or text length, in bytes.

        +

        sample_status

        +

        String

        +

        Sample status. The options are as follows:

        +
        • ALL: labeled
        • NONE: unlabeled
        • UNCHECK: pending acceptance
        • ACCEPTED: accepted
        • REJECTED: rejected
        • UNREVIEWED: pending review
        • REVIEWED: reviewed
        • WORKFORCE_SAMPLED: sampled
        • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
        • WORKFORCE_SAMPLED_CHECKED: sampling checked
        • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
        • WORKFORCE_SAMPLED_REJECTED: sampling rejected
        • AUTO_ANNOTATION: to be confirmed
        +

        sample_time

        +

        Long

        +

        Sample time, when OBS is last modified.

        +

        sample_type

        +

        Integer

        +

        Sample type. The options are as follows:

        +
        • 0: image
        • 1: text
        • 2: speech
        • 4: table
        • 6: video
        • 9: custom format
        +

        score

        +

        String

        +

        Comprehensive score, which is used for team labeling.

        +

        source

        +

        String

        +

        Source address of sample data.

        +

        sub_sample_url

        +

        String

        +

        Subsample URL, which is used for healthcare.

        +

        worker_id

        +

        String

        +

        ID of a labeling team member, which is used for team labeling.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 5 HardDetail

        Parameter

        +

        Type

        +

        Description

        +

        alo_name

        +

        String

        +

        Alias.

        +

        id

        +

        Integer

        +

        Reason ID.

        +

        reason

        +

        String

        +

        Reason description.

        +

        suggestion

        +

        String

        +

        Handling suggestion.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 6 Worker

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Creation time.

        +

        description

        +

        String

        +

        Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        +

        email

        +

        String

        +

        Email address of a labeling team member.

        +

        role

        +

        Integer

        +

        Role. The options are as follows:

        +
        • 0: labeling personnel
        • 1: reviewer
        • 2: team administrator
        • 3: dataset owner
        +

        status

        +

        Integer

        +

        Current login status of a labeling team member. The options are as follows:

        +
        • 0: The invitation email has not been sent.
        • 1: The invitation email has been sent but the user has not logged in.
        • 2: The user has logged in.
        • 3: The labeling team member has been deleted.
        +

        update_time

        +

        Long

        +

        Update time.

        +

        worker_id

        +

        String

        +

        ID of a labeling team member.

        +

        workforce_id

        +

        String

        +

        ID of a labeling team.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 7 SampleLabel

        Parameter

        +

        Type

        +

        Description

        +

        annotated_by

        +

        String

        +

        Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

        +
        • human: manual labeling
        • auto: automatic labeling
        +

        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. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 8 SampleLabelProperty

        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. Examples are as follows.- If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.- If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.

        +

        @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 an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:- bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.- polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].- circle: consists of the center point and radius, for example, [[100,100],[50]].- line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- point: consists of one point, for example, [[0,100]].- polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].

        +

        @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:

        +
        • 0/false: not a hard example
        • 1/true: hard example
        +

        @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. The options are as follows:

        +
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.
        +

        @modelarts:shape

        +

        String

        +

        Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

        +
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline
        +

        @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.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 9 SampleMetadata

        Parameter

        +

        Type

        +

        Description

        +

        @modelarts:hard

        +

        Double

        +

        Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

        +
        • 0: non-hard sample
        • 1: hard sample
        +

        @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. The options are as follows:

        +
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.
        +

        @modelarts:size

        +

        Array of objects

        +

        Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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

        Querying Auto Labeling Sample List

        +
        GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/auto-annotations/samples
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "sample_count" : 1,
        +  "samples" : [ {
        +    "sample_id" : "10de574cbf0f09d4798b87ba0eb34e37",
        +    "sample_type" : 0,
        +    "labels" : [ {
        +      "name" : "sunflowers",
        +      "type" : 0,
        +      "id" : "1",
        +      "property" : {
        +        "@modelarts:hard_coefficient" : "0.0",
        +        "@modelarts:hard" : "false"
        +      },
        +      "score" : 1.0
        +    } ],
        +    "source" : "https://test-obs.obs.xxx.com:443/rabbitcat/8_1597649054631.jpeg?AccessKeyId=alRn0xskf5luJaG2jBJe&Expires=1606299230&x-image-process=image%2Fresize%2Cm_lfit%2Ch_200&Signature=MNAAjXz%2Fmwn%2BSabSK9wkaG6b6bU%3D",
        +    "metadata" : {
        +      "@modelarts:hard_coefficient" : 1.0,
        +      "@modelarts:hard" : true,
        +      "@modelarts:import_origin" : 0,
        +      "@modelarts:hard_reasons" : [ 8, 6, 5, 3 ]
        +    },
        +    "sample_time" : 1601432758000,
        +    "sample_status" : "UN_ANNOTATION"
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListDatasetVersions.html b/docs/modelarts/api-ref/ListDatasetVersions.html index b221ddc4..a50593a9 100644 --- a/docs/modelarts/api-ref/ListDatasetVersions.html +++ b/docs/modelarts/api-ref/ListDatasetVersions.html @@ -1,7 +1,7 @@

        Querying the Dataset Version List

        -

        Function

        This API is used to query the version list of a specific dataset.

        +

        Function

        This API is used to query the version list of a specific dataset.

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/versions

        diff --git a/docs/modelarts/api-ref/ListDatasets.html b/docs/modelarts/api-ref/ListDatasets.html index e514991f..a0faba30 100644 --- a/docs/modelarts/api-ref/ListDatasets.html +++ b/docs/modelarts/api-ref/ListDatasets.html @@ -1,1640 +1,1639 @@

        Querying the Dataset List

        -

        Function

        This API is used to query the created datasets that meet the search criteria by page.

        +

        Function

        This API is used to query the created datasets that meet the search criteria by page.

        -

        URI

        GET /v2/{project_id}/datasets

        +

        URI

        GET /v2/{project_id}/datasets

        -
        Table 1 Path Parameters

        Parameter

        +
        - - - - - - -
        Table 1 Path Parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        project_id

        +

        project_id

        Yes

        +

        Yes

        String

        +

        String

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        -
        Table 2 Query Parameters

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 2 Query Parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        check_running_task

        +

        check_running_task

        No

        +

        No

        Boolean

        +

        Boolean

        Whether to detect tasks (including initialization tasks) that are running in a dataset. The options are as follows:

        -
        • true: Detect tasks (including initialization tasks) that are running in the dataset.
        • false: Do not detect tasks (including initialization tasks) that are running in the dataset. (Default value)
        +

        Whether to detect tasks (including initialization tasks) that are running in a dataset. The options are as follows:

        +
        • true: Detect tasks (including initialization tasks) that are running in the dataset.
        • false: Do not detect tasks (including initialization tasks) that are running in the dataset. (Default value)

        contain_versions

        +

        contain_versions

        No

        +

        No

        Boolean

        +

        Boolean

        Whether the dataset contains a version.

        +

        Whether the dataset contains a version.

        dataset_type

        +

        dataset_type

        No

        +

        No

        Integer

        +

        Integer

        Dataset type. The options are as follows:

        -
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet
        • 200: sound classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 400: table dataset
        • 600: video labeling
        • 900: custom format
        +

        Dataset type. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet
        • 200: sound classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 400: table dataset
        • 600: video labeling
        • 900: custom format

        file_preview

        +

        file_preview

        No

        +

        No

        Boolean

        +

        Boolean

        Whether a dataset supports preview when it is queried. The options are as follows:

        -
        • true: Preview is supported and the list of four dataset files is returned.
        • false: Preview is not supported. (Default value)
        +

        Whether a dataset supports preview when it is queried. The options are as follows:

        +
        • true: Preview is supported and the list of four dataset files is returned.
        • false: Preview is not supported. (Default value)

        limit

        +

        limit

        No

        +

        No

        Integer

        +

        Integer

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

        +

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

        offset

        +

        offset

        No

        +

        No

        Integer

        +

        Integer

        Start page of the paging list. The default value is 0.

        +

        Start page of the paging list. The default value is 0.

        order

        +

        order

        No

        +

        No

        String

        +

        String

        Sorting sequence of the query. The options are as follows:

        -
        • asc: ascending order
        • desc: descending order (default value)
        +

        Sorting sequence of the query. The options are as follows:

        +
        • asc: ascending order
        • desc: descending order (default value)

        running_task_type

        +

        running_task_type

        No

        +

        No

        Integer

        +

        Integer

        Type of the running tasks (including initialization tasks) to be detected. The options are as follows:

        -
        • 0: auto labeling
        • 1: pre-labeling
        • 2: export
        • 3: version switch
        • 4: manifest file export
        • 5: manifest file import
        • 6: version publishing
        • 7: auto grouping
        • 10: one-click model deployment (default value)
        +

        Type of the running tasks (including initialization tasks) to be detected. The options are as follows:

        +
        • 0: auto labeling
        • 1: pre-labeling
        • 2: export
        • 3: version switch
        • 4: manifest file export
        • 5: manifest file import
        • 6: version publishing
        • 7: auto grouping
        • 10: one-click model deployment (default value)

        search_content

        +

        search_content

        No

        +

        No

        String

        +

        String

        Fuzzy search keyword. By default, this parameter is left blank.

        +

        Fuzzy search keyword. By default, this parameter is left blank.

        sort_by

        +

        sort_by

        No

        +

        No

        String

        +

        String

        Sorting mode of the query. The options are as follows:

        -
        • create_time: Sort by creation time. (Default value)
        • dataset_name: Sort by dataset name.
        +

        Sorting mode of the query. The options are as follows:

        +
        • create_time: Sort by creation time. (Default value)
        • dataset_name: Sort by dataset name.

        support_export

        +

        support_export

        No

        +

        No

        Boolean

        +

        Boolean

        Whether to filter datasets that can be exported only (including datasets of image classification, object detection, and custom format). If this parameter is left blank or the value is set to false, no filtering is performed. The options are as follows:

        -
        • true: Filter datasets that can be exported only.
        • false: Do not filter datasets that can be exported only. (Default value)
        +

        Whether to filter datasets that can be exported only (including datasets of image classification, object detection, and custom format). If this parameter is left blank or the value is set to false, no filtering is performed. The options are as follows:- true: Filter datasets that can be exported only.- false: Do not filter datasets that can be exported only. (Default value)

        train_evaluate_ratio

        +

        train_evaluate_ratio

        No

        +

        No

        String

        +

        String

        Version split ratio for dataset filtering. The numbers before and after the comma indicate the minimum and maximum split ratios, and the versions whose split ratios are within the range are filtered out, for example, 0.0,1.0. Note: If this parameter is left blank or unavailable, the system does not filter datasets based on the version split ratio by default.

        +

        Version split ratio for dataset filtering. The numbers before and after the comma indicate the minimum and maximum split ratios, and the versions whose split ratios are within the range are filtered out, for example, 0.0,1.0. Note: If this parameter is left blank or unavailable, the system does not filter datasets based on the version split ratio by default.

        version_format

        +

        version_format

        No

        +

        No

        Integer

        +

        Integer

        Dataset version format for dataset filtering. This parameter is used to filter datasets that meet the filter criteria. The options are as follows:

        -
        • 0: default format
        • 1: CarbonData (supported only by table datasets)
        • 2: CSV
        +

        Dataset version format for dataset filtering. This parameter is used to filter datasets that meet the filter criteria. The options are as follows:

        +
        • 0: default format
        • 1: CarbonData (supported only by table datasets)
        • 2: CSV

        with_labels

        +

        with_labels

        No

        +

        No

        Boolean

        +

        Boolean

        Whether to return dataset labels. The options are as follows:

        -
        • true: Return label information.
        • false: Do not return label information. (Default value)
        +

        Whether to return dataset labels. The options are as follows:

        +
        • true: Return label information.
        • false: Do not return label information. (Default value)

        workspace_id

        +

        workspace_id

        No

        +

        No

        String

        +

        String

        Workspace ID. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value.

        +

        Workspace ID. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value.

        -

        Request Parameters

        None

        +

        Request Parameters

        None

        -

        Response Parameters

        Status code: 200

        +

        Response Parameters

        Status code: 200

        -
        Table 3 Response body parameters

        Parameter

        +
        - - - - - - - - - - -
        Table 3 Response body parameters

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        datasets

        +

        datasets

        Array of DatasetAndFilePreview objects

        +

        Array of DatasetAndFilePreview objects

        Dataset list queried by page.

        +

        Dataset list queried by page.

        total_number

        +

        total_number

        Integer

        +

        Integer

        Total number of datasets.

        +

        Total number of datasets.

        workspaceId

        +

        workspaceId

        String

        +

        String

        Workspace ID. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value.

        +

        Workspace ID. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value.

        -
        Table 4 DatasetAndFilePreview

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 4 DatasetAndFilePreview

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        annotated_sample_count

        +

        annotated_sample_count

        Integer

        +

        Integer

        Number of labeled samples in a dataset.

        +

        Number of labeled samples in a dataset.

        annotated_sub_sample_count

        +

        annotated_sub_sample_count

        Integer

        +

        Integer

        Number of labeled subsamples.

        +

        Number of labeled subsamples.

        content_labeling

        +

        content_labeling

        Boolean

        +

        Boolean

        Whether to enable content labeling for the speech paragraph labeling dataset. This function is enabled by default.

        +

        Whether to enable content labeling for the speech paragraph labeling dataset. This function is enabled by default.

        create_time

        +

        create_time

        Long

        +

        Long

        Time when a dataset is created.

        +

        Time when a dataset is created.

        current_version_id

        +

        current_version_id

        String

        +

        String

        Current version ID of a dataset.

        +

        Current version ID of a dataset.

        current_version_name

        +

        current_version_name

        String

        +

        String

        Current version name of a dataset.

        +

        Current version name of a dataset.

        data_format

        +

        data_format

        String

        +

        String

        Data format.

        +

        Data format.

        data_sources

        +

        data_sources

        Array of DataSource objects

        +

        Array of DataSource objects

        Data source list.

        +

        Data source list.

        data_statistics

        +

        data_statistics

        Map<String,Object>

        +

        Map<String,Object>

        Sample statistics on a dataset, including the statistics on sample metadata in JSON format.

        +

        Sample statistics on a dataset, including the statistics on sample metadata in JSON format.

        data_update_time

        +

        data_update_time

        Long

        +

        Long

        Time when a sample and a label are updated.

        +

        Time when a sample and a label are updated.

        data_url

        +

        data_url

        String

        +

        String

        Data path for training.

        +

        Data path for training.

        dataset_format

        +

        dataset_format

        Integer

        +

        Integer

        Dataset format. The options are as follows:

        -
        • 0: file
        • 1: table
        +

        Dataset format. The options are as follows:

        +
        • 0: file
        • 1: table

        dataset_id

        +

        dataset_id

        String

        +

        String

        Dataset ID.

        +

        Dataset ID.

        dataset_name

        +

        dataset_name

        String

        +

        String

        Dataset name.

        +

        Dataset name.

        dataset_tags

        +

        dataset_tags

        Array of strings

        +

        Array of strings

        Key identifier list of a dataset, for example, ["Image","Object detection"].

        +

        Key identifier list of a dataset, for example, ["Image","Object detection"].

        dataset_type

        +

        dataset_type

        Integer

        +

        Integer

        Dataset type. The options are as follows:

        -
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet
        • 200: sound classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 400: table dataset
        • 600: video labeling
        • 900: custom format
        +

        Dataset type. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet
        • 200: sound classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 400: table dataset
        • 600: video labeling
        • 900: custom format

        dataset_version_count

        +

        dataset_version_count

        Integer

        +

        Integer

        Version number of a dataset.

        +

        Version number of a dataset.

        deleted_sample_count

        +

        deleted_sample_count

        Integer

        +

        Integer

        Number of deleted samples.

        +

        Number of deleted samples.

        deletion_stats

        +

        deletion_stats

        Map<String,Integer>

        +

        Map<String,Integer>

        Deletion reason statistics.

        +

        Deletion reason statistics.

        description

        +

        description

        String

        +

        String

        Dataset description.

        +

        Dataset description.

        enterprise_project_id

        +

        enterprise_project_id

        String

        +

        String

        Enterprise project ID.

        +

        Enterprise project ID.

        exist_running_task

        +

        exist_running_task

        Boolean

        +

        Boolean

        Whether the dataset contains running (including initialization) tasks. The options are as follows:

        -
        • true: The dataset contains running tasks.
        • false: The dataset does not contain running tasks.
        +

        Whether the dataset contains running (including initialization) tasks. The options are as follows:

        +
        • true: The dataset contains running tasks.
        • false: The dataset does not contain running tasks.

        exist_workforce_task

        +

        exist_workforce_task

        Boolean

        +

        Boolean

        Whether the dataset contains team labeling tasks. The options are as follows:

        -
        • true: The dataset contains team labeling tasks.
        • false: The dataset does not contain team labeling tasks.
        +

        Whether the dataset contains team labeling tasks. The options are as follows:

        +
        • true: The dataset contains team labeling tasks.
        • false: The dataset does not contain team labeling tasks.

        feature_supports

        +

        feature_supports

        Array of strings

        +

        Array of strings

        List of features supported by the dataset. Currently, only the value 0 is supported, indicating that the OBS file size is limited.

        +

        List of features supported by the dataset. Currently, only the value 0 is supported, indicating that the OBS file size is limited.

        import_data

        +

        import_data

        Boolean

        +

        Boolean

        Whether to import data. The options are as follows:

        -
        • true: Import data.
        • false: Do not import data.
        +

        Whether to import data. The options are as follows:

        +
        • true: Import data.
        • false: Do not import data.

        import_task_id

        +

        import_task_id

        String

        +

        String

        ID of an import task.

        +

        ID of an import task.

        inner_annotation_path

        +

        inner_annotation_path

        String

        +

        String

        Path for storing the labeling result of a dataset.

        +

        Path for storing the labeling result of a dataset.

        inner_data_path

        +

        inner_data_path

        String

        +

        String

        Path for storing the internal data of a dataset.

        +

        Path for storing the internal data of a dataset.

        inner_log_path

        +

        inner_log_path

        String

        +

        String

        Path for storing internal logs of a dataset.

        +

        Path for storing internal logs of a dataset.

        inner_task_path

        +

        inner_task_path

        String

        +

        String

        Path for internal task of a dataset.

        +

        Path for internal task of a dataset.

        inner_temp_path

        +

        inner_temp_path

        String

        +

        String

        Path for storing internal temporary files of a dataset.

        +

        Path for storing internal temporary files of a dataset.

        inner_work_path

        +

        inner_work_path

        String

        +

        String

        Output directory of a dataset.

        +

        Output directory of a dataset.

        label_task_count

        +

        label_task_count

        Integer

        +

        Integer

        Number of labeling tasks.

        +

        Number of labeling tasks.

        labels

        +

        labels

        Array of Label objects

        +

        Array of Label objects

        Dataset label list.

        +

        Dataset label list.

        loading_sample_count

        +

        loading_sample_count

        Integer

        +

        Integer

        Number of loading samples.

        +

        Number of loading samples.

        managed

        +

        managed

        Boolean

        +

        Boolean

        Whether a dataset is hosted. The options are as follows:

        -
        • true: The dataset is hosted.
        • false: The dataset is not hosted.
        +

        Whether a dataset is hosted. The options are as follows:

        +
        • true: The dataset is hosted.
        • false: The dataset is not hosted.

        next_version_num

        +

        next_version_num

        Integer

        +

        Integer

        Number of next versions of a dataset.

        +

        Number of next versions of a dataset.

        running_tasks_id

        +

        running_tasks_id

        Array of strings

        +

        Array of strings

        ID list of running (including initialization) tasks.

        +

        ID list of running (including initialization) tasks.

        samples

        +

        samples

        Array of AnnotationFile objects

        +

        Array of AnnotationFile objects

        Sample list.

        +

        Sample list.

        schema

        +

        schema

        Array of Field objects

        +

        Array of Field objects

        Schema list.

        +

        Schema list.

        status

        +

        status

        Integer

        +

        Integer

        Dataset status. The options are as follows:

        -
        • 0: creating dataset
        • 1: normal dataset
        • 2: deleting dataset
        • 3: deleted dataset
        • 4: abnormal dataset
        • 5: synchronizing dataset
        • 6: releasing dataset
        • 7: dataset in version switching
        • 8: importing dataset
        +

        Dataset status. The options are as follows:

        +
        • 0: creating dataset
        • 1: normal dataset
        • 2: deleting dataset
        • 3: deleted dataset
        • 4: abnormal dataset
        • 5: synchronizing dataset
        • 6: releasing dataset
        • 7: dataset in version switching
        • 8: importing dataset

        third_path

        +

        third_path

        String

        +

        String

        Third-party path.

        +

        Third-party path.

        total_sample_count

        +

        total_sample_count

        Integer

        +

        Integer

        Total number of dataset samples.

        +

        Total number of dataset samples.

        total_sub_sample_count

        +

        total_sub_sample_count

        Integer

        +

        Integer

        Total number of subsamples generated from the parent samples. For example, the total number of key frame images extracted from the video labeling dataset is that of subsamples.

        +

        Total number of subsamples generated from the parent samples. For example, the total number of key frame images extracted from the video labeling dataset is that of subsamples.

        unconfirmed_sample_count

        +

        unconfirmed_sample_count

        Integer

        +

        Integer

        Number of auto labeling samples to be confirmed.

        +

        Number of auto labeling samples to be confirmed.

        update_time

        +

        update_time

        Long

        +

        Long

        Time when a dataset is updated.

        +

        Time when a dataset is updated.

        versions

        +

        versions

        Array of DatasetVersion objects

        +

        Array of DatasetVersion objects

        Dataset version information. Currently, only the current version information of a dataset is recorded.

        +

        Dataset version information. Currently, only the current version information of a dataset is recorded.

        work_path

        +

        work_path

        String

        +

        String

        Output dataset path, which is used to store output files such as label files. The path is an OBS path in the format of /Bucket name/File path. For example: /obs-bucket.

        +

        Output dataset path, which is used to store output files such as label files. The path is an OBS path in the format of /Bucket name/File path. For example: /obs-bucket.

        work_path_type

        +

        work_path_type

        Integer

        +

        Integer

        Type of the dataset output path. The options are as follows:

        -
        • 0: OBS bucket (default value)
        +

        Type of the dataset output path. The options are as follows:

        +
        • 0: OBS bucket (default value)

        workforce_descriptor

        +

        workforce_descriptor

        WorkforceDescriptor object

        +

        WorkforceDescriptor object

        Team labeling information.

        +

        Team labeling information.

        workforce_task_count

        +

        workforce_task_count

        Integer

        +

        Integer

        Number of team labeling tasks of a dataset.

        +

        Number of team labeling tasks of a dataset.

        workspace_id

        +

        workspace_id

        String

        +

        String

        Workspace ID. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value.

        +

        Workspace ID. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value.

        -
        Table 5 DataSource

        Parameter

        +
        - - - - - - - - - - - - - - - - -
        Table 5 DataSource

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        data_path

        +

        data_path

        String

        +

        String

        Data source path.

        +

        Data source path.

        data_type

        +

        data_type

        Integer

        +

        Integer

        Data type. The options are as follows:

        -
        • 0: OBS bucket (default value)
        • 1: GaussDB(DWS)
        • 2: DLI
        • 3: RDS
        • 4: MRS
        • 5: AI Gallery
        • 6: Inference service
        +

        Data type. The options are as follows:

        +
        • 0: OBS bucket (default value)
        • 1: GaussDB(DWS)
        • 2: DLI
        • 3: RDS
        • 4: MRS
        • 5: AI Gallery
        • 6: Inference service

        schema_maps

        +

        schema_maps

        Array of SchemaMap objects

        +

        Array of SchemaMap objects

        Schema mapping information corresponding to the table data.

        +

        Schema mapping information corresponding to the table data.

        source_info

        +

        source_info

        SourceInfo object

        +

        SourceInfo object

        Information required for importing a table data source.

        +

        Information required for importing a table data source.

        with_column_header

        +

        with_column_header

        Boolean

        +

        Boolean

        Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

        -
        • true: The first row in the file is the column name.
        • false: The first row in the file is not the column name.
        +

        Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

        +
        • true: The first row in the file is the column name.
        • false: The first row in the file is not the column name.
        -
        Table 6 SchemaMap

        Parameter

        +
        - - - - - - - -
        Table 6 SchemaMap

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        dest_name

        +

        dest_name

        String

        +

        String

        Name of the destination column.

        +

        Name of the destination column.

        src_name

        +

        src_name

        String

        +

        String

        Name of the source column.

        +

        Name of the source column.

        -
        Table 7 SourceInfo

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 7 SourceInfo

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        cluster_id

        +

        cluster_id

        String

        +

        String

        ID of an MRS cluster.

        +

        ID of an MRS cluster.

        cluster_mode

        +

        cluster_mode

        String

        +

        String

        Running mode of an MRS cluster. The options are as follows:

        -
        • 0: normal cluster
        • 1: security cluster
        +

        Running mode of an MRS cluster. The options are as follows:

        +
        • 0: normal cluster
        • 1: security cluster

        cluster_name

        +

        cluster_name

        String

        +

        String

        Name of an MRS cluster.

        +

        Name of an MRS cluster.

        database_name

        +

        database_name

        String

        +

        String

        Name of the database to which the table dataset is imported.

        +

        Name of the database to which the table dataset is imported.

        input

        +

        input

        String

        +

        String

        HDFS path of a table dataset.

        +

        HDFS path of a table dataset.

        ip

        +

        ip

        String

        +

        String

        IP address of your GaussDB(DWS) cluster.

        +

        IP address of your GaussDB(DWS) cluster.

        port

        +

        port

        String

        +

        String

        Port number of your GaussDB(DWS) cluster.

        +

        Port number of your GaussDB(DWS) cluster.

        queue_name

        +

        queue_name

        String

        +

        String

        DLI queue name of a table dataset.

        +

        DLI queue name of a table dataset.

        subnet_id

        +

        subnet_id

        String

        +

        String

        Subnet ID of an MRS cluster.

        +

        Subnet ID of an MRS cluster.

        table_name

        +

        table_name

        String

        +

        String

        Name of the table to which a table dataset is imported.

        +

        Name of the table to which a table dataset is imported.

        user_name

        +

        user_name

        String

        +

        String

        Username, which is mandatory for GaussDB(DWS) data.

        +

        Username, which is mandatory for GaussDB(DWS) data.

        user_password

        +

        user_password

        String

        +

        String

        User password, which is mandatory for GaussDB(DWS) data.

        +

        User password, which is mandatory for GaussDB(DWS) data.

        vpc_id

        +

        vpc_id

        String

        +

        String

        ID of the VPC where an MRS cluster resides.

        +

        ID of the VPC where an MRS cluster resides.

        -
        Table 8 Label

        Parameter

        +
        - - - - - - - - - - - - - -
        Table 8 Label

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        attributes

        +

        attributes

        Array of LabelAttribute objects

        +

        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.

        +

        Multi-dimensional attribute of a label. For example, if the label is music, attributes such as style and artist may be included.

        name

        +

        name

        String

        +

        String

        Label name.

        +

        Label name.

        property

        +

        property

        LabelProperty object

        +

        LabelProperty object

        Basic attribute key-value pair of a label, such as color and shortcut keys.

        +

        Basic attribute key-value pair of a label, such as color and shortcut keys.

        type

        +

        type

        Integer

        +

        Integer

        Label type. The options are as follows:

        -
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        +

        Label type. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        -
        Table 9 LabelProperty

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - -
        Table 9 LabelProperty

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        @modelarts:color

        +

        @modelarts:color

        String

        +

        String

        Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

        +

        Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

        @modelarts:default_shape

        +

        @modelarts:default_shape

        String

        +

        String

        Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

        -
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline
        +

        Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

        +
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline

        @modelarts:from_type

        +

        @modelarts:from_type

        String

        +

        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.

        +

        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

        +

        @modelarts:rename_to

        String

        +

        String

        Default attribute: The new name of the label.

        +

        Default attribute: The new name of the label.

        @modelarts:shortcut

        +

        @modelarts:shortcut

        String

        +

        String

        Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

        +

        Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

        @modelarts:to_type

        +

        @modelarts:to_type

        String

        +

        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.

        +

        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.

        -
        Table 10 AnnotationFile

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 10 AnnotationFile

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        create_time

        +

        create_time

        Long

        +

        Long

        Time when a sample is created.

        +

        Time when a sample is created.

        dataset_id

        +

        dataset_id

        String

        +

        String

        Dataset ID.

        +

        Dataset ID.

        depth

        +

        depth

        Integer

        +

        Integer

        Number of image sample channels.

        +

        Number of image sample channels.

        file_Name

        +

        file_Name

        String

        +

        String

        Sample name.

        +

        Sample name.

        file_id

        +

        file_id

        String

        +

        String

        Sample ID.

        +

        Sample ID.

        file_type

        +

        file_type

        String

        +

        String

        File type.

        +

        File type.

        height

        +

        height

        Integer

        +

        Integer

        Image sample height.

        +

        Image sample height.

        size

        +

        size

        Long

        +

        Long

        Image sample size.

        +

        Image sample size.

        tags

        +

        tags

        Map<String,String>

        +

        Map<String,String>

        Label information of a sample.

        +

        Label information of a sample.

        url

        +

        url

        String

        +

        String

        OBS address of the preview sample.

        +

        OBS address of the preview sample.

        width

        +

        width

        Integer

        +

        Integer

        Image sample width.

        +

        Image sample width.

        -
        Table 11 Field

        Parameter

        +
        - - - - - - - - - - - - - -
        Table 11 Field

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        description

        +

        description

        String

        +

        String

        Schema description.

        +

        Schema description.

        name

        +

        name

        String

        +

        String

        Schema name.

        +

        Schema name.

        schema_id

        +

        schema_id

        Integer

        +

        Integer

        Schema ID.

        +

        Schema ID.

        type

        +

        type

        String

        +

        String

        Schema value type.

        +

        Schema value type.

        -
        Table 12 DatasetVersion

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 12 DatasetVersion

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        add_sample_count

        +

        add_sample_count

        Integer

        +

        Integer

        Number of added samples.

        +

        Number of added samples.

        annotated_sample_count

        +

        annotated_sample_count

        Integer

        +

        Integer

        Number of samples with labeled versions.

        +

        Number of samples with labeled versions.

        annotated_sub_sample_count

        +

        annotated_sub_sample_count

        Integer

        +

        Integer

        Number of labeled subsamples.

        +

        Number of labeled subsamples.

        clear_hard_property

        +

        clear_hard_property

        Boolean

        +

        Boolean

        Whether to clear hard example properties during release. The options are as follows:

        -
        • true: Clear hard example properties. (Default value)
        • false: Do not clear hard example properties.
        +

        Whether to clear hard example properties during release. The options are as follows:

        +
        • true: Clear hard example properties. (Default value)
        • false: Do not clear hard example properties.

        code

        +

        code

        String

        +

        String

        Status code of a preprocessing task such as rotation and cropping.

        +

        Status code of a preprocessing task such as rotation and cropping.

        create_time

        +

        create_time

        Long

        +

        Long

        Time when a version is created.

        +

        Time when a version is created.

        crop

        +

        crop

        Boolean

        +

        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:

        -
        • true: Crop the image.
        • false: Do not crop the image. (Default value)
        +

        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:

        +
        • true: Crop the image.
        • false: Do not crop the image. (Default value)

        crop_path

        +

        crop_path

        String

        +

        String

        Path for storing cropped files.

        +

        Path for storing cropped files.

        crop_rotate_cache_path

        +

        crop_rotate_cache_path

        String

        +

        String

        Temporary directory for executing the rotation and cropping task.

        +

        Temporary directory for executing the rotation and cropping task.

        data_path

        +

        data_path

        String

        +

        String

        Path for storing data.

        +

        Path for storing data.

        data_statistics

        +

        data_statistics

        Map<String,Object>

        +

        Map<String,Object>

        Sample statistics on a dataset, including the statistics on sample metadata in JSON format.

        +

        Sample statistics on a dataset, including the statistics on sample metadata in JSON format.

        data_validate

        +

        data_validate

        Boolean

        +

        Boolean

        Whether data is validated by the validation algorithm before release. The options are as follows:

        -
        • true: The data has been validated.
        • false: The data has not been validated.
        +

        Whether data is validated by the validation algorithm before release. The options are as follows:

        +
        • true: The data has been validated.
        • false: The data has not been validated.

        deleted_sample_count

        +

        deleted_sample_count

        Integer

        +

        Integer

        Number of deleted samples.

        +

        Number of deleted samples.

        deletion_stats

        +

        deletion_stats

        Map<String,Integer>

        +

        Map<String,Integer>

        Deletion reason statistics.

        +

        Deletion reason statistics.

        description

        +

        description

        String

        +

        String

        Description of a version.

        +

        Description of a version.

        export_images

        +

        export_images

        Boolean

        +

        Boolean

        Whether to export images to the version output directory during release. The options are as follows:

        -
        • true: Export images to the version output directory.
        • false: Do not export images to the version output directory. (Default value)
        +

        Whether to export images to the version output directory during release. The options are as follows:

        +
        • true: Export images to the version output directory.
        • false: Do not export images to the version output directory. (Default value)

        extract_serial_number

        +

        extract_serial_number

        Boolean

        +

        Boolean

        Whether to parse the subsample number during release. The field is valid for the healthcare dataset. The options are as follows:

        -
        • true: Parse the subsample number.
        • false: Do not parse the subsample number. (Default value)
        +

        Whether to parse the subsample number during release. The field is valid for the healthcare dataset. The options are as follows:

        +
        • true: Parse the subsample number.
        • false: Do not parse the subsample number. (Default value)

        include_dataset_data

        +

        include_dataset_data

        Boolean

        +

        Boolean

        Whether to include the source data of a dataset during release. The options are as follows:

        -
        • true: The source data of a dataset is included.
        • false: The source data of a dataset is not included.
        +

        Whether to include the source data of a dataset during release. The options are as follows:

        +
        • true: The source data of a dataset is included.
        • false: The source data of a dataset is not included.

        is_current

        +

        is_current

        Boolean

        +

        Boolean

        Whether the current dataset version is used. The options are as follows:

        -
        • true: The current dataset version is used.
        • false: The current dataset version is not used.
        +

        Whether the current dataset version is used. The options are as follows:

        +
        • true: The current dataset version is used.
        • false: The current dataset version is not used.

        label_stats

        +

        label_stats

        Array of LabelStats objects

        +

        Array of LabelStats objects

        Label statistics list of a released version.

        +

        Label statistics list of a released version.

        label_type

        +

        label_type

        String

        +

        String

        Label type of a released version. The options are as follows:

        -
        • multi: Multi-label samples are included.
        • single: All samples are single-labeled.
        +

        Label type of a released version. The options are as follows:

        +
        • multi: Multi-label samples are included.
        • single: All samples are single-labeled.

        manifest_cache_input_path

        +

        manifest_cache_input_path

        String

        +

        String

        Input path for the manifest file cache during version release.

        +

        Input path for the manifest file cache during version release.

        manifest_path

        +

        manifest_path

        String

        +

        String

        Path for storing the manifest file with the released version.

        +

        Path for storing the manifest file with the released version.

        message

        +

        message

        String

        +

        String

        Task information recorded during release (for example, error information).

        +

        Task information recorded during release (for example, error information).

        modified_sample_count

        +

        modified_sample_count

        Integer

        +

        Integer

        Number of modified samples.

        +

        Number of modified samples.

        previous_annotated_sample_count

        +

        previous_annotated_sample_count

        Integer

        +

        Integer

        Number of labeled samples of parent versions.

        +

        Number of labeled samples of parent versions.

        previous_total_sample_count

        +

        previous_total_sample_count

        Integer

        +

        Integer

        Total samples of parent versions.

        +

        Total samples of parent versions.

        previous_version_id

        +

        previous_version_id

        String

        +

        String

        Parent version ID

        +

        Parent version ID

        processor_task_id

        +

        processor_task_id

        String

        +

        String

        ID of a preprocessing task such as rotation and cropping.

        +

        ID of a preprocessing task such as rotation and cropping.

        processor_task_status

        +

        processor_task_status

        Integer

        +

        Integer

        Status of a preprocessing task such as rotation and cropping. The options are as follows:

        -
        • 0: initialized
        • 1: running
        • 2: completed
        • 3: failed
        • 4: stopped
        • 5: timeout
        • 6: deletion failed
        • 7: stop failed
        +

        Status of a preprocessing task such as rotation and cropping. The options are as follows:

        +
        • 0: initialized
        • 1: running
        • 2: completed
        • 3: failed
        • 4: stopped
        • 5: timeout
        • 6: deletion failed
        • 7: stop failed

        remove_sample_usage

        +

        remove_sample_usage

        Boolean

        +

        Boolean

        Whether to clear the existing usage information of a dataset during release. The options are as follows:

        -
        • true: Clear the existing usage information of a dataset. (Default value)
        • false: Do not clear the existing usage information of a dataset.
        +

        Whether to clear the existing usage information of a dataset during release. The options are as follows:

        +
        • true: Clear the existing usage information of a dataset. (Default value)
        • false: Do not clear the existing usage information of a dataset.

        rotate

        +

        rotate

        Boolean

        +

        Boolean

        Whether to rotate the image. The options are as follows:

        -
        • true: Rotate the image.
        • false: Do not rotate the image. (Default value)
        +

        Whether to rotate the image. The options are as follows:

        +
        • true: Rotate the image.
        • false: Do not rotate the image. (Default value)

        rotate_path

        +

        rotate_path

        String

        +

        String

        Path for storing the rotated file.

        +

        Path for storing the rotated file.

        sample_state

        +

        sample_state

        String

        +

        String

        Sample status. The options are as follows:

        -
        • ALL: labeled
        • NONE: unlabeled
        • UNCHECK: pending acceptance
        • ACCEPTED: accepted
        • REJECTED: rejected
        • UNREVIEWED: pending review
        • REVIEWED: reviewed
        • WORKFORCE_SAMPLED: sampled
        • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
        • WORKFORCE_SAMPLED_CHECKED: sampling checked
        • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
        • WORKFORCE_SAMPLED_REJECTED: sampling rejected
        • AUTO_ANNOTATION: to be confirmed
        +

        Sample status. The options are as follows:

        +
        • ALL: labeled
        • NONE: unlabeled
        • UNCHECK: pending acceptance
        • ACCEPTED: accepted
        • REJECTED: rejected
        • UNREVIEWED: pending review
        • REVIEWED: reviewed
        • WORKFORCE_SAMPLED: sampled
        • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
        • WORKFORCE_SAMPLED_CHECKED: sampling checked
        • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
        • WORKFORCE_SAMPLED_REJECTED: sampling rejected
        • AUTO_ANNOTATION: to be confirmed

        status

        +

        status

        Integer

        +

        Integer

        Status of a dataset version. The options are as follows:

        -
        • 0: creating
        • 1: running
        • 2: deleting
        • 3: deleted
        • 4: error
        +

        Status of a dataset version. The options are as follows:

        +
        • 0: creating
        • 1: running
        • 2: deleting
        • 3: deleted
        • 4: error

        tags

        +

        tags

        Array of strings

        +

        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"].

        +

        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

        +

        task_type

        Integer

        +

        Integer

        Labeling task type of the released version, which is the same as the dataset type.

        +

        Labeling task type of the released version, which is the same as the dataset type.

        total_sample_count

        +

        total_sample_count

        Integer

        +

        Integer

        Total number of version samples.

        +

        Total number of version samples.

        total_sub_sample_count

        +

        total_sub_sample_count

        Integer

        +

        Integer

        Total number of subsamples generated from the parent samples.

        +

        Total number of subsamples generated from the parent samples.

        train_evaluate_sample_ratio

        +

        train_evaluate_sample_ratio

        String

        +

        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.

        +

        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

        +

        update_time

        Long

        +

        Long

        Time when a version is updated.

        +

        Time when a version is updated.

        version_format

        +

        version_format

        String

        +

        String

        Format of a dataset version. The options are as follows:

        -
        • Default: default format
        • CarbonData: CarbonData (supported only by table datasets)
        • CSV: CSV
        +

        Format of a dataset version. The options are as follows:

        +
        • Default: default format
        • CarbonData: CarbonData (supported only by table datasets)
        • CSV: CSV

        version_id

        +

        version_id

        String

        +

        String

        Dataset version ID.

        +

        Dataset version ID.

        version_name

        +

        version_name

        String

        +

        String

        Dataset version name.

        +

        Dataset version name.

        with_column_header

        +

        with_column_header

        Boolean

        +

        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:

        -
        • true: The first row in the released CSV file is a column name.
        • false: The first row in the released CSV file is not a column name.
        +

        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:

        +
        • true: The first row in the released CSV file is a column name.
        • false: The first row in the released CSV file is not a column name.
        -
        Table 13 LabelStats

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - -
        Table 13 LabelStats

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        attributes

        +

        attributes

        Array of LabelAttribute objects

        +

        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.

        +

        Multi-dimensional attribute of a label. For example, if the label is music, attributes such as style and artist may be included.

        count

        +

        count

        Integer

        +

        Integer

        Number of labels.

        +

        Number of labels.

        name

        +

        name

        String

        +

        String

        Label name.

        +

        Label name.

        property

        +

        property

        LabelProperty object

        +

        LabelProperty object

        Basic attribute key-value pair of a label, such as color and shortcut keys.

        +

        Basic attribute key-value pair of a label, such as color and shortcut keys.

        sample_count

        +

        sample_count

        Integer

        +

        Integer

        Number of samples containing the label.

        +

        Number of samples containing the label.

        type

        +

        type

        Integer

        +

        Integer

        Label type. The options are as follows:

        -
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        +

        Label type. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        -
        Table 14 LabelAttribute

        Parameter

        +
        - - - - - - - - - - - - - - - - -
        Table 14 LabelAttribute

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        default_value

        +

        default_value

        String

        +

        String

        Default value of a label attribute.

        +

        Default value of a label attribute.

        id

        +

        id

        String

        +

        String

        Label attribute ID.

        +

        Label attribute ID.

        name

        +

        name

        String

        +

        String

        Label attribute name.

        +

        Label attribute name.

        type

        +

        type

        String

        +

        String

        Label attribute type. The options are as follows:

        -
        • text: text
        • select: single-choice drop-down list
        +

        Label attribute type. The options are as follows:

        +
        • text: text
        • select: single-choice drop-down list

        values

        +

        values

        Array of LabelAttributeValue objects

        +

        Array of LabelAttributeValue objects

        List of label attribute values.

        +

        List of label attribute values.

        -
        Table 15 LabelAttributeValue

        Parameter

        +
        - - - - - - - -
        Table 15 LabelAttributeValue

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        id

        +

        id

        String

        +

        String

        Label attribute value ID.

        +

        Label attribute value ID.

        value

        +

        value

        String

        +

        String

        Label attribute value.

        +

        Label attribute value.

        -
        Table 16 WorkforceDescriptor

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 16 WorkforceDescriptor

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        current_task_id

        +

        current_task_id

        String

        +

        String

        ID of a team labeling task.

        +

        ID of a team labeling task.

        current_task_name

        +

        current_task_name

        String

        +

        String

        Name of a team labeling task.

        +

        Name of a team labeling task.

        reject_num

        +

        reject_num

        Integer

        +

        Integer

        Number of rejected samples.

        +

        Number of rejected samples.

        repetition

        +

        repetition

        Integer

        +

        Integer

        Number of persons who label each sample. The minimum value is 1.

        +

        Number of persons who label each sample. The minimum value is 1.

        is_synchronize_auto_labeling_data

        +

        is_synchronize_auto_labeling_data

        Boolean

        +

        Boolean

        Whether to synchronously update auto labeling data. The options are as follows:

        -
        • true: Update auto labeling data synchronously.
        • false: Do not update auto labeling data synchronously.
        +

        Whether to synchronously update auto labeling data. The options are as follows:

        +
        • true: Update auto labeling data synchronously.
        • false: Do not update auto labeling data synchronously.

        is_synchronize_data

        +

        is_synchronize_data

        Boolean

        +

        Boolean

        Whether to synchronize updated data, such as uploading files, synchronizing data sources, and assigning imported unlabeled files to team members. The options are as follows:

        -
        • true: Synchronize updated data to team members.
        • false: Do not synchronize updated data to team members.
        +

        Whether to synchronize updated data, such as uploading files, synchronizing data sources, and assigning imported unlabeled files to team members. The options are as follows:

        +
        • true: Synchronize updated data to team members.
        • false: Do not synchronize updated data to team members.

        workers

        +

        workers

        Array of Worker objects

        +

        Array of Worker objects

        List of labeling team members.

        +

        List of labeling team members.

        workforce_id

        +

        workforce_id

        String

        +

        String

        ID of a labeling team.

        +

        ID of a labeling team.

        workforce_name

        +

        workforce_name

        String

        +

        String

        Name of a labeling team.

        +

        Name of a labeling team.

        -
        Table 17 Worker

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 17 Worker

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        create_time

        +

        create_time

        Long

        +

        Long

        Creation time.

        +

        Creation time.

        description

        +

        description

        String

        +

        String

        Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        +

        Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        email

        +

        email

        String

        +

        String

        Email address of a labeling team member.

        +

        Email address of a labeling team member.

        role

        +

        role

        Integer

        +

        Integer

        Role. The options are as follows:

        -
        • 0: labeling personnel
        • 1: reviewer
        • 2: team administrator
        • 3: dataset owner
        +

        Role. The options are as follows:

        +
        • 0: labeling personnel
        • 1: reviewer
        • 2: team administrator
        • 3: dataset owner

        status

        +

        status

        Integer

        +

        Integer

        Current login status of a labeling team member. The options are as follows:

        -
        • 0: The invitation email has not been sent.
        • 1: The invitation email has been sent but the user has not logged in.
        • 2: The user has logged in.
        • 3: The labeling team member has been deleted.
        +

        Current login status of a labeling team member. The options are as follows:

        +
        • 0: The invitation email has not been sent.
        • 1: The invitation email has been sent but the user has not logged in.
        • 2: The user has logged in.
        • 3: The labeling team member has been deleted.

        update_time

        +

        update_time

        Long

        +

        Long

        Update time.

        +

        Update time.

        worker_id

        +

        worker_id

        String

        +

        String

        ID of a labeling team member.

        +

        ID of a labeling team member.

        workforce_id

        +

        workforce_id

        String

        +

        String

        ID of a labeling team.

        +

        ID of a labeling team.

        -

        Example Requests

        Querying the Dataset List

        -
        GET https://{endpoint}/v2/{project_id}/datasets?offset=0&limit=10&sort_by=create_time&order=desc&dataset_type=0&file_preview=true
        +

        Example Requests

        Querying the Dataset List

        +
        GET https://{endpoint}/v2/{project_id}/datasets?offset=0&limit=10&sort_by=create_time&order=desc&dataset_type=0&file_preview=true
        -

        Example Responses

        Status code: 200

        -

        OK

        -
        {
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
           "total_number" : 1,
           "datasets" : [ {
             "dataset_id" : "gfghHSokody6AJigS5A",
        @@ -1677,66 +1676,66 @@
             "dataset_version" : "v1",
             "content_labeling" : true,
             "samples" : [ {
        -      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/15.jpg?AccessKeyId=vprCCTxxxxxxxxxxbXr&Expires=1606100112&Signature=tuUo9jl6lqoMKAwNBz5g8dxO%2FdE%3D",
        +      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/15.jpg?AccessKeyId=vprCCTY1NmHudlvC0bXr&Expires=1606100112&Signature=tuUo9jl6lqoMKAwNBz5g8dxO%2FdE%3D",
               "create_time" : 1605690596035
             }, {
        -      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/8.jpg?AccessKeyId=vprCCTxxxxxxxxxxbXr&Expires=1606100112&Signature=NITOdBnkUXtdnKuEgDzZpkQzNfM%3D",
        +      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/8.jpg?AccessKeyId=vprCCTY1NmHudlvC0bXr&Expires=1606100112&Signature=NITOdBnkUXtdnKuEgDzZpkQzNfM%3D",
               "create_time" : 1605690596046
             }, {
        -      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/9.jpg?AccessKeyId=vprCCTxxxxxxxxxxbXr&Expires=1606100112&Signature=%2BwUo1BL38%2F2d7p7anPi4fNzm1VU%3D",
        +      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/9.jpg?AccessKeyId=vprCCTY1NmHudlvC0bXr&Expires=1606100112&Signature=%2BwUo1BL38%2F2d7p7anPi4fNzm1VU%3D",
               "create_time" : 1605690596050
             }, {
        -      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/7.jpg?AccessKeyId=vprCCTxxxxxxxxxxbXr&Expires=1606100112&Signature=tOrHfcWo%2FEJ0wRzfi1M5Wk2MrXg%3D",
        +      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/7.jpg?AccessKeyId=vprCCTY1NmHudlvC0bXr&Expires=1606100112&Signature=tOrHfcWo%2FEJ0wRzfi1M5Wk2MrXg%3D",
               "create_time" : 1605690596043
             } ],
             "files" : [ {
        -      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/15.jpg?AccessKeyId=vprCCTxxxxxxxxxxbXr&Expires=1606100112&Signature=tuUo9jl6lqoMKAwNBz5g8dxO%2FdE%3D",
        +      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/15.jpg?AccessKeyId=vprCCTY1NmHudlvC0bXr&Expires=1606100112&Signature=tuUo9jl6lqoMKAwNBz5g8dxO%2FdE%3D",
               "create_time" : 1605690596035
             }, {
        -      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/8.jpg?AccessKeyId=vprCCTxxxxxxxxxxbXr&Expires=1606100112&Signature=NITOdBnkUXtdnKuEgDzZpkQzNfM%3D",
        +      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/8.jpg?AccessKeyId=vprCCTY1NmHudlvC0bXr&Expires=1606100112&Signature=NITOdBnkUXtdnKuEgDzZpkQzNfM%3D",
               "create_time" : 1605690596046
             }, {
        -      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/9.jpg?AccessKeyId=vprCCTxxxxxxxxxxbXr&Expires=1606100112&Signature=%2BwUo1BL38%2F2d7p7anPi4fNzm1VU%3D",
        +      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/9.jpg?AccessKeyId=vprCCTY1NmHudlvC0bXr&Expires=1606100112&Signature=%2BwUo1BL38%2F2d7p7anPi4fNzm1VU%3D",
               "create_time" : 1605690596050
             }, {
        -      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/7.jpg?AccessKeyId=vprCCTxxxxxxxxxxbXr&Expires=1606100112&Signature=tOrHfcWo%2FEJ0wRzfi1M5Wk2MrXg%3D",
        +      "url" : "https://test-obs.obs.xxx.com:443/classify/input/catRabbit4/7.jpg?AccessKeyId=vprCCTY1NmHudlvC0bXr&Expires=1606100112&Signature=tOrHfcWo%2FEJ0wRzfi1M5Wk2MrXg%3D",
               "create_time" : 1605690596043
             } ]
           } ]
         }
        -

        Status Codes

        -

        Status Code

        +

        Status Codes

        +
        - - - - - - - - -

        Status Code

        Description

        +

        Description

        200

        +

        200

        OK

        +

        OK

        401

        +

        401

        Unauthorized

        +

        Unauthorized

        403

        +

        403

        Forbidden

        +

        Forbidden

        404

        +

        404

        Not Found

        +

        Not Found

        -

        Error Codes

        See Error Codes.

        +

        Error Codes

        See Error Codes.

        diff --git a/docs/modelarts/api-ref/ListDynamicMount.html b/docs/modelarts/api-ref/ListDynamicMount.html new file mode 100644 index 00000000..8981d66b --- /dev/null +++ b/docs/modelarts/api-ref/ListDynamicMount.html @@ -0,0 +1,197 @@ + + +

        Obtaining the Notebook Instances with OBS Storage Mounted

        +

        Function

        This API is used to obtain the notebook instances with OBS storage mounted.

        +
        +

        Constraints

        None

        +
        +

        URI

        GET /v1/{project_id}/notebooks/{instance_id}/storage

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        instance_id

        +

        Yes

        +

        String

        +

        Notebook instance ID.

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        current

        +

        Integer

        +

        Current page

        +

        data

        +

        Array of DataVolumesRes objects

        +

        Data

        +

        pages

        +

        Integer

        +

        Total pages

        +

        size

        +

        Integer

        +

        Number of records on each page

        +

        total

        +

        Long

        +

        Total records

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 3 DataVolumesRes

        Parameter

        +

        Type

        +

        Description

        +

        category

        +

        String

        +

        Storage category. Options: - OBS

        +

        id

        +

        String

        +

        ID of the instance with OBS storage mounted.

        +

        mount_path

        +

        String

        +

        Path where OBS storage is mounted to a notebook instance.

        +

        status

        +

        String

        +

        Status of OBS storage to be mounted. Options: \r\n-MOUNTING: OBS storage is being mounted. \r\n-MOUNT_FAILED: OBS storage fails to be mounted. \r\n-MOUNTED: OBS storage is mounted. \r\n-UNMOUNTING: OBS storage is being unmounted.\r\n-UNMOUNT_FAILED: OBS storage fails to be unmounted.\r\n-UNMOUNTED: OBS is unmounted.

        +

        uri

        +

        String

        +

        OBS parallel file system path.

        +
        +
        +
        +

        Example Requests

        None

        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "current" : 1,
        +  "data" : [ {
        +    "id" : "91dd2d3f-2d92-475f-a375-04636af26cc9",
        +    "category" : "OBSFS",
        +    "mount_path" : "/data/wang/",
        +    "uri" : "obs://authoring-test/wang/",
        +    "status" : "MOUNTED"
        +  } ],
        +  "pages" : 1,
        +  "size" : 1,
        +  "total" : 1
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListImage.html b/docs/modelarts/api-ref/ListImage.html new file mode 100644 index 00000000..ae61302c --- /dev/null +++ b/docs/modelarts/api-ref/ListImage.html @@ -0,0 +1,560 @@ + + +

        Querying Supported Images

        +

        Function

        This API is used to query all images by page based on specified conditions.

        +
        +

        Constraints

        None

        +
        +

        URI

        GET /v1/{project_id}/images

        + +
        + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        limit

        +

        No

        +

        Integer

        +

        Number of records on each page.

        +

        name

        +

        No

        +

        String

        +

        Image name.

        +

        namespace

        +

        No

        +

        String

        +

        Image organization.

        +

        offset

        +

        No

        +

        Integer

        +

        Start offset of the records on each page.

        +

        sort_dir

        +

        No

        +

        String

        +

        Sorting order. The options are ASC (ascending order) and DESC (descending order).

        +

        sort_key

        +

        No

        +

        String

        +

        Sorting fields. Separate multiple fields with commas (,).

        +

        type

        +

        No

        +

        String

        +

        Image type. Options: - BUILD_IN: built-in system image.- DEDICATED: image saved by the user.

        +

        workspace_id

        +

        No

        +

        String

        +

        Workspace ID. If no workspaces are available, the default value is 0.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        current

        +

        Integer

        +

        Current page

        +

        data

        +

        Array of Image objects

        +

        Data

        +

        pages

        +

        Integer

        +

        Total pages

        +

        size

        +

        Integer

        +

        Number of records on each page

        +

        total

        +

        Long

        +

        Total records

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 4 Image

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Image ID

        +

        name

        +

        String

        +

        Image name.

        +

        swr_path

        +

        String

        +

        SWR image address

        +

        type

        +

        String

        +

        Image type. Options: - BUILD_IN: built-in system image- DEDICATED: image saved by the user

        +
        +
        +
        +

        Example Requests

        None

        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "current" : 0,
        +  "data" : [ {
        +    "arch" : "x86_64",
        +    "description" : "CPU and GPU general algorithm development and training, preconfigured with AI engine PyTorch1.4",
        +    "dev_services" : [ "NOTEBOOK", "SSH" ],
        +    "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54099",
        +    "name" : "pytorch1.4-cuda10.1-cudnn7-ubuntu18.04",
        +    "resource_categories" : [ "CPU", "GPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-pytorch-1.4-kernel-cp37:3.3.3-B003-20211220",
        +    "tag" : "3.3.3-B003-20211220",
        +    "type" : "BUILD_IN",
        +    "update_at" : 1632415390765,
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "description" : "CPU and GPU general algorithm development and training, preconfigured with AI engine TensorFlow2.1",
        +    "dev_services" : [ "NOTEBOOK", "SSH" ],
        +    "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54100",
        +    "name" : "tensorflow2.1-cuda10.1-cudnn7-ubuntu18.04",
        +    "resource_categories" : [ "CPU", "GPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-tensorflow-2.1-kernel-cp37:3.3.3-B005-20211227",
        +    "tag" : "3.3.3-B005-20211227",
        +    "type" : "BUILD_IN",
        +    "update_at" : 1632415555548,
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "aarch64",
        +    "description" : "notebook2.0-mul-kernel-arm-ascend-cp37",
        +    "dev_services" : [ "NOTEBOOK", "SSH" ],
        +    "id" : "1d925a2e-dd3f-4f7c-ba15-1e5cb23a6b25",
        +    "name" : "notebook2.0-mul-kernel-arm-ascend-cp37",
        +    "resource_categories" : [ ],
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-mul-kernel-arm-ascend-cp37:3.3.2-c79_release_v3",
        +    "tag" : "3.3.2-c79_release_v3",
        +    "type" : "BUILD_IN",
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "description" : "GPU algorithm development and training, preconfigured with the AI engine MindSpore-GPU",
        +    "dev_services" : [ "NOTEBOOK", "SSH" ],
        +    "id" : "89de30ec-6871-4f22-84af-be37ef28335d",
        +    "name" : "mindspore1.2.0-cuda10.1-cudnn7-ubuntu18.04",
        +    "resource_categories" : [ "GPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-mindspore-kernel-gpu-cp37:3.3.3-B003-20211220",
        +    "tag" : "3.3.3-B003-20211220",
        +    "type" : "BUILD_IN",
        +    "update_at" : 1632502757168,
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "description" : "CPU algorithm development and training, preconfigured with the AI engine MindSpore-CPU",
        +    "dev_services" : [ "NOTEBOOK", "SSH" ],
        +    "id" : "65f636a0-56cf-49df-b941-7d2a07ba8c8c",
        +    "name" : "mindspore1.2.0-openmpi2.1.1-ubuntu18.04",
        +    "resource_categories" : [ "CPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-mindspore-kernel-cpu-cp37:3.3.3-B003-20211220",
        +    "tag" : "3.3.3-B003-20211220",
        +    "type" : "BUILD_IN",
        +    "update_at" : 1632415234204,
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "description" : "CPU algorithm development and training, including the MLStudio tool for graphical ML algorithm development, and preconfigured PySpark 2.3.2",
        +    "dev_services" : [ "NOTEBOOK", "SSH" ],
        +    "id" : "0e5f9a41-c9c2-4d9a-a190-4e1b17a7782f",
        +    "name" : "mlstudio-pyspark2.3.2-ubuntu16.04",
        +    "resource_categories" : [ "CPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-mlstudio-cp36:3.3.1.9",
        +    "tag" : "3.3.1.9",
        +    "type" : "BUILD_IN",
        +    "update_at" : 1632415063632,
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "description" : "CPU algorithm development and training, including the MLStudio tool for graphical ML algorithm development, and preconfigured PySpark 2.4.5",
        +    "dev_services" : [ "NOTEBOOK" ],
        +    "id" : "0b2d0728-4c01-11ec-994f-001a7dda7111",
        +    "name" : "mlstudio-pyspark2.4.5-ubuntu18.04",
        +    "resource_categories" : [ "CPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-mlstudio-cp37:3.3.3-B003-20211220",
        +    "tag" : "3.3.3-B003-20211220",
        +    "type" : "BUILD_IN",
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "description" : "AI inference application development, preconfigured ModelBox, AI engine PyTorch, TensorRT and TensorFlow, only SSH connection supported.",
        +    "dev_services" : [ "AI_FLOW", "SSH" ],
        +    "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54101",
        +    "name" : "modelbox1.1.1.5-tensorrt7.1.3-pytorch1.9.1-cuda10.2-cudnn8-euler2.9.6",
        +    "resource_categories" : [ "GPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/modelarts-aiflow-gpu-x86:1.1.2.1",
        +    "tag" : "1.1.2.1",
        +    "type" : "BUILD_IN",
        +    "update_at" : 1636451722844,
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "aarch64",
        +    "description" : "AI inference application development, preconfigured ModelBox and AI engine MindSpore, only SSH connection supported.",
        +    "dev_services" : [ "AI_FLOW", "SSH" ],
        +    "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54102",
        +    "name" : "modelbox-mindspore5.1.5-cann20.2-euler2.9.5-aarch64",
        +    "resource_categories" : [ "ASCEND" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/modelarts_aiflow_ascend_aarch64:1.0.4.1",
        +    "tag" : "1.0.4.1",
        +    "type" : "BUILD_IN",
        +    "update_at" : 1638425872501,
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "aarch64",
        +    "description" : "Ascend+ARM algorithm development and training. TensorFlow and MindSpore are preset in the AI engine.",
        +    "dev_services" : [ "NOTEBOOK", "SSH" ],
        +    "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54097",
        +    "name" : "tensorflow1.15-mindspore1.2.0-cann20.2-euler2.8-aarch64",
        +    "resource_categories" : [ "CPU", "ASCEND" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-mul-kernel-arm-ascend-cp37:3.3.2-c79_release_v3",
        +    "tag" : "3.3.2-c79_release_v3",
        +    "type" : "BUILD_IN",
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "aarch64",
        +    "description" : "Ascend+ARM algorithm development and training. TensorFlow and MindSpore are preset in the AI engine.",
        +    "dev_services" : [ "NOTEBOOK", "SSH" ],
        +    "id" : "59a6e9f5-93c0-44dd-85b0-82f390c5d53b",
        +    "name" : "tensorflow1.15-mindspore1.3.0-cann20.2-euler2.8-aarch64",
        +    "resource_categories" : [ "ASCEND" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-mul-kernel-arm-ascend-cp37:3.3.2-c79_release_v3",
        +    "tag" : "3.3.2-c79_release_v3",
        +    "type" : "BUILD_IN",
        +    "update_at" : 1632470275633,
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "aarch64",
        +    "description" : "Ascend operator development. The professional operator development tool MindStudio is preconfigured, only SSH connection supported.",
        +    "dev_services" : [ "SSH" ],
        +    "id" : "42dbf97e-5e26-4d7f-a836-193ffc3fa78e",
        +    "name" : "mindstudio3.0.2-ascend910-cann3.3.0-ubuntu18.04-aarch64",
        +    "resource_categories" : [ "ASCEND" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/mindstudio-modelarts-image:0830",
        +    "tag" : "0830",
        +    "type" : "BUILD_IN",
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "description" : "pytorch_1.4-move-modelarts_develop",
        +    "dev_services" : [ "NOTEBOOK" ],
        +    "id" : "9dcaa52c-5bc8-4030-96a7-62f099ec2003",
        +    "name" : "pytorch_1.4-move-modelarts_develop",
        +    "resource_categories" : [ "CPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-pytorch-1-4-kernel-cp37:devel-pytorch_1.4-move-modelarts_develop-v4",
        +    "tag" : "devel-pytorch_1.4-move-modelarts_develop-v4",
        +    "type" : "BUILD_IN",
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "description" : "tensorflow-1.13-cuda10.0",
        +    "dev_services" : [ "NOTEBOOK" ],
        +    "id" : "34644333-e2f0-4fa3-915f-7c783ddc004d",
        +    "name" : "tensorflow-1.13-cuda10.0",
        +    "resource_categories" : [ "GPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-tensorflow-1.13-kernel-cp37:3.3.1.release",
        +    "tag" : "3.3.1.release",
        +    "type" : "BUILD_IN",
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "description" : "CPU and GPU general algorithm development and training, preconfigured with AI engine PyTorch1.8",
        +    "dev_services" : [ "NOTEBOOK", "SSH" ],
        +    "id" : "278e88d1-5b71-4766-8502-b3ba72e824d9",
        +    "name" : "pytorch1.8-cuda10.2-cudnn7-ubuntu18.04",
        +    "resource_categories" : [ "CPU", "GPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-pytorch-1.8-kernel-cp37:3.3.3-B003-20211220",
        +    "tag" : "3.3.3-B003-20211220",
        +    "type" : "BUILD_IN",
        +    "update_at" : 1638234504492,
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "description" : "MXNet-1.2.1, PySpark-2.3.2, Pytorch-1.0.0, TensorFlow-1.13.1, TensorFlow-1.8, XGBoost-Sklearn",
        +    "dev_services" : [ ],
        +    "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54091",
        +    "name" : "notebook2.0-mul-kernel-cpu-cp36",
        +    "resource_categories" : [ "GPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-mul-kernel-gpu-cp36:3.3.3-B003-20211220",
        +    "tag" : "3.3.3-B003-20211220",
        +    "type" : "BUILD_IN",
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "description" : "GPU algorithm development and training, preconfigured with AI engine TensorFlow1.13.1",
        +    "dev_services" : [ "NOTEBOOK", "SSH" ],
        +    "id" : "b80bbf3d-a7af-42f6-ad12-33ff9116ab0d",
        +    "name" : "tensorflow1.13-cuda10.0-cudnn7-ubuntu18.04",
        +    "resource_categories" : [ "GPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-tensorflow-1.13-kernel-cp37:3.3.3-B003-20211220",
        +    "tag" : "3.3.3-B003-20211220",
        +    "type" : "BUILD_IN",
        +    "update_at" : 1638234923985,
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "description" : "user_define_base",
        +    "dev_services" : [ "NOTEBOOK", "SSH" ],
        +    "id" : "e2f03e58-b743-41fb-bd18-00ba814fbe82",
        +    "name" : "user_define_base",
        +    "resource_categories" : [ "CPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/user_defined_base:ubuntu_18.04-x86_64-20211028190608-439572b",
        +    "tag" : "ubuntu_18.04-x86_64-20211028190608-439572b",
        +    "type" : "BUILD_IN",
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "description" : "user_define_base_cuda10.2",
        +    "dev_services" : [ "NOTEBOOK", "SSH" ],
        +    "id" : "ee8e6602-5462-43ec-ac84-a08a78e41cfb",
        +    "name" : "user_define_base_cuda10.2",
        +    "resource_categories" : [ "GPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/user_defined_base:cuda_10.2-ubuntu_18.04-x86_64-20211028190608-439572b",
        +    "tag" : "cuda_10.2-ubuntu_18.04-x86_64-20211028190608-439572b",
        +    "type" : "BUILD_IN",
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "description" : "MXNet-1.2.1, PySpark-2.3.2, Pytorch-1.0.0, TensorFlow-1.13.1, TensorFlow-1.8, XGBoost-Sklearn",
        +    "dev_services" : [ "NOTEBOOK", "SSH" ],
        +    "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54090",
        +    "name" : "notebook2.0-mul-kernel-cpu-cp36",
        +    "resource_categories" : [ "CPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-mul-kernel-cpu-cp36:3.3.3-B003-20211220",
        +    "tag" : "3.3.3-B003-20211220",
        +    "type" : "BUILD_IN",
        +    "update_at" : 1604442650857,
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "create_at" : 1615264782906,
        +    "description" : "CPU operations research development, preconfigured with cylp, cbcpy, ortools, cplex(community).",
        +    "dev_services" : [ "NOTEBOOK", "SSH" ],
        +    "id" : "daf39542-ebe5-4073-a3a4-353efd519691",
        +    "name" : "cylp0.91.4-cbcpy2.10-ortools9.0-cplex20.1.0-ubuntu18.04",
        +    "namespace" : "rl-dev",
        +    "resource_categories" : [ "CPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/rl-dev/or-cpu:1.0.8",
        +    "tag" : "1.0.8",
        +    "type" : "BUILD_IN",
        +    "update_at" : 1615404250789,
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "description" : "CPU and GPU algorithm development and training, preconfigured with AI engine ray for reinforcement learning.",
        +    "dev_services" : [ "NOTEBOOK" ],
        +    "id" : "706e03fb-650b-44da-a3ba-6191ba7e62c7",
        +    "name" : "rlstudio1.0.0-ray1.3.0-cuda10.1-ubuntu18.04 ",
        +    "resource_categories" : [ "CPU", "GPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-rl-1.0.0-kernel-cp37:rl-v220211130",
        +    "tag" : "rl-v220211130",
        +    "type" : "BUILD_IN",
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "dev_services" : [ "NOTEBOOK" ],
        +    "id" : "1d1b1327-b243-425b-ad81-2689584c1acc",
        +    "name" : "mls-feature-engineering",
        +    "resource_categories" : [ "CPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-mul-kernel-mls-feature-engineering-cpu-py37:3.2.01090103",
        +    "tag" : "3.2.01090103",
        +    "type" : "BUILD_IN",
        +    "workspace_id" : "0"
        +  }, {
        +    "arch" : "x86_64",
        +    "dev_services" : [ ],
        +    "id" : "88bd7bcd-0c91-45b2-ad0e-ef65553d19c5",
        +    "name" : "dls-feature-engineering",
        +    "resource_categories" : [ "CPU" ],
        +    "status" : "ACTIVE",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-mul-kernel-dls-feature-engineering-cpu-py37:2.0.109",
        +    "tag" : "2.0.109",
        +    "type" : "BUILD_IN",
        +    "workspace_id" : "0"
        +  } ],
        +  "pages" : 1,
        +  "size" : 200,
        +  "total" : 28
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListImportTasks.html b/docs/modelarts/api-ref/ListImportTasks.html index 79149fe3..e33171a5 100644 --- a/docs/modelarts/api-ref/ListImportTasks.html +++ b/docs/modelarts/api-ref/ListImportTasks.html @@ -1,512 +1,512 @@

        Querying the Dataset Import Task List

        -

        Function

        This API is used to query the dataset import task list by page.

        +

        Function

        This API is used to query the dataset import task list by page.

        -

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/import-tasks

        +

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/import-tasks

        -
        Table 1 Path Parameters

        Parameter

        +
        - - - - - - - - - - -
        Table 1 Path Parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        dataset_id

        +

        dataset_id

        Yes

        +

        Yes

        String

        +

        String

        Dataset ID.

        +

        Dataset ID.

        project_id

        +

        project_id

        Yes

        +

        Yes

        String

        +

        String

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        -
        Table 2 Query Parameters

        Parameter

        +
        - - - - - - - - - - -
        Table 2 Query Parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        limit

        +

        limit

        No

        +

        No

        Integer

        +

        Integer

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

        +

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

        offset

        +

        offset

        No

        +

        No

        Integer

        +

        Integer

        Start page of the paging list. The default value is 0.

        +

        Start page of the paging list. The default value is 0.

        -

        Request Parameters

        None

        +

        Request Parameters

        None

        -

        Response Parameters

        Status code: 200

        +

        Response Parameters

        Status code: 200

        -
        Table 3 Response body parameters

        Parameter

        +
        - - - - - - - -
        Table 3 Response body parameters

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        import_tasks

        +

        import_tasks

        Array of ImportTaskStatusResp objects

        +

        Array of ImportTaskStatusResp objects

        List of import tasks.

        +

        List of import tasks.

        total_count

        +

        total_count

        Integer

        +

        Integer

        Number of import tasks.

        +

        Number of import tasks.

        -
        Table 4 ImportTaskStatusResp

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 4 ImportTaskStatusResp

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        annotated_sample_count

        +

        annotated_sample_count

        Long

        +

        Long

        Number of labeled samples.

        +

        Number of labeled samples.

        create_time

        +

        create_time

        Long

        +

        Long

        Time when a task is created.

        +

        Time when a task is created.

        data_source

        +

        data_source

        DataSource object

        +

        DataSource object

        Data source.

        +

        Data source.

        dataset_id

        +

        dataset_id

        String

        +

        String

        Dataset ID.

        +

        Dataset ID.

        elapsed_time

        +

        elapsed_time

        Long

        +

        Long

        Task running time, in seconds.

        +

        Task running time, in seconds.

        error_code

        +

        error_code

        String

        +

        String

        Error code.

        +

        Error code.

        error_msg

        +

        error_msg

        String

        +

        String

        Error message.

        +

        Error message.

        file_statistics

        +

        file_statistics

        FileCopyProgress object

        +

        FileCopyProgress object

        Progress of file copy.

        +

        Progress of file copy.

        finished_file_count

        +

        finished_file_count

        Long

        +

        Long

        Number of files that have been transferred.

        +

        Number of files that have been transferred.

        finished_file_size

        +

        finished_file_size

        Long

        +

        Long

        Size of the file that has been transferred, in bytes.

        +

        Size of the file that has been transferred, in bytes.

        import_path

        +

        import_path

        String

        +

        String

        OBS path or manifest path to be imported.

        -
        • When importing a manifest file, ensure that the path is accurate to the manifest file.
        • When a path is imported as a directory, the dataset type can only support image classification, object detection, text classification, or sound classification.
        +

        OBS path or manifest path to be imported.

        +
        • When importing a manifest file, ensure that the path is accurate to the manifest file.
        • When a path is imported as a directory, the dataset type can only support image classification, object detection, text classification, or sound classification.

        import_type

        +

        import_type

        Integer

        +

        Integer

        Import mode. The options are as follows:

        -
        • 0: Import by directory.
        • 1: Import by manifest file.
        +

        Import mode. The options are as follows:

        +
        • 0: Import by directory.
        • 1: Import by manifest file.

        imported_sample_count

        +

        imported_sample_count

        Long

        +

        Long

        Number of imported samples.

        +

        Number of imported samples.

        imported_sub_sample_count

        +

        imported_sub_sample_count

        Long

        +

        Long

        Number of imported subsamples.

        +

        Number of imported subsamples.

        processor_task_id

        +

        processor_task_id

        String

        +

        String

        ID of a preprocessing task.

        +

        ID of a preprocessing task.

        processor_task_status

        +

        processor_task_status

        Integer

        +

        Integer

        Status of a preprocessing task.

        +

        Status of a preprocessing task.

        status

        +

        status

        String

        +

        String

        Status of an import task. The options are as follows:

        -
        • QUEUING: queuing
        • STARTING: execution started
        • RUNNING: running
        • COMPLETED: completed
        • FAILED: failed
        • NOT_EXIST: not found
        +

        Status of an import task. The options are as follows:

        +
        • QUEUING: queuing
        • STARTING: execution started
        • RUNNING: running
        • COMPLETED: completed
        • FAILED: failed
        • NOT_EXIST: not found

        task_id

        +

        task_id

        String

        +

        String

        Task ID.

        +

        Task ID.

        total_file_count

        +

        total_file_count

        Long

        +

        Long

        Total number of files.

        +

        Total number of files.

        total_file_size

        +

        total_file_size

        Long

        +

        Long

        Total file size, in bytes.

        +

        Total file size, in bytes.

        total_sample_count

        +

        total_sample_count

        Long

        +

        Long

        Total number of samples.

        +

        Total number of samples.

        total_sub_sample_count

        +

        total_sub_sample_count

        Long

        +

        Long

        Total number of subsamples generated from the parent samples.

        +

        Total number of subsamples generated from the parent samples.

        unconfirmed_sample_count

        +

        unconfirmed_sample_count

        Long

        +

        Long

        Number of samples to be confirmed.

        +

        Number of samples to be confirmed.

        update_ms

        +

        update_ms

        Long

        +

        Long

        Time when a task is updated.

        +

        Time when a task is updated.

        -
        Table 5 DataSource

        Parameter

        +
        - - - - - - - - - - - - - - - - -
        Table 5 DataSource

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        data_path

        +

        data_path

        String

        +

        String

        Data source path.

        +

        Data source path.

        data_type

        +

        data_type

        Integer

        +

        Integer

        Data type. The options are as follows:

        -
        • 0: OBS bucket (default value)
        • 1: GaussDB(DWS)
        • 2: DLI
        • 3: RDS
        • 4: MRS
        • 5: AI Gallery
        • 6: Inference service
        +

        Data type. The options are as follows:

        +
        • 0: OBS bucket (default value)
        • 1: GaussDB(DWS)
        • 2: DLI
        • 3: RDS
        • 4: MRS
        • 5: AI Gallery
        • 6: Inference service

        schema_maps

        +

        schema_maps

        Array of SchemaMap objects

        +

        Array of SchemaMap objects

        Schema mapping information corresponding to the table data.

        +

        Schema mapping information corresponding to the table data.

        source_info

        +

        source_info

        SourceInfo object

        +

        SourceInfo object

        Information required for importing a table data source.

        +

        Information required for importing a table data source.

        with_column_header

        +

        with_column_header

        Boolean

        +

        Boolean

        Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

        -
        • true: The first row in the file is the column name.
        • false: The first row in the file is not the column name.
        +

        Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

        +
        • true: The first row in the file is the column name.
        • false: The first row in the file is not the column name.
        -
        Table 6 SchemaMap

        Parameter

        +
        - - - - - - - -
        Table 6 SchemaMap

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        dest_name

        +

        dest_name

        String

        +

        String

        Name of the destination column.

        +

        Name of the destination column.

        src_name

        +

        src_name

        String

        +

        String

        Name of the source column.

        +

        Name of the source column.

        -
        Table 7 SourceInfo

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 7 SourceInfo

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        cluster_id

        +

        cluster_id

        String

        +

        String

        ID of an MRS cluster.

        +

        ID of an MRS cluster.

        cluster_mode

        +

        cluster_mode

        String

        +

        String

        Running mode of an MRS cluster. The options are as follows:

        -
        • 0: normal cluster
        • 1: security cluster
        +

        Running mode of an MRS cluster. The options are as follows:

        +
        • 0: normal cluster
        • 1: security cluster

        cluster_name

        +

        cluster_name

        String

        +

        String

        Name of an MRS cluster.

        +

        Name of an MRS cluster.

        database_name

        +

        database_name

        String

        +

        String

        Name of the database to which the table dataset is imported.

        +

        Name of the database to which the table dataset is imported.

        input

        +

        input

        String

        +

        String

        HDFS path of a table dataset.

        +

        HDFS path of a table dataset.

        ip

        +

        ip

        String

        +

        String

        IP address of your GaussDB(DWS) cluster.

        +

        IP address of your GaussDB(DWS) cluster.

        port

        +

        port

        String

        +

        String

        Port number of your GaussDB(DWS) cluster.

        +

        Port number of your GaussDB(DWS) cluster.

        queue_name

        +

        queue_name

        String

        +

        String

        DLI queue name of a table dataset.

        +

        DLI queue name of a table dataset.

        subnet_id

        +

        subnet_id

        String

        +

        String

        Subnet ID of an MRS cluster.

        +

        Subnet ID of an MRS cluster.

        table_name

        +

        table_name

        String

        +

        String

        Name of the table to which a table dataset is imported.

        +

        Name of the table to which a table dataset is imported.

        user_name

        +

        user_name

        String

        +

        String

        Username, which is mandatory for GaussDB(DWS) data.

        +

        Username, which is mandatory for GaussDB(DWS) data.

        user_password

        +

        user_password

        String

        +

        String

        User password, which is mandatory for GaussDB(DWS) data.

        +

        User password, which is mandatory for GaussDB(DWS) data.

        vpc_id

        +

        vpc_id

        String

        +

        String

        ID of the VPC where an MRS cluster resides.

        +

        ID of the VPC where an MRS cluster resides.

        -
        Table 8 FileCopyProgress

        Parameter

        +
        - - - - - - - - - - - - - -
        Table 8 FileCopyProgress

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        file_num_finished

        +

        file_num_finished

        Long

        +

        Long

        Number of files that have been transferred.

        +

        Number of files that have been transferred.

        file_num_total

        +

        file_num_total

        Long

        +

        Long

        Total number of files.

        +

        Total number of files.

        file_size_finished

        +

        file_size_finished

        Long

        +

        Long

        Size of the file that has been transferred, in bytes.

        +

        Size of the file that has been transferred, in bytes.

        file_size_total

        +

        file_size_total

        Long

        +

        Long

        Total file size, in bytes.

        +

        Total file size, in bytes.

        -

        Example Requests

        Obtaining the Dataset Import Task List

        -
        GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/import-tasks
        +

        Example Requests

        Obtaining the Dataset Import Task List

        +
        GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/import-tasks
        -

        Example Responses

        Status code: 200

        -

        OK

        -
        {
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
           "total_count" : 1,
           "import_tasks" : [ {
             "status" : "COMPLETED",
        @@ -528,38 +528,38 @@
           } ]
         }
        -

        Status Codes

        -

        Status Code

        +

        Status Codes

        +
        - - - - - - - - -

        Status Code

        Description

        +

        Description

        200

        +

        200

        OK

        +

        OK

        401

        +

        401

        Unauthorized

        +

        Unauthorized

        403

        +

        403

        Forbidden

        +

        Forbidden

        404

        +

        404

        Not Found

        +

        Not Found

        -

        Error Codes

        See Error Codes.

        +

        Error Codes

        See Error Codes.

        diff --git a/docs/modelarts/api-ref/ListLabels.html b/docs/modelarts/api-ref/ListLabels.html index ddc37d2c..a832d7e7 100644 --- a/docs/modelarts/api-ref/ListLabels.html +++ b/docs/modelarts/api-ref/ListLabels.html @@ -1,264 +1,264 @@

        Querying the Dataset Label List

        -

        Function

        This API is used to query all labels of a dataset.

        +

        Function

        This API is used to query all labels of a dataset.

        -

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/labels

        +

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/labels

        -
        Table 1 Path Parameters

        Parameter

        +
        - - - - - - - - - - -
        Table 1 Path Parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        dataset_id

        +

        dataset_id

        Yes

        +

        Yes

        String

        +

        String

        Dataset ID.

        +

        Dataset ID.

        project_id

        +

        project_id

        Yes

        +

        Yes

        String

        +

        String

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        -
        Table 2 Query Parameters

        Parameter

        +
        - - - - - - -
        Table 2 Query Parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        version_id

        +

        version_id

        No

        +

        No

        String

        +

        String

        Dataset version ID.

        +

        Dataset version ID.

        -

        Request Parameters

        None

        +

        Request Parameters

        None

        -

        Response Parameters

        Status code: 200

        +

        Response Parameters

        Status code: 200

        -
        Table 3 Response body parameters

        Parameter

        +
        - - - - -
        Table 3 Response body parameters

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        labels

        +

        labels

        Array of Label objects

        +

        Array of Label objects

        Label list.

        +

        Label list.

        -
        Table 4 Label

        Parameter

        +
        - - - - - - - - - - - - - -
        Table 4 Label

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        attributes

        +

        attributes

        Array of LabelAttribute objects

        +

        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.

        +

        Multi-dimensional attribute of a label. For example, if the label is music, attributes such as style and artist may be included.

        name

        +

        name

        String

        +

        String

        Label name.

        +

        Label name.

        property

        +

        property

        LabelProperty object

        +

        LabelProperty object

        Basic attribute key-value pair of a label, such as color and shortcut keys.

        +

        Basic attribute key-value pair of a label, such as color and shortcut keys.

        type

        +

        type

        Integer

        +

        Integer

        Label type. The options are as follows:

        -
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        +

        Label type. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        -
        Table 5 LabelAttribute

        Parameter

        +
        - - - - - - - - - - - - - - - - -
        Table 5 LabelAttribute

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        default_value

        +

        default_value

        String

        +

        String

        Default value of a label attribute.

        +

        Default value of a label attribute.

        id

        +

        id

        String

        +

        String

        Label attribute ID.

        +

        Label attribute ID.

        name

        +

        name

        String

        +

        String

        Label attribute name.

        +

        Label attribute name.

        type

        +

        type

        String

        +

        String

        Label attribute type. The options are as follows:

        -
        • text: text
        • select: single-choice drop-down list
        +

        Label attribute type. The options are as follows:

        +
        • text: text
        • select: single-choice drop-down list

        values

        +

        values

        Array of LabelAttributeValue objects

        +

        Array of LabelAttributeValue objects

        List of label attribute values.

        +

        List of label attribute values.

        -
        Table 6 LabelAttributeValue

        Parameter

        +
        - - - - - - - -
        Table 6 LabelAttributeValue

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        id

        +

        id

        String

        +

        String

        Label attribute value ID.

        +

        Label attribute value ID.

        value

        +

        value

        String

        +

        String

        Label attribute value.

        +

        Label attribute value.

        -
        Table 7 LabelProperty

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - -
        Table 7 LabelProperty

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        @modelarts:color

        +

        @modelarts:color

        String

        +

        String

        Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

        +

        Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

        @modelarts:default_shape

        +

        @modelarts:default_shape

        String

        +

        String

        Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

        -
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline
        +

        Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

        +
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline

        @modelarts:from_type

        +

        @modelarts:from_type

        String

        +

        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.

        +

        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

        +

        @modelarts:rename_to

        String

        +

        String

        Default attribute: The new name of the label.

        +

        Default attribute: The new name of the label.

        @modelarts:shortcut

        +

        @modelarts:shortcut

        String

        +

        String

        Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

        +

        Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

        @modelarts:to_type

        +

        @modelarts:to_type

        String

        +

        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.

        +

        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 All Labels of a Dataset

        -
        GET https://{endpoint}/v2/{project_id}/datasets/WxCREuCkBSAlQr9xrde/data-annotations/labels
        +

        Example Requests

        Querying All Labels of a Dataset

        +
        GET https://{endpoint}/v2/{project_id}/datasets/WxCREuCkBSAlQr9xrde/data-annotations/labels
        -

        Example Responses

        Status code: 200

        -

        OK

        -
        {
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
           "labels" : [ {
             "name" : "Cat",
             "type" : 1,
        @@ -274,43 +274,43 @@
           } ]
         }
        -

        Status Codes

        -

        Status Code

        +

        Status Codes

        +
        - - - - - - - - -

        Status Code

        Description

        +

        Description

        200

        +

        200

        OK

        +

        OK

        401

        +

        401

        Unauthorized

        +

        Unauthorized

        403

        +

        403

        Forbidden

        +

        Forbidden

        404

        +

        404

        Not Found

        +

        Not Found

        -

        Error Codes

        See Error Codes.

        +

        Error Codes

        See Error Codes.

        diff --git a/docs/modelarts/api-ref/ListNotebooks.html b/docs/modelarts/api-ref/ListNotebooks.html new file mode 100644 index 00000000..c9b5ed22 --- /dev/null +++ b/docs/modelarts/api-ref/ListNotebooks.html @@ -0,0 +1,655 @@ + + +

        Querying Notebook Instances

        +

        Function

        This API is used to query notebook instances based on specified search criteria.

        +
        +

        Constraints

        None

        +
        +

        URI

        GET /v1/{project_id}/notebooks

        + +
        + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        feature

        +

        No

        +

        String

        +

        Instance type. The default value is NOTEBOOK. Options: - DEFAULT: free CodeLab instance. You can create only one. - NOTEBOOK: billed instance.

        +

        limit

        +

        No

        +

        Integer

        +

        Number of records on each page.

        +

        name

        +

        No

        +

        String

        +

        Instance name, which contains a maximum of 128 characters and can consist of uppercase and lowercase letters, digits, hyphens (-), and underscores (_). Fuzzy match is supported.

        +

        offset

        +

        No

        +

        Integer

        +

        Start offset of the records on each page.

        +

        owner

        +

        No

        +

        String

        +

        User ID of the instance, which contains 32 characters, including lowercase letters and digits. This parameter is valid only when the account is a big account or has the admin permission. Generally, the value is the ID of the current login user.

        +

        sort_dir

        +

        No

        +

        String

        +

        Sorting order. The options are ASC (ascending order) and DESC (descending order).

        +

        sort_key

        +

        No

        +

        String

        +

        Sorting fields. Separate multiple fields with commas (,).

        +

        status

        +

        No

        +

        String

        +

        Instance status. Options: \r\n-INIT: The instance is being initialized. \r\n-CREATING: The instance is being created. \r\n-STARTING: The instance is starting. \r\n-STOPPING: The instance is stopping. \r\n-DELETING: The instance is being deleted.\r\n-RUNNING: The instance is running.\r\n-STOPPED: The instance is stopped.\r\n-SNAPSHOTTING: A snapshot is being taken for the instance (status when the image is being saved).\r\n-CREATE_FAILED: The instance fails to be created. \r\n-START_FAILED: The instance fails to be started. \r\n-DELETE_FAILED: The instance fails to be deleted.\r\n-ERROR: An error occurs. \r\n-DELETED: The instance is deleted. \r\n-FROZEN: The instance is frozen.

        +

        workspaceId

        +

        No

        +

        String

        +

        Workspace ID. If no workspaces are available, the default value is 0.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        current

        +

        Integer

        +

        Current page

        +

        data

        +

        Array of NotebookResp objects

        +

        Data

        +

        pages

        +

        Integer

        +

        Total pages

        +

        size

        +

        Integer

        +

        Number of records on each page

        +

        total

        +

        Long

        +

        Total records

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 NotebookResp

        Parameter

        +

        Type

        +

        Description

        +

        action_progress

        +

        Array of JobProgress objects

        +

        Instance initialization progress.

        +

        description

        +

        String

        +

        Instance description

        +

        endpoints

        +

        Array of EndpointsRes objects

        +

        Local IDE (such as PyCharm and vsCode) or SSH client for remotely accessing a notebook instance through SSH.

        +

        fail_reason

        +

        String

        +

        Instance failure cause

        +

        feature

        +

        String

        +

        Instance type. Options: - DEFAULT: free CodeLab instance. You can create only one. - NOTEBOOK: billed instance.

        +

        flavor

        +

        String

        +

        Instance flavor

        +

        id

        +

        String

        +

        Instance ID.

        +

        image

        +

        Image object

        +

        Instance image

        +

        lease

        +

        Lease object

        +

        Countdown to automatic instance stop.

        +

        name

        +

        String

        +

        Instance name

        +

        pool

        +

        Pool object

        +

        Basic information about the dedicated pool, which is returned by the instance created in the dedicated pool.

        +

        status

        +

        String

        +

        Instance status Options: \r\n-INIT: The instance is being initialized. \r\n-CREATING: The instance is being created. \r\n-STARTING: The instance is starting. \r\n-STOPPING: The instance is stopping. \r\n-DELETING: The instance is being deleted.\r\n-RUNNING: The instance is running.\r\n-STOPPED: The instance is stopped.\r\n-SNAPSHOTTING: A snapshot is being taken for the instance (status when the image is being saved).\r\n-CREATE_FAILED: The instance fails to be created. \r\n-START_FAILED: The instance fails to be started. \r\n-DELETE_FAILED: The instance fails to be deleted.\r\n-ERROR: An error occurs. \r\n-DELETED: The instance is deleted. \r\n-FROZEN: The instance is frozen.

        +

        token

        +

        String

        +

        Token used for notebook authentication

        +

        url

        +

        String

        +

        URL for accessing the notebook instance

        +

        volume

        +

        VolumeRes object

        +

        Storage volume

        +

        workspace_id

        +

        String

        +

        Workspace ID. If no workspaces are available, the default value is 0.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 5 JobProgress

        Parameter

        +

        Type

        +

        Description

        +

        notebook_id

        +

        String

        +

        Instance ID.

        +

        status

        +

        String

        +

        Job status in a specified step. Options: - WAITING: The job is waiting to begin. - PROCESSING: The job is being processed. - FAILED: The job failed. - COMPLETED: The task is complete.

        +

        step

        +

        Integer

        +

        Job step. Options: - 1: Storage preparation. - 2: Computing resource preparation. - 3: Network configurations. - 4: Instance initialization.

        +

        step_description

        +

        String

        +

        Description of a step in a job.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 6 EndpointsRes

        Parameter

        +

        Type

        +

        Description

        +

        allowed_access_ips

        +

        Array of strings

        +

        Whitelist of public IP addresses that are allowed to access the notebook instance through SSH. By default, all public IP addresses can access the notebook instance. If this parameter is specified, only the clients with the specified IP addresses can access the notebook instance.

        +

        dev_service

        +

        String

        +

        Supported services. Options: - NOTEBOOK: You can access the notebook instance using HTTPS.- SSH: You can remotely access the notebook instance through SSH.

        +

        ssh_keys

        +

        Array of strings

        +

        List of SSH key pairs. You can set multiple key pairs to access an SSH instance at the same time.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 7 Image

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Image ID

        +

        name

        +

        String

        +

        Image name.

        +

        swr_path

        +

        String

        +

        SWR image address

        +

        type

        +

        String

        +

        Image type. Options: - BUILD_IN: built-in system image- DEDICATED: image saved by the user

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 8 Lease

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Time (UTC) when the instance is created, accurate to millisecond.

        +

        duration

        +

        Long

        +

        Instance running duration, which is calculated based on the instance creation time. If the instance creation time plus the duration is greater than the current time, the system automatically stops the instance.

        +

        enable

        +

        Boolean

        +

        Whether to enable auto stop of the instance.

        +

        update_time

        +

        Long

        +

        Time (UTC) when the instance is last updated (excluding the keepalive heartbeat time), accurate to millisecond.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 9 Pool

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        ID of a dedicated resource pool

        +

        name

        +

        String

        +

        Name of a dedicated resource pool

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 10 VolumeRes

        Parameter

        +

        Type

        +

        Description

        +

        capacity

        +

        Integer

        +

        Storage capacity. The default value is 5 GB for EVS and 50 GB for EFS. The maximum value is 4,096 GB.

        +

        category

        +

        String

        +

        Storage category. Options: \r\n-EFS: Scalable File Service (SFS), which is the default storage. \r\n-EVS: Elastic Volume Service (EVS). \r\n\r\n For details about the differences between the two types of storage, see Selecting a Storage Type in DevEnviron.\r\n.\r\n\r\n\r\n\r\n

        +

        mount_path

        +

        String

        +

        Directory of the notebook instance to which OBS storage is mounted. Currently, the directory is /home/ma-user/work/.

        +

        ownership

        +

        String

        +

        Owner to which the resource belongs. Options: - MANAGED: Resources are managed by services.- DEDICATED: Resources are managed by the user account. This mode is supported only when the instance category is EFS.

        +

        status

        +

        String

        +

        EVS disk capacity expansion status, which is RESIZING during capacity expansion and does not affect the instance.

        +
        +
        +
        +

        Example Requests

        None

        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "current" : 0,
        +  "data" : [ {
        +    "create_at" : 1638841805440,
        +    "data_volumes" : [ ],
        +    "endpoints" : [ {
        +      "service" : "NOTEBOOK",
        +      "uri" : "https://xxx.com/f9937afa-ca78-45b6-bc12-7ecf42553c48/lab"
        +    } ],
        +    "feature" : "DEFAULT",
        +    "flavor" : "modelarts.vm.cpu.free",
        +    "id" : "f9937afa-ca78-45b6-bc12-7ecf42553c48",
        +    "image" : {
        +      "description" : "description",
        +      "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54090",
        +      "name" : "notebook2.0-mul-kernel-cpu-cp36",
        +      "swr_path" : ".xxxx.com/atelier/notebook2.0-mul-kernel-cpu-cp36:3.3.2-release_v1",
        +      "tag" : "3.3.2-release_v1",
        +      "type" : "BUILD_IN"
        +    },
        +    "lease" : {
        +      "create_at" : 1638841805439,
        +      "duration" : 3600000,
        +      "enable" : true,
        +      "update_at" : 1638841805439
        +    },
        +    "name" : "notebook_5ee4bf0e",
        +    "status" : "RUNNING",
        +    "token" : "58ba50c6-e8ff-245c-4840-49e51aa70737",
        +    "update_at" : 1638841838725,
        +    "url" : "https://authoring-modelarts-xxxx.xxxx.com/f9937afa-ca78-45b6-bc12-7ecf42553c48/lab",
        +    "volume" : {
        +      "category" : "EFS",
        +      "ownership" : "MANAGED",
        +      "mount_path" : "/home/ma-user/work/",
        +      "capacity" : 50,
        +      "usage" : -1
        +    },
        +    "workspace_id" : "0"
        +  }, {
        +    "create_at" : 1638841744521,
        +    "data_volumes" : [ ],
        +    "description" : "api-test",
        +    "endpoints" : [ {
        +      "service" : "NOTEBOOK",
        +      "uri" : "https://authoring-modelarts-xxxx.xxxx.com/f9937afa-4451-42db-a76b-72d624749f66/lab"
        +    } ],
        +    "feature" : "NOTEBOOK",
        +    "flavor" : "modelarts.vm.cpu.2u",
        +    "id" : "f9937afa-4451-42db-a76b-72d624749f66",
        +    "image" : {
        +      "description" : "description",
        +      "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54090",
        +      "name" : "notebook2.0-mul-kernel-cpu-cp36",
        +      "swr_path" : "swr.xxx.xxxx.com/atelier/notebook2.0-mul-kernel-cpu-cp36:3.3.2-release_v1",
        +      "tag" : "3.3.2-release_v1",
        +      "type" : "BUILD_IN"
        +    },
        +    "lease" : {
        +      "create_at" : 1638841744515,
        +      "duration" : 3600000,
        +      "enable" : true,
        +      "update_at" : 1638841744515
        +    },
        +    "name" : "notebooks_test",
        +    "status" : "RUNNING",
        +    "token" : "3eff13f2-3d70-5456-6dc7-e3f99f562022",
        +    "update_at" : 1638841776582,
        +    "url" : "https://authoring-modelarts-xxxx.xxxx.com/f9937afa-4451-42db-a76b-72d624749f66/lab",
        +    "volume" : {
        +      "category" : "EFS",
        +      "ownership" : "MANAGED",
        +      "mount_path" : "/home/ma-user/work/",
        +      "capacity" : 50,
        +      "usage" : -1
        +    },
        +    "workspace_id" : "0"
        +  } ],
        +  "pages" : 1,
        +  "size" : 10,
        +  "total" : 2
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListProcessorTaskVersionResults.html b/docs/modelarts/api-ref/ListProcessorTaskVersionResults.html new file mode 100644 index 00000000..b9ca8d72 --- /dev/null +++ b/docs/modelarts/api-ref/ListProcessorTaskVersionResults.html @@ -0,0 +1,283 @@ + + +

        Querying the Result of a Data Processing Task Version

        +

        Function

        This API is used to query the result of a data processing task version.

        +
        +

        URI

        GET /v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}/results

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        task_id

        +

        Yes

        +

        String

        +

        ID of a data processing task.

        +

        version_id

        +

        Yes

        +

        String

        +

        Version ID of a data processing task.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        limit

        +

        No

        +

        Integer

        +

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

        +

        offset

        +

        No

        +

        Integer

        +

        Start page of the paging list. The default value is 0.

        +

        process_parameter

        +

        No

        +

        String

        +

        Image resizing setting, which is the same as the OBS resizing setting. For details, see . For example, image/resize,m_lfit,h_200 indicates that the target image is resized proportionally and the height is set to 200 pixels.

        +

        result_property

        +

        No

        +

        String

        +

        Sample status. If this parameter is not delivered or is set to -1, all samples are returned by default. The options are as follows:

        +
        • -1: all
        • 0: reserve
        • 1: modify
        • 2: delete
        • 3: add
        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        count

        +

        Integer

        +

        Total number of results.

        +

        has_more

        +

        Boolean

        +

        Whether all results are returned.

        +

        results

        +

        Array of DescProcessorTaskVersionResultsResp objects

        +

        Result displayed by page.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 DescProcessorTaskVersionResultsResp

        Parameter

        +

        Type

        +

        Description

        +

        new_source

        +

        String

        +

        Address of the sample after processing.

        +

        origin_source

        +

        String

        +

        Source address of a sample.

        +

        result_description

        +

        Array of objects

        +

        Processing description of a sample.

        +

        result_property

        +

        Integer

        +

        Processing status of a sample. The options are as follows:

        +
        • -1: all
        • 0: reserve
        • 1: modify
        • 2: delete
        • 3: add
        +

        sample_id

        +

        String

        +

        Sample ID, which is generated by md5 in the OBS path.

        +

        signed_new_source

        +

        String

        +

        Address of the processed sample after signature.

        +

        signed_origin_source

        +

        String

        +

        Source sample address after signature.

        +

        version_id

        +

        String

        +

        Version ID of a data processing task.

        +
        +
        +
        +

        Example Requests

        Querying the Result of a Data Processing Task Version

        +
        GET https://{endpoint}/v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}/results?offset=0&limit=14&result_property=-1
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "count" : 3,
        +  "results" : [ {
        +    "sample_id" : "0ac9aee517acbef965f547bb5a3268af",
        +    "version_id" : "7PoIhUzSk92OglQrTxr",
        +    "origin_source" : "s3://test-obs/classify/data/cat-rabbit/8.jpg",
        +    "new_source" : "obs://test-obs/classify/output/7PoIhUzSk92OglQrTxr/Data/8.jpg",
        +    "signed_origin_source" : "https://test-obs.obs.xxx.com:443/classify/data/cat-rabbit/8.jpg?AccessKeyId=I5IZ9R29S1W9WACNJJ0J&Expires=1606380154&x-obs-security-token=gQpjbi1ub3J0aC03jQ5yFSR1TfKXjeawutgyAnMrdoGNaSkeSBOKK...&Signature=GbnVBZ5JxUWhiAulUzpV9TD835Q%3D",
        +    "signed_new_source" : "https://test-obs.obs.xxx.com:443/classify/output/7PoIhUzSk92OglQrTxr/Data/8.jpg?AccessKeyId=I5IZ9R29S1W9WACNJJ0J&Expires=1606380154&x-obs-security-token=gQpjbi1ub3J0aC03jQ5yFSR1TfKXjeawutgyAnMrdoGNaSkeSBOKK...&Signature=Q5stFFFfVx9kykR49S8PPBlFqe0%3D",
        +    "result_property" : 3,
        +    "result_description" : [ [ "use AddNoise augmentation" ], [ "result_description to translate" ] ]
        +  }, {
        +    "sample_id" : "196799b2d731727b1800b70851fc60b0",
        +    "version_id" : "7PoIhUzSk92OglQrTxr",
        +    "origin_source" : "s3://test-obs/classify/data/cat-rabbit/2.jpg",
        +    "new_source" : "obs://test-obs/classify/output/7PoIhUzSk92OglQrTxr/Data/2.jpg",
        +    "signed_origin_source" : "https://test-obs.obs.xxx.com:443/classify/data/cat-rabbit/2.jpg?AccessKeyId=QEKFB6WFGZWC2YUP2JPK&Expires=1606380154&x-obs-security-token=gQpjbi1ub3J0aC03jdUZcXVRCNOHjWNNWiuu2E9Q...&Signature=6yvhJufi5kQO6UjToQgR0ztP%2Bis%3D",
        +    "signed_new_source" : "https://test-obs.obs.xxx.com:443/classify/output/7PoIhUzSk92OglQrTxr/Data/2.jpg?AccessKeyId=QEKFB6WFGZWC2YUP2JPK&Expires=1606380154&x-obs-security-token=gQpjbi1ub3J0aC03jdUZcXVRCNOHjWNNWiuu2E...&Signature=Zr%2BAEBDJwKS%2FpS6vzxK7MSzjblA%3D",
        +    "result_property" : 3,
        +    "result_description" : [ [ "use AddNoise augmentation" ], [ "result_description to translate" ] ]
        +  }, {
        +    "sample_id" : "1dc7351b78dcb24850f71d20267edd0e",
        +    "version_id" : "7PoIhUzSk92OglQrTxr",
        +    "origin_source" : "s3://test-obs/classify/data/cat-rabbit/import_1603716822103/test-obs/classify/output/E8ZLnTQvPBVtbZ6QsAp/Data/13.jpg",
        +    "new_source" : "obs://test-obs/classify/output/7PoIhUzSk92OglQrTxr/Data/13.jpg",
        +    "signed_origin_source" : "https://test-obs.obs.xxx.com:443/classify/data/cat-rabbit/import_1603716822103/test-obs/classify/output/E8ZLnTQvPBVtbZ6QsAp/Data/13.jpg?AccessKeyId=W6TSX9F1BRS8AUBDYKPY&Expires=1606380154&x-obs-security-token=gQpjbi1ub3J0aC03jVVFic8iObvdqZLuWxyIHlAjbJPCTX...&Signature=WV73XnoMkBDoSuVe%2BFSUaP1GxKw%3D",
        +    "signed_new_source" : "https://test-obs.obs.xxx.com:443/classify/output/7PoIhUzSk92OglQrTxr/Data/13.jpg?AccessKeyId=W6TSX9F1BRS8AUBDYKPY&Expires=1606380154&x-obs-security-token=gQpjbi1ub3J0aC03jVVFic8iObvdqZLuWxyIHlAjbJPCTXeYXkQh8z...&Signature=%2FYsgrsbyrz5ZQrndrQ9QyoHluYQ%3D",
        +    "result_property" : 3,
        +    "result_description" : [ [ "use AddNoise augmentation" ], [ "result_description to translate" ] ]
        +  } ],
        +  "has_more" : true
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListProcessorTaskVersions.html b/docs/modelarts/api-ref/ListProcessorTaskVersions.html new file mode 100644 index 00000000..52d758ed --- /dev/null +++ b/docs/modelarts/api-ref/ListProcessorTaskVersions.html @@ -0,0 +1,585 @@ + + +

        Querying the Version List of a Data Processing Task

        +

        Function

        This API is used to query the version list of a data processing task.

        +
        +

        URI

        GET /v2/{project_id}/processor-tasks/{task_id}/versions

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        task_id

        +

        Yes

        +

        String

        +

        ID of a data processing task.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        limit

        +

        No

        +

        Integer

        +

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 100.

        +

        offset

        +

        No

        +

        Integer

        +

        Start page of the paging list. The default value is 0.

        +

        order

        +

        No

        +

        String

        +

        Sorting sequence of the query. The options are as follows:

        +
        • asc: ascending order

          +
        • desc: descending order (default value)

          +
        +

        sort_by

        +

        No

        +

        String

        +

        Sorting mode of the query. The options are as follows:

        +
        • create_time: Sort by creation time. (Default value)

          +
        • version_name: Sort by task version name.

          +
        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        count

        +

        Integer

        +

        Total number of versions.

        +

        versions

        +

        Array of DescTaskVersionResp objects

        +

        Version list of a data processing task queried by page.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 DescTaskVersionResp

        Parameter

        +

        Type

        +

        Description

        +

        add_sample_count

        +

        Integer

        +

        Number of added images after processing.

        +

        create_time

        +

        Long

        +

        Time when a data processing task is created.

        +

        deleted_sample_count

        +

        Integer

        +

        Number of deleted images after processing.

        +

        description

        +

        String

        +

        Version description of a data processing task.

        +

        duration_seconds

        +

        Integer

        +

        Running time of a data processing task, in seconds.

        +

        inputs

        +

        Array of ProcessorDataSource objects

        +

        Input channel of a data processing task.

        +

        modified_sample_count

        +

        Integer

        +

        Number of modified images after processing.

        +

        origin_sample_count

        +

        Integer

        +

        Number of images before processing.

        +

        status

        +

        Integer

        +

        Status of a data processing task. The options are as follows:

        +
        • 0: initialized

          +
        • 1: running

          +
        • 2: completed

          +
        • 3: failed

          +
        • 4: stopped

          +
        +

        task_id

        +

        String

        +

        ID of a data processing task.

        +

        task_version_id

        +

        String

        +

        Version ID of a data processing task.

        +

        template

        +

        TemplateParam object

        +

        Algorithm template, such as the algorithm ID and parameters.

        +

        unmodified_sample_count

        +

        Integer

        +

        Number of unmodified images after processing.

        +

        update_time

        +

        Long

        +

        Time when a data processing task is created.

        +

        version_name

        +

        String

        +

        Version name of a data processing task.

        +

        work_path

        +

        WorkPath object

        +

        Output channel of a data processing task.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 5 ProcessorDataSource

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Dataset name.

        +

        source

        +

        String

        +

        Data source path. The options are as follows:

        +
        • If type is set to OBS, source is an OBS path.

          +
        • If type is set to TASK, source is a task ID.

          +
        • If type is set to DATASET, source is a dataset ID.

          +
        • If type is set to CUSTOM and the API is called by resource tenants, set source to the project_id of the actual user. Otherwise, this field is left blank.

          +
        +

        type

        +

        String

        +

        Data source type. The options are as follows:

        +
        • OBS: Data obtained from OBS

          +
        • TASK: Data processing task

          +
        • DATASET: Dataset

          +
        • CUSTOM: Data called by resource tenants

          +
        +

        version_id

        +

        String

        +

        Version of a dataset.

        +

        version_name

        +

        String

        +

        Dataset version name.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 6 TemplateParam

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Task type, that is, ID of a data processing template. The options are as follows:

        +
        • sys_data_analyse: feature analysis

          +
        • sys_data_cleaning: data cleansing

          +
        • sys_data_augmentation: data augmentation

          +
        • sys_data_validation: data validation

          +
        • sys_data_selection: data selection

          +
        +

        name

        +

        String

        +

        Template name.

        +

        operator_params

        +

        Array of OperatorParam objects

        +

        Operator parameter list.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 7 OperatorParam

        Parameter

        +

        Type

        +

        Description

        +

        advanced_params_switch

        +

        Boolean

        +

        Advanced parameter switch.

        +

        id

        +

        String

        +

        ID of an operator.

        +

        name

        +

        String

        +

        Name of an operator.

        +

        params

        +

        Object

        +

        Operator parameter. The parameter type is map<string,object>. Currently, object only supports the types of Boolean, Integer, Long, String, List and Map<String,String>. For two special scenarios of object detection and image classification in a data preprocessing task, the value of task_type is object_detection or image_classification.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 8 WorkPath

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Dataset name.

        +

        output_path

        +

        String

        +

        Output path.

        +

        path

        +

        String

        +

        Working path. The options are as follows:

        +
        • If type is set to OBS, source is an OBS path.

          +
        • If type is set to DATASET, source is a dataset ID.

          +
        +

        type

        +

        String

        +

        Type of a working path. The options are as follows:

        +
        • OBS: OBS path

          +
        • DATASET: dataset

          +
        +

        version_id

        +

        String

        +

        Version of a dataset.

        +

        version_name

        +

        String

        +

        Name of a dataset version. The value can contain 0 to 32 characters. Only digits, letters, underscores (_), and hyphens (-) are allowed.

        +
        +
        +
        +

        Example Requests

        Querying the Version List of a Data Processing Task

        +
        GET https://{endpoint}/v2/{project_id}/processor-tasks/{task_id}/versions?offset=0&limit=5
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "count" : 2,
        +  "versions" : [ {
        +    "task_version_id" : "qSaudx2sbPvthHygckA",
        +    "task_id" : "kM7j9TSa611ZzBThzSr",
        +    "version_name" : "V002",
        +    "description" : "",
        +    "status" : 0,
        +    "create_time" : 1606377874450,
        +    "inputs" : [ {
        +      "type" : "DATASET",
        +      "source" : "PYc9H2HGv5BJNwBGXyK",
        +      "version_id" : "Osc8SZ7TZStiRV4vYkZ",
        +      "name" : "dataset-test",
        +      "version_name" : "V0010"
        +    } ],
        +    "work_path" : {
        +      "type" : "DATASET",
        +      "path" : "PYc9H2HGv5BJNwBGXyK",
        +      "name" : "dataset-test",
        +      "version_name" : "V0011",
        +      "output_path" : "/test-obs/classify/output/qSaudx2sbPvthHygckA/"
        +    },
        +    "template" : {
        +      "id" : "sys_data_validation",
        +      "name" : "name to translate",
        +      "operator_params" : [ {
        +        "name" : "MetaValidation",
        +        "advanced_params_switch" : false,
        +        "params" : {
        +          "task_type" : "image_classification",
        +          "dataset_type" : "manifest",
        +          "source_service" : "select",
        +          "filter_func" : "data_validation_select",
        +          "image_max_width" : "1920",
        +          "image_max_height" : "1920",
        +          "total_status" : "[0,1,2]"
        +        }
        +      } ]
        +    },
        +    "duration_seconds" : 151
        +  }, {
        +    "task_version_id" : "YHFWU18zXuNbqxtzegG",
        +    "task_id" : "kM7j9TSa611ZzBThzSr",
        +    "version_name" : "V001",
        +    "description" : "",
        +    "status" : 2,
        +    "create_time" : 1606375407276,
        +    "inputs" : [ {
        +      "type" : "DATASET",
        +      "source" : "PYc9H2HGv5BJNwBGXyK",
        +      "version_id" : "yoJ5ssClpNlOrsjjFDa",
        +      "name" : "dataset-test",
        +      "version_name" : "V009"
        +    } ],
        +    "work_path" : {
        +      "type" : "DATASET",
        +      "path" : "PYc9H2HGv5BJNwBGXyK",
        +      "name" : "dataset-test",
        +      "version_id" : "Osc8SZ7TZStiRV4vYkZ",
        +      "version_name" : "V0010",
        +      "output_path" : "/test-obs/classify/output/YHFWU18zXuNbqxtzegG/"
        +    },
        +    "template" : {
        +      "id" : "sys_data_validation",
        +      "name" : "name to translate",
        +      "operator_params" : [ {
        +        "name" : "MetaValidation",
        +        "advanced_params_switch" : false,
        +        "params" : {
        +          "task_type" : "image_classification",
        +          "dataset_type" : "manifest",
        +          "source_service" : "select",
        +          "filter_func" : "data_validation_select",
        +          "image_max_width" : "1920",
        +          "image_max_height" : "1920",
        +          "total_status" : "[0,1,2]"
        +        }
        +      } ]
        +    },
        +    "duration_seconds" : 812,
        +    "origin_sample_count" : 18,
        +    "add_sample_count" : 0,
        +    "modified_sample_count" : 0,
        +    "unmodified_sample_count" : 18,
        +    "deleted_sample_count" : 0
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListProcessorTasks.html b/docs/modelarts/api-ref/ListProcessorTasks.html new file mode 100644 index 00000000..f4c5a10f --- /dev/null +++ b/docs/modelarts/api-ref/ListProcessorTasks.html @@ -0,0 +1,647 @@ + + +

        Querying the List of a Processing Task

        +

        Function

        This API is used to query the list of a processing task. You can specify the task_type parameter to query the list of a specific type of tasks.- Data processing refers to extracting or generating data that is valuable and meaningful to a particular person from a large amount of, cluttered, and incomprehensible data. Data processing includes data validation, data cleansing, data selection, and data augmentation. * Data validation indicates that the dataset is verified to ensure data accuracy. * Data cleansing refers to the process of denoising, correcting, or supplementing data. * Data selection indicates the process of selecting data subsets from full data. * Data augmentation indicates that data volume is increased through simple data amplification operations such as scaling, cropping, transformation, and composition.

        +
        +

        URI

        GET /v2/{project_id}/processor-tasks

        + +
        + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        limit

        +

        No

        +

        Integer

        +

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

        +

        offset

        +

        No

        +

        Integer

        +

        Start page of the paging list. The default value is 0.

        +

        order

        +

        No

        +

        String

        +

        Sorting sequence of the query. The options are as follows:

        +
        • asc: ascending order

          +
        • desc: descending order (default value)

          +
        +

        query_current

        +

        No

        +

        Boolean

        +

        Whether to query only the latest tasks of dataset version. The options are as follows:

        +
        • true: Query only the latest tasks of the dataset version.

          +
        • false: Query all tasks of the dataset version. (Default value)

          +
        +

        return_result

        +

        No

        +

        Boolean

        +

        Whether to return the task result. The options are as follows:

        +
        • true: Return the task result. (Default value)

          +
        • false: Do not return the task result.

          +
        +

        sort_by

        +

        No

        +

        String

        +

        Sorting mode of the query. The options are as follows:

        +
        • create_time: Sort by creation time. (Default value)

          +
        • name: Sort by task name.

          +
        • duration_seconds: Sort by running time.

          +
        +

        source

        +

        No

        +

        String

        +

        Data source path of the query. The options are as follows:

        +
        • If type is set to OBS, source is an OBS path.

          +
        • If type is set to TASK, source is a task ID.

          +
        • If type is set to DATASET, source is a dataset ID.

          +
        • If type is set to CUSTOM and the API is called by resource tenants, set source to the project_id of the actual user. Otherwise, this field is left blank.

          +
        +

        source_type

        +

        No

        +

        String

        +

        Data source type of the query. If this parameter is not specified, all data sources are queried by default. The options are as follows:

        +
        • OBS: Data obtained from OBS

          +
        • TASK: Data processing task

          +
        • DATASET: Dataset

          +
        • CUSTOM: Data called by resource tenants

          +
        +

        status

        +

        No

        +

        Integer

        +

        Task status of the query. If this parameter is not specified, tasks in all states are queried by default. The options are as follows:

        +
        • 0: initialized

          +
        • 1: running

          +
        • 2: completed

          +
        • 3: failed

          +
        • 4: stopped

          +
        +

        task_name

        +

        No

        +

        String

        +

        Fuzzy search keyword.

        +

        task_type

        +

        No

        +

        String

        +

        Task type, that is, ID of a data processing template. The options are as follows:

        +
        • sys_data_analyse: feature analysis

          +
        • sys_data_cleaning: data cleansing

          +
        • sys_data_augmentation: data augmentation

          +
        • sys_data_validation: data validation

          +
        • sys_data_selection: data selection

          +
        +

        version_id

        +

        No

        +

        Array

        +

        Version ID list of a specific dataset of the query.

        +

        workspace_id

        +

        No

        +

        String

        +

        Workspace ID. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        count

        +

        Integer

        +

        Total number of data processing tasks.

        +

        tasks

        +

        Array of DescribeProcessorTaskResp objects

        +

        Data processing task list queried by page.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 DescribeProcessorTaskResp

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Time when a data processing task is created.

        +

        data_source

        +

        ProcessorDataSource object

        +

        Input of a data processing task. Either this parameter or inputs is delivered.

        +

        description

        +

        String

        +

        Description of a data processing task.

        +

        duration_seconds

        +

        Integer

        +

        Running time of data processing, in seconds.

        +

        error_msg

        +

        String

        +

        Error message. This field is displayed when the value of status is 3.

        +

        inputs

        +

        Array of ProcessorDataSource objects

        +

        Input channel list of a data processing task. Either this parameter or data_source is delivered.

        +

        is_current

        +

        Boolean

        +

        Whether the current task is the latest of the same type of this version.

        +

        name

        +

        String

        +

        Name of a data processing task.

        +

        result

        +

        Object

        +

        Output result of a data processing task. This field is displayed when status is set to 2 and is valid for a feature analysis task.

        +

        status

        +

        Integer

        +

        Status of a data processing task. The options are as follows:

        +
        • 0: initialized

          +
        • 1: running

          +
        • 2: completed

          +
        • 3: failed

          +
        • 4: stopped

          +
        +

        task_id

        +

        String

        +

        ID of a data processing task.

        +

        template

        +

        TemplateParam object

        +

        Data processing template, such as the algorithm ID and parameters.

        +

        version_count

        +

        Integer

        +

        Version number of a data processing task.

        +

        version_id

        +

        String

        +

        Dataset version ID corresponding to a data processing task.

        +

        version_name

        +

        String

        +

        Dataset version name corresponding to a data processing task.

        +

        work_path

        +

        WorkPath object

        +

        Working directory of a data processing task.

        +

        workspace_id

        +

        String

        +

        Workspace ID of a data processing task. If no workspace is created, the default value is 0. If a workspace is created and used, use the actual value.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 5 ProcessorDataSource

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Dataset name.

        +

        source

        +

        String

        +

        Data source path. The options are as follows:

        +
        • If type is set to OBS, source is an OBS path.

          +
        • If type is set to TASK, source is a task ID.

          +
        • If type is set to DATASET, source is a dataset ID.

          +
        • If type is set to CUSTOM and the API is called by resource tenants, set source to the project_id of the actual user. Otherwise, this field is left blank.

          +
        +

        type

        +

        String

        +

        Data source type. The options are as follows:

        +
        • OBS: Data obtained from OBS

          +
        • TASK: Data processing task

          +
        • DATASET: Dataset

          +
        • CUSTOM: Data called by resource tenants

          +
        +

        version_id

        +

        String

        +

        Version of a dataset.

        +

        version_name

        +

        String

        +

        Dataset version name.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 6 TemplateParam

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Task type, that is, ID of a data processing template. The options are as follows:

        +
        • sys_data_analyse: feature analysis

          +
        • sys_data_cleaning: data cleansing

          +
        • sys_data_augmentation: data augmentation

          +
        • sys_data_validation: data validation

          +
        • sys_data_selection: data selection

          +
        +

        name

        +

        String

        +

        Template name.

        +

        operator_params

        +

        Array of OperatorParam objects

        +

        Operator parameter list.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 7 OperatorParam

        Parameter

        +

        Type

        +

        Description

        +

        advanced_params_switch

        +

        Boolean

        +

        Advanced parameter switch.

        +

        id

        +

        String

        +

        ID of an operator.

        +

        name

        +

        String

        +

        Name of an operator.

        +

        params

        +

        Object

        +

        Operator parameter. The parameter type is map<string,object>. Currently, object only supports the types of Boolean, Integer, Long, String, List and Map<String,String>. For two special scenarios of object detection and image classification in a data preprocessing task, the value of task_type is object_detection or image_classification.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 8 WorkPath

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Dataset name.

        +

        output_path

        +

        String

        +

        Output path.

        +

        path

        +

        String

        +

        Working path. The options are as follows:

        +
        • If type is set to OBS, source is an OBS path.

          +
        • If type is set to DATASET, source is a dataset ID.

          +
        +

        type

        +

        String

        +

        Type of a working path. The options are as follows:

        +
        • OBS: OBS path

          +
        • DATASET: dataset

          +
        +

        version_id

        +

        String

        +

        Version of a dataset.

        +

        version_name

        +

        String

        +

        Name of a dataset version. The value can contain 0 to 32 characters. Only digits, letters, underscores (_), and hyphens (-) are allowed.

        +
        +
        +
        +

        Example Requests

        Query historical data validation tasks of a specified dataset.

        +
        GET https://{endpoint}/v2/{project_id}/processor-tasks?offset=0&limit=10&sort_by=create_time&order=desc&source_type=DATASET&source=qjHAs14pRu4n2so1Qlb&task_type=sys_data_validation&return_result=false
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "task_id" : "SSzH9AdmHTvIBeihArb",
        +  "name" : "PRE-6c83",
        +  "description" : "test",
        +  "inputs" : [ {
        +    "type" : "DATASET",
        +    "source" : "qjHAs14pRu4n2so1Qlb",
        +    "version_id" : "cUELhTAYGIR36YpTE5Y",
        +    "name" : "dataset-dba1",
        +    "version_name" : "V001"
        +  } ],
        +  "work_path" : {
        +    "type" : "DATASET",
        +    "path" : "qjHAs14pRu4n2so1Qlb",
        +    "name" : "dataset-dba1",
        +    "version_name" : "V002",
        +    "output_path" : "/test-lxm/data-out/EnyHCFzjTFY20U3sYSE/"
        +  },
        +  "template" : {
        +    "id" : "sys_data_validation",
        +    "name" : "data validation template name",
        +    "operator_params" : [ {
        +      "name" : "MetaValidation",
        +      "advanced_params_switch" : false,
        +      "params" : {
        +        "task_type" : "image_classification",
        +        "dataset_type" : "manifest",
        +        "source_service" : "select",
        +        "filter_func" : "data_validation_select",
        +        "image_max_width" : "-1",
        +        "image_max_height" : "-1",
        +        "total_status" : "[0,1,2]"
        +      }
        +    } ]
        +  },
        +  "status" : 2,
        +  "duration_seconds" : 277,
        +  "create_time" : 1614245065569,
        +  "workspace_id" : "0",
        +  "version_count" : 1,
        +  "ai_project" : ""
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListSamples.html b/docs/modelarts/api-ref/ListSamples.html index 02e104a0..a3d5f7b0 100644 --- a/docs/modelarts/api-ref/ListSamples.html +++ b/docs/modelarts/api-ref/ListSamples.html @@ -1,726 +1,724 @@

        Querying the Sample List

        -

        Function

        This API is used to query the sample list by page.

        +

        Function

        This API is used to query the sample list by page.

        -

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/samples

        +

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/samples

        -
        Table 1 Path Parameters

        Parameter

        +
        - - - - - - - - - - -
        Table 1 Path Parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        dataset_id

        +

        dataset_id

        Yes

        +

        Yes

        String

        +

        String

        Dataset ID.

        +

        Dataset ID.

        project_id

        +

        project_id

        Yes

        +

        Yes

        String

        +

        String

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        -
        Table 2 Query Parameters

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 2 Query Parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        email

        +

        email

        No

        +

        No

        String

        +

        String

        Email address of a labeling team member.

        +

        Email address of a labeling team member.

        high_score

        +

        high_score

        No

        +

        No

        String

        +

        String

        Upper confidence limit. The default value is 1.

        +

        Upper confidence limit. The default value is 1.

        label_name

        +

        label_name

        No

        +

        No

        String

        +

        String

        Label name.

        +

        Label name.

        label_type

        +

        label_type

        No

        +

        No

        Integer

        +

        Integer

        Labeling type. The options are as follows:

        -
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet
        • 200: sound classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 400: table dataset
        • 600: video labeling
        • 900: custom format
        +

        Labeling type. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet
        • 200: sound classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 400: table dataset
        • 600: video labeling
        • 900: custom format

        limit

        +

        limit

        No

        +

        No

        Integer

        +

        Integer

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

        +

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

        locale

        +

        locale

        No

        +

        No

        String

        +

        String

        Language. The options are as follows:

        -

        en-us: English (default value)

        +

        Language. The options are as follows:

        +

        en-us: English (default value)

        low_score

        +

        low_score

        No

        +

        No

        String

        +

        String

        Lower confidence limit. The default value is 0.

        +

        Lower confidence limit. The default value is 0.

        offset

        +

        offset

        No

        +

        No

        Integer

        +

        Integer

        Start page of the paging list. The default value is 0.

        +

        Start page of the paging list. The default value is 0.

        order

        +

        order

        No

        +

        No

        String

        +

        String

        Sorting sequence of the query. The options are as follows:

        -
        • asc: ascending order
        • desc: descending order (default value)
        +

        Sorting sequence of the query. The options are as follows:

        +
        • asc: ascending order
        • desc: descending order (default value)

        preview

        +

        preview

        No

        +

        No

        Boolean

        +

        Boolean

        Whether to support preview. The options are as follows:

        -
        • true: Preview is supported.
        • false: Preview is not supported.
        +

        Whether to support preview. The options are as follows:

        +
        • true: Preview is supported.
        • false: Preview is not supported.

        process_parameter

        +

        process_parameter

        No

        +

        No

        String

        +

        String

        Image resizing setting, which is the same as the OBS resizing setting. For details, see . For example, image/resize,m_lfit,h_200 indicates that the target image is resized proportionally and the height is set to 200 pixels.

        +

        Image resizing setting, which is the same as the OBS resizing setting. For details, see . For example, image/resize,m_lfit,h_200 indicates that the target image is resized proportionally and the height is set to 200 pixels.

        sample_state

        +

        sample_state

        No

        +

        No

        String

        +

        String

        Sample status. The options are as follows:

        -
        • ALL: labeled
        • NONE: unlabeled
        • UNCHECK: pending acceptance
        • ACCEPTED: accepted
        • REJECTED: rejected
        • UNREVIEWED: pending review
        • REVIEWED: reviewed
        • WORKFORCE_SAMPLED: sampled
        • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
        • WORKFORCE_SAMPLED_CHECKED: sampling checked
        • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
        • WORKFORCE_SAMPLED_REJECTED: sampling rejected
        • AUTO_ANNOTATION: to be confirmed
        +

        Sample status. The options are as follows:

        +
        • ALL: labeled
        • NONE: unlabeled
        • UNCHECK: pending acceptance
        • ACCEPTED: accepted
        • REJECTED: rejected
        • UNREVIEWED: pending review
        • REVIEWED: reviewed
        • WORKFORCE_SAMPLED: sampled
        • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
        • WORKFORCE_SAMPLED_CHECKED: sampling checked
        • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
        • WORKFORCE_SAMPLED_REJECTED: sampling rejected
        • AUTO_ANNOTATION: to be confirmed

        sample_type

        +

        sample_type

        No

        +

        No

        Integer

        +

        Integer

        Sample file type. The options are as follows:

        -
        • 0: image
        • 1: text
        • 2: audio
        • 4: table
        • 6: video
        • 9: custom format (default value)
        +

        Sample file type. The options are as follows:

        +
        • 0: image
        • 1: text
        • 2: audio
        • 4: table
        • 6: video
        • 9: custom format (default value)

        search_conditions

        +

        search_conditions

        No

        +

        No

        String

        +

        String

        Multi-dimensional search condition after URL encoding. The relationship between multiple search conditions is AND.

        +

        Multi-dimensional search condition after URL encoding. The relationship between multiple search conditions is AND.

        version_id

        +

        version_id

        No

        +

        No

        String

        +

        String

        Dataset version ID.

        +

        Dataset version ID.

        -

        Request Parameters

        None

        +

        Request Parameters

        None

        -

        Response Parameters

        Status code: 200

        +

        Response Parameters

        Status code: 200

        -
        Table 3 Response body parameters

        Parameter

        +
        - - - - - - - -
        Table 3 Response body parameters

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        sample_count

        +

        sample_count

        Integer

        +

        Integer

        Number of samples.

        +

        Number of samples.

        samples

        +

        samples

        Array of DescribeSampleResp objects

        +

        Array of DescribeSampleResp objects

        Sample list.

        +

        Sample list.

        -
        Table 4 DescribeSampleResp

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 4 DescribeSampleResp

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        check_accept

        +

        check_accept

        Boolean

        +

        Boolean

        Whether the acceptance is passed, which is used for team labeling. The options are as follows:

        -
        • true: The acceptance is passed.
        • false: The acceptance is not passed.
        +

        Whether the acceptance is passed, which is used for team labeling. The options are as follows:

        +
        • true: The acceptance is passed.
        • false: The acceptance is not passed.

        check_comment

        +

        check_comment

        String

        +

        String

        Acceptance comment, which is used for team labeling.

        +

        Acceptance comment, which is used for team labeling.

        check_score

        +

        check_score

        String

        +

        String

        Acceptance score, which is used for team labeling.

        +

        Acceptance score, which is used for team labeling.

        deletion_reasons

        +

        deletion_reasons

        Array of strings

        +

        Array of strings

        Reason for deleting a sample, which is used for healthcare.

        +

        Reason for deleting a sample, which is used for healthcare.

        hard_details

        +

        hard_details

        Map<String,HardDetail>

        +

        Map<String,HardDetail>

        Details about difficulties, including description, causes, and suggestions of difficult problems.

        +

        Details about difficulties, including description, causes, and suggestions of difficult problems.

        labelers

        +

        labelers

        Array of Worker objects

        +

        Array of Worker objects

        Labeling personnel list of sample assignment. The labelers record the team members to which the sample is allocated for team labeling.

        +

        Labeling personnel list of sample assignment. The labelers record the team members to which the sample is allocated for team labeling.

        labels

        +

        labels

        Array of SampleLabel objects

        +

        Array of SampleLabel objects

        Sample label list.

        +

        Sample label list.

        metadata

        +

        metadata

        SampleMetadata object

        +

        SampleMetadata object

        Key-value pair of the sample metadata attribute.

        +

        Key-value pair of the sample metadata attribute.

        review_accept

        +

        review_accept

        Boolean

        +

        Boolean

        Whether to accept the review, which is used for team labeling. The options are as follows:

        -
        • true: accepted
        • false: rejected
        +

        Whether to accept the review, which is used for team labeling. The options are as follows:

        +
        • true: accepted
        • false: rejected

        review_comment

        +

        review_comment

        String

        +

        String

        Review comment, which is used for team labeling.

        +

        Review comment, which is used for team labeling.

        review_score

        +

        review_score

        String

        +

        String

        Review score, which is used for team labeling.

        +

        Review score, which is used for team labeling.

        sample_data

        +

        sample_data

        Array of strings

        +

        Array of strings

        Sample data list.

        +

        Sample data list.

        sample_dir

        +

        sample_dir

        String

        +

        String

        Sample path.

        +

        Sample path.

        sample_id

        +

        sample_id

        String

        +

        String

        Sample ID.

        +

        Sample ID.

        sample_name

        +

        sample_name

        String

        +

        String

        Sample name.

        +

        Sample name.

        sample_size

        +

        sample_size

        Long

        +

        Long

        Sample size or text length, in bytes.

        +

        Sample size or text length, in bytes.

        sample_status

        +

        sample_status

        String

        +

        String

        Sample status. The options are as follows:

        -
        • ALL: labeled
        • NONE: unlabeled
        • UNCHECK: pending acceptance
        • ACCEPTED: accepted
        • REJECTED: rejected
        • UNREVIEWED: pending review
        • REVIEWED: reviewed
        • WORKFORCE_SAMPLED: sampled
        • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
        • WORKFORCE_SAMPLED_CHECKED: sampling checked
        • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
        • WORKFORCE_SAMPLED_REJECTED: sampling rejected
        • AUTO_ANNOTATION: to be confirmed
        +

        Sample status. The options are as follows:

        +
        • ALL: labeled
        • NONE: unlabeled
        • UNCHECK: pending acceptance
        • ACCEPTED: accepted
        • REJECTED: rejected
        • UNREVIEWED: pending review
        • REVIEWED: reviewed
        • WORKFORCE_SAMPLED: sampled
        • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
        • WORKFORCE_SAMPLED_CHECKED: sampling checked
        • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
        • WORKFORCE_SAMPLED_REJECTED: sampling rejected
        • AUTO_ANNOTATION: to be confirmed

        sample_time

        +

        sample_time

        Long

        +

        Long

        Sample time, when OBS is last modified.

        +

        Sample time, when OBS is last modified.

        sample_type

        +

        sample_type

        Integer

        +

        Integer

        Sample type. The options are as follows:

        -
        • 0: image
        • 1: text
        • 2: speech
        • 4: table
        • 6: video
        • 9: custom format
        +

        Sample type. The options are as follows:

        +
        • 0: image
        • 1: text
        • 2: speech
        • 4: table
        • 6: video
        • 9: custom format

        score

        +

        score

        String

        +

        String

        Comprehensive score, which is used for team labeling.

        +

        Comprehensive score, which is used for team labeling.

        source

        +

        source

        String

        +

        String

        Source address of sample data.

        +

        Source address of sample data.

        sub_sample_url

        +

        sub_sample_url

        String

        +

        String

        Subsample URL, which is used for healthcare.

        +

        Subsample URL, which is used for healthcare.

        worker_id

        +

        worker_id

        String

        +

        String

        ID of a labeling team member, which is used for team labeling.

        +

        ID of a labeling team member, which is used for team labeling.

        -
        Table 5 HardDetail

        Parameter

        +
        - - - - - - - - - - - - - -
        Table 5 HardDetail

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        alo_name

        +

        alo_name

        String

        +

        String

        Alias.

        +

        Alias.

        id

        +

        id

        Integer

        +

        Integer

        Reason ID.

        +

        Reason ID.

        reason

        +

        reason

        String

        +

        String

        Reason description.

        +

        Reason description.

        suggestion

        +

        suggestion

        String

        +

        String

        Handling suggestion.

        +

        Handling suggestion.

        -
        Table 6 Worker

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 6 Worker

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        create_time

        +

        create_time

        Long

        +

        Long

        Creation time.

        +

        Creation time.

        description

        +

        description

        String

        +

        String

        Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        +

        Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        email

        +

        email

        String

        +

        String

        Email address of a labeling team member.

        +

        Email address of a labeling team member.

        role

        +

        role

        Integer

        +

        Integer

        Role. The options are as follows:

        -
        • 0: labeling personnel
        • 1: reviewer
        • 2: team administrator
        • 3: dataset owner
        +

        Role. The options are as follows:

        +
        • 0: labeling personnel
        • 1: reviewer
        • 2: team administrator
        • 3: dataset owner

        status

        +

        status

        Integer

        +

        Integer

        Current login status of a labeling team member. The options are as follows:

        -
        • 0: The invitation email has not been sent.
        • 1: The invitation email has been sent but the user has not logged in.
        • 2: The user has logged in.
        • 3: The labeling team member has been deleted.
        +

        Current login status of a labeling team member. The options are as follows:

        +
        • 0: The invitation email has not been sent.
        • 1: The invitation email has been sent but the user has not logged in.
        • 2: The user has logged in.
        • 3: The labeling team member has been deleted.

        update_time

        +

        update_time

        Long

        +

        Long

        Update time.

        +

        Update time.

        worker_id

        +

        worker_id

        String

        +

        String

        ID of a labeling team member.

        +

        ID of a labeling team member.

        workforce_id

        +

        workforce_id

        String

        +

        String

        ID of a labeling team.

        +

        ID of a labeling team.

        -
        Table 7 SampleLabel

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - -
        Table 7 SampleLabel

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        annotated_by

        +

        annotated_by

        String

        +

        String

        Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

        -
        • human: manual labeling
        • auto: automatic labeling
        +

        Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

        +
        • human: manual labeling
        • auto: automatic labeling

        id

        +

        id

        String

        +

        String

        Label ID.

        +

        Label ID.

        name

        +

        name

        String

        +

        String

        Label name.

        +

        Label name.

        property

        +

        property

        SampleLabelProperty object

        +

        SampleLabelProperty object

        Attribute key-value pair of the sample label, such as the object shape and shape feature.

        +

        Attribute key-value pair of the sample label, such as the object shape and shape feature.

        score

        +

        score

        Float

        +

        Float

        Confidence.

        +

        Confidence.

        type

        +

        type

        Integer

        +

        Integer

        Label type. The options are as follows:

        -
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        +

        Label type. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        -
        Table 8 SampleLabelProperty

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 8 SampleLabelProperty

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        @modelarts:content

        +

        @modelarts:content

        String

        +

        String

        Speech text content, which is a default attribute dedicated to the speech label (including the speech content and speech start and end points).

        +

        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

        +

        @modelarts:end_index

        Integer

        +

        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. Examples are as follows.

        -
        • If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.
        • If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.
        +

        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. Examples are as follows.- If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.- If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.

        @modelarts:end_time

        +

        @modelarts:end_time

        String

        +

        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.)

        +

        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

        +

        @modelarts:feature

        Object

        +

        Object

        Shape feature, which is a default attribute dedicated to the object detection label, with type of List. The upper left corner of an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:

        -
        • bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.
        • polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].
        • circle: consists of the center point and radius, for example, [[100,100],[50]].
        • line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.
        • dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.
        • point: consists of one point, for example, [[0,100]].
        • polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].
        +

        Shape feature, which is a default attribute dedicated to the object detection label, with type of List. The upper left corner of an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:- bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.- polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].- circle: consists of the center point and radius, for example, [[100,100],[50]].- line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- point: consists of one point, for example, [[0,100]].- polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].

        @modelarts:from

        +

        @modelarts:from

        String

        +

        String

        ID of the head entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

        +

        ID of the head entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

        @modelarts:hard

        +

        @modelarts:hard

        String

        +

        String

        Sample labeled as a hard sample or not, which is a default attribute. Options:

        -
        • 0/false: not a hard example
        • 1/true: hard example
        +

        Sample labeled as a hard sample or not, which is a default attribute. Options:

        +
        • 0/false: not a hard example
        • 1/true: hard example

        @modelarts:hard_coefficient

        +

        @modelarts:hard_coefficient

        String

        +

        String

        Coefficient of difficulty of each label level, which is a default attribute. The value range is [0,1].

        +

        Coefficient of difficulty of each label level, which is a default attribute. The value range is [0,1].

        @modelarts:hard_reasons

        +

        @modelarts:hard_reasons

        String

        +

        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. The options are as follows:

        -
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.
        +

        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. The options are as follows:

        +
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.

        @modelarts:shape

        +

        @modelarts:shape

        String

        +

        String

        Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

        -
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline
        +

        Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

        +
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline

        @modelarts:source

        +

        @modelarts:source

        String

        +

        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.

        +

        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

        +

        @modelarts:start_index

        Integer

        +

        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.

        +

        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

        +

        @modelarts:start_time

        String

        +

        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.)

        +

        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

        +

        @modelarts:to

        String

        +

        String

        ID of the tail entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

        +

        ID of the tail entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

        -
        Table 9 SampleMetadata

        Parameter

        +
        - - - - - - - - - - - - - -
        Table 9 SampleMetadata

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        @modelarts:hard

        +

        @modelarts:hard

        Double

        +

        Double

        Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

        -
        • 0: non-hard sample
        • 1: hard sample
        +

        Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

        +
        • 0: non-hard sample
        • 1: hard sample

        @modelarts:hard_coefficient

        +

        @modelarts:hard_coefficient

        Double

        +

        Double

        Coefficient of difficulty of each sample level, which is a default attribute. The value range is [0,1].

        +

        Coefficient of difficulty of each sample level, which is a default attribute. The value range is [0,1].

        @modelarts:hard_reasons

        +

        @modelarts:hard_reasons

        Array of integers

        +

        Array of integers

        ID of a hard sample reason, which is a default attribute. The options are as follows:

        -
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.
        +

        ID of a hard sample reason, which is a default attribute. The options are as follows:

        +
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.

        @modelarts:size

        +

        @modelarts:size

        Array of objects

        +

        Array of objects

        Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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.

        +

        Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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

        Querying the Sample List by Page

        -
        GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/data-annotations/samples
        +

        Example Requests

        Querying the Sample List by Page

        +
        GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/data-annotations/samples
        -

        Example Responses

        Status code: 200

        -

        OK

        -
        {
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
           "sample_count" : 2,
           "samples" : [ {
             "sample_id" : "012f99f3cf405860130b6ed2350c2228",
        @@ -730,7 +728,7 @@
               "type" : 0,
               "property" : { }
             } ],
        -    "source" : "https://test-obs.obs.xxx.com:443/image/aifood/%E5%86%B0%E6%BF%80%E5%87%8C/36502.jpg?AccessKeyId=RciyO7xxxxxxxxxxyUH&Expires=1606296688&x-image-process=image%2Fresize%2Cm_lfit%2Ch_200&Signature=icyvHhFew9vnmy3zh1uZMP15Mbg%3D",
        +    "source" : "https://test-obs.obs.xxx.com:443/image/aifood/%E5%86%B0%E6%BF%80%E5%87%8C/36502.jpg?AccessKeyId=RciyO7RHmhNTfOZVryUH&Expires=1606296688&x-image-process=image%2Fresize%2Cm_lfit%2Ch_200&Signature=icyvHhFew9vnmy3zh1uZMP15Mbg%3D",
             "metadata" : {
               "@modelarts:import_origin" : 0
             },
        @@ -750,7 +748,7 @@
               "type" : 0,
               "property" : { }
             } ],
        -    "source" : "https://test-obs.obs.xxx.com:443/image/aifood/%E5%86%B0%E6%BF%80%E5%87%8C/36139.jpg?AccessKeyId=RciyO7xxxxxxxxxxyUH&Expires=1606296688&x-image-process=image%2Fresize%2Cm_lfit%2Ch_200&Signature=RRr9r2cghLCXk%2B0%2BfHtYJi8eZ4k%3D",
        +    "source" : "https://test-obs.obs.xxx.com:443/image/aifood/%E5%86%B0%E6%BF%80%E5%87%8C/36139.jpg?AccessKeyId=RciyO7RHmhNTfOZVryUH&Expires=1606296688&x-image-process=image%2Fresize%2Cm_lfit%2Ch_200&Signature=RRr9r2cghLCXk%2B0%2BfHtYJi8eZ4k%3D",
             "metadata" : {
               "@modelarts:import_origin" : 0
             },
        @@ -765,38 +763,38 @@
           } ]
         }
        -

        Status Codes

        -

        Status Code

        +

        Status Codes

        +
        - - - - - - - - -

        Status Code

        Description

        +

        Description

        200

        +

        200

        OK

        +

        OK

        401

        +

        401

        Unauthorized

        +

        Unauthorized

        403

        +

        403

        Forbidden

        +

        Forbidden

        404

        +

        404

        Not Found

        +

        Not Found

        -

        Error Codes

        See Error Codes.

        +

        Error Codes

        See Error Codes.

        diff --git a/docs/modelarts/api-ref/ListSearch.html b/docs/modelarts/api-ref/ListSearch.html index 13d3395f..54bec44d 100644 --- a/docs/modelarts/api-ref/ListSearch.html +++ b/docs/modelarts/api-ref/ListSearch.html @@ -1,255 +1,255 @@

        Obtaining Sample Search Condition

        -

        Function

        This API is used to obtain sample search condition.

        +

        Function

        This API is used to obtain sample search condition.

        -

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/search-condition

        +

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/search-condition

        -
        Table 1 Path Parameters

        Parameter

        +
        - - - - - - - - - - -
        Table 1 Path Parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        dataset_id

        +

        dataset_id

        Yes

        +

        Yes

        String

        +

        String

        Dataset ID.

        +

        Dataset ID.

        project_id

        +

        project_id

        Yes

        +

        Yes

        String

        +

        String

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        -

        Request Parameters

        None

        +

        Request Parameters

        None

        -

        Response Parameters

        Status code: 200

        +

        Response Parameters

        Status code: 200

        -
        Table 2 Response body parameters

        Parameter

        +
        - - - - - - - - - - -
        Table 2 Response body parameters

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        labelers

        +

        labelers

        Array of strings

        +

        Array of strings

        List of labeling team members.

        +

        List of labeling team members.

        labels

        +

        labels

        Array of Label objects

        +

        Array of Label objects

        Label list.

        +

        Label list.

        metadata

        +

        metadata

        Map<String,Array<String>>

        +

        Map<String,Array<String>>

        Attribute key-value pair of a dataset.

        +

        Attribute key-value pair of a dataset.

        -
        Table 3 Label

        Parameter

        +
        - - - - - - - - - - - - - -
        Table 3 Label

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        attributes

        +

        attributes

        Array of LabelAttribute objects

        +

        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.

        +

        Multi-dimensional attribute of a label. For example, if the label is music, attributes such as style and artist may be included.

        name

        +

        name

        String

        +

        String

        Label name.

        +

        Label name.

        property

        +

        property

        LabelProperty object

        +

        LabelProperty object

        Basic attribute key-value pair of a label, such as color and shortcut keys.

        +

        Basic attribute key-value pair of a label, such as color and shortcut keys.

        type

        +

        type

        Integer

        +

        Integer

        Label type. The options are as follows:

        -
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        +

        Label type. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        -
        Table 4 LabelAttribute

        Parameter

        +
        - - - - - - - - - - - - - - - - -
        Table 4 LabelAttribute

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        default_value

        +

        default_value

        String

        +

        String

        Default value of a label attribute.

        +

        Default value of a label attribute.

        id

        +

        id

        String

        +

        String

        Label attribute ID.

        +

        Label attribute ID.

        name

        +

        name

        String

        +

        String

        Label attribute name.

        +

        Label attribute name.

        type

        +

        type

        String

        +

        String

        Label attribute type. The options are as follows:

        -
        • text: text
        • select: single-choice drop-down list
        +

        Label attribute type. The options are as follows:

        +
        • text: text
        • select: single-choice drop-down list

        values

        +

        values

        Array of LabelAttributeValue objects

        +

        Array of LabelAttributeValue objects

        List of label attribute values.

        +

        List of label attribute values.

        -
        Table 5 LabelAttributeValue

        Parameter

        +
        - - - - - - - -
        Table 5 LabelAttributeValue

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        id

        +

        id

        String

        +

        String

        Label attribute value ID.

        +

        Label attribute value ID.

        value

        +

        value

        String

        +

        String

        Label attribute value.

        +

        Label attribute value.

        -
        Table 6 LabelProperty

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - -
        Table 6 LabelProperty

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        @modelarts:color

        +

        @modelarts:color

        String

        +

        String

        Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

        +

        Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

        @modelarts:default_shape

        +

        @modelarts:default_shape

        String

        +

        String

        Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

        -
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline
        +

        Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

        +
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline

        @modelarts:from_type

        +

        @modelarts:from_type

        String

        +

        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.

        +

        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

        +

        @modelarts:rename_to

        String

        +

        String

        Default attribute: The new name of the label.

        +

        Default attribute: The new name of the label.

        @modelarts:shortcut

        +

        @modelarts:shortcut

        String

        +

        String

        Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

        +

        Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

        @modelarts:to_type

        +

        @modelarts:to_type

        String

        +

        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.

        +

        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

        Obtaining Sample Search Condition

        -
        GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/data-annotations/search-condition
        +

        Example Requests

        Obtaining Sample Search Condition

        +
        GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/data-annotations/search-condition
        -

        Example Responses

        Status code: 200

        -

        OK

        -
        {
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
           "labels" : [ {
             "name" : "Cat",
             "type" : 0,
        @@ -267,38 +267,38 @@
           "labelers" : [ "human/test_123/test_123", "human/xxx@xxx.com", "human/xxx@xxx.com" ]
         }
        -

        Status Codes

        -

        Status Code

        +

        Status Codes

        +
        - - - - - - - - -

        Status Code

        Description

        +

        Description

        200

        +

        200

        OK

        +

        OK

        401

        +

        401

        Unauthorized

        +

        Unauthorized

        403

        +

        403

        Forbidden

        +

        Forbidden

        404

        +

        404

        Not Found

        +

        Not Found

        -

        Error Codes

        See Error Codes.

        +

        Error Codes

        See Error Codes.

        diff --git a/docs/modelarts/api-ref/ListSearchAlgorithms.html b/docs/modelarts/api-ref/ListSearchAlgorithms.html new file mode 100644 index 00000000..a9d8c347 --- /dev/null +++ b/docs/modelarts/api-ref/ListSearchAlgorithms.html @@ -0,0 +1,218 @@ + + +

        Querying the Hyperparameter Search Algorithm List

        +

        Function

        This API is used tp query the hyperparameter search algorithm list.

        +
        +

        URI

        GET /v2/{project_id}/search-algorithms

        + +
        + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        search_algo_count

        +

        Integer

        +

        Number of hyperparameter search algorithms.

        +

        search_algo_list

        +

        Array of search_algo_list objects

        +

        List of all hyperparameter search algorithms.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 3 search_algo_list

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Hyperparameter search algorithm name.

        +

        params

        +

        Array of params objects

        +

        List of hyperparameter search algorithm parameters.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 4 params

        Parameter

        +

        Type

        +

        Description

        +

        key

        +

        String

        +

        Hyperparameter search algorithm parameter name.

        +

        value

        +

        String

        +

        Hyperparameter search algorithm parameter value.

        +

        type

        +

        String

        +

        Hyperparameter search algorithm parameter type.

        +
        +
        +
        +

        Example Requests

        The following shows how to query information about the search algorithms supported by coding-free hyperparameter search.

        +
        GET https://endpoint/v2/{project_id}/search-algorithms
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "search_algo_count" : 3,
        +  "search_algo_list" : [ {
        +    "name" : "bayes_opt_search",
        +    "params" : [ {
        +      "key" : "kind",
        +      "value" : "ucb",
        +      "type" : "String"
        +    }, {
        +      "key" : "kappa",
        +      "value" : "2.5",
        +      "type" : "Float"
        +    }, {
        +      "key" : "xi",
        +      "value" : "0.0",
        +      "type" : "Float"
        +    }, {
        +      "key" : "num_samples",
        +      "value" : "20",
        +      "type" : "Integer"
        +    }, {
        +      "key" : "seed",
        +      "value" : "1",
        +      "type" : "Integer"
        +    } ],
        +    "description" : "Hyperparameter search using Gaussian process."
        +  }, {
        +    "name" : "tpe_search",
        +    "params" : [ {
        +      "key" : "gamma",
        +      "value" : "0.25",
        +      "type" : "Float"
        +    }, {
        +      "key" : "n_initial_points",
        +      "value" : "20",
        +      "type" : "Integer"
        +    }, {
        +      "key" : "num_samples",
        +      "value" : "20",
        +      "type" : "Integer"
        +    }, {
        +      "key" : "seed",
        +      "value" : "1",
        +      "type" : "Integer"
        +    } ],
        +    "description" : "Hyperparameter search using the tree-structured Parzen estimator algorithm."
        +  }, {
        +    "name" : "anneal_search",
        +    "params" : [ {
        +      "key" : "avg_best_idx",
        +      "value" : "2.0",
        +      "type" : "Float"
        +    }, {
        +      "key" : "shrink_coef",
        +      "value" : "0.1",
        +      "type" : "Float"
        +    }, {
        +      "key" : "num_samples",
        +      "value" : "20",
        +      "type" : "Integer"
        +    }, {
        +      "key" : "seed",
        +      "value" : "1",
        +      "type" : "Integer"
        +    } ],
        +    "description" : "Hyperparameter search using simulated annealing algorithm."
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListStats.html b/docs/modelarts/api-ref/ListStats.html index 43bc8eb0..1a9dabf6 100644 --- a/docs/modelarts/api-ref/ListStats.html +++ b/docs/modelarts/api-ref/ListStats.html @@ -1,414 +1,414 @@

        Querying Dataset Statistics

        -

        Function

        This API is used to query dataset statistics.

        +

        Function

        This API is used to query dataset statistics.

        -

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/stats

        +

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/data-annotations/stats

        -
        Table 1 Path Parameters

        Parameter

        +
        - - - - - - - - - - -
        Table 1 Path Parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        dataset_id

        +

        dataset_id

        Yes

        +

        Yes

        String

        +

        String

        Dataset ID.

        +

        Dataset ID.

        project_id

        +

        project_id

        Yes

        +

        Yes

        String

        +

        String

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        -
        Table 2 Query Parameters

        Parameter

        +
        - - - - - - - - - - - - - - -
        Table 2 Query Parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        email

        +

        email

        No

        +

        No

        String

        +

        String

        Email address of a labeling team member.

        +

        Email address of a labeling team member.

        locale

        +

        locale

        No

        +

        No

        String

        +

        String

        Language. The options are as follows:

        -

        en-us: English (default value)

        +

        Language. The options are as follows:

        +

        en-us: English (default value)

        sample_state

        +

        sample_state

        No

        +

        No

        String

        +

        String

        Query statistics on samples in a specified state. The options are as follows:

        -
        • ALL: labeled
        • NONE: unlabeled
        • UNCHECK: pending acceptance
        • ACCEPTED: accepted
        • REJECTED: rejected
        • UNREVIEWED: pending review
        • REVIEWED: reviewed
        • WORKFORCE_SAMPLED: sampled
        • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
        • WORKFORCE_SAMPLED_CHECKED: sampling checked
        • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
        • WORKFORCE_SAMPLED_REJECTED: sampling rejected
        • AUTO_ANNOTATION: to be confirmed
        +

        Query statistics on samples in a specified state. The options are as follows:

        +
        • ALL: labeled
        • NONE: unlabeled
        • UNCHECK: pending acceptance
        • ACCEPTED: accepted
        • REJECTED: rejected
        • UNREVIEWED: pending review
        • REVIEWED: reviewed
        • WORKFORCE_SAMPLED: sampled
        • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
        • WORKFORCE_SAMPLED_CHECKED: sampling checked
        • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
        • WORKFORCE_SAMPLED_REJECTED: sampling rejected
        • AUTO_ANNOTATION: to be confirmed
        -

        Request Parameters

        None

        +

        Request Parameters

        None

        -

        Response Parameters

        Status code: 200

        +

        Response Parameters

        Status code: 200

        -
        Table 3 Response body parameters

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 3 Response body parameters

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        data_path

        +

        data_path

        String

        +

        String

        Path for storing data of a dataset.

        +

        Path for storing data of a dataset.

        data_spliting_enable

        +

        data_spliting_enable

        Boolean

        +

        Boolean

        Whether the dataset can be split into training set and validation set based on the sample labeling statistics. The options are as follows:

        -
        • true: The dataset can be split into training set and validation set.
        • false: The dataset cannot be split into training set and validation set.
        +

        Whether the dataset can be split into training set and validation set based on the sample labeling statistics. The options are as follows:

        +
        • true: The dataset can be split into training set and validation set.
        • false: The dataset cannot be split into training set and validation set.

        grouped_label_stats

        +

        grouped_label_stats

        Map<String,Array<LabelStats>>

        +

        Map<String,Array<LabelStats>>

        Label statistics grouped by labeling type.

        +

        Label statistics grouped by labeling type.

        hard_detail_stats

        +

        hard_detail_stats

        Map<String,PairOfintAndHardDetail>

        +

        Map<String,PairOfintAndHardDetail>

        Statistics on hard example reasons. The type is Map<Integer, Pair<Integer, HardDetail>>. The key of Map indicates the ID of the hard example reason, the key of Pair indicates the number of times that the hard example reason occurs, and the value of Pair indicates the hard example reason.

        +

        Statistics on hard example reasons. The type is Map<Integer, Pair<Integer, HardDetail>>. The key of Map indicates the ID of the hard example reason, the key of Pair indicates the number of times that the hard example reason occurs, and the value of Pair indicates the hard example reason.

        key_sample_stats

        +

        key_sample_stats

        Map<String,Integer>

        +

        Map<String,Integer>

        Statistics on hard examples.

        +

        Statistics on hard examples.

        label_stats

        +

        label_stats

        Array of LabelStats objects

        +

        Array of LabelStats objects

        List of label statistics.

        +

        List of label statistics.

        metadata_stats

        +

        metadata_stats

        Map<String,Object>

        +

        Map<String,Object>

        Statistics on sample metadata, in JSON format.

        +

        Statistics on sample metadata, in JSON format.

        sample_stats

        +

        sample_stats

        Map<String,Integer>

        +

        Map<String,Integer>

        Statistics on sample status.

        +

        Statistics on sample status.

        -
        Table 4 LabelStats

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - -
        Table 4 LabelStats

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        attributes

        +

        attributes

        Array of LabelAttribute objects

        +

        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.

        +

        Multi-dimensional attribute of a label. For example, if the label is music, attributes such as style and artist may be included.

        count

        +

        count

        Integer

        +

        Integer

        Number of labels.

        +

        Number of labels.

        name

        +

        name

        String

        +

        String

        Label name.

        +

        Label name.

        property

        +

        property

        LabelProperty object

        +

        LabelProperty object

        Basic attribute key-value pair of a label, such as color and shortcut keys.

        +

        Basic attribute key-value pair of a label, such as color and shortcut keys.

        sample_count

        +

        sample_count

        Integer

        +

        Integer

        Number of samples containing the label.

        +

        Number of samples containing the label.

        type

        +

        type

        Integer

        +

        Integer

        Label type. The options are as follows:

        -
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        +

        Label type. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        -
        Table 5 LabelProperty

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - -
        Table 5 LabelProperty

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        @modelarts:color

        +

        @modelarts:color

        String

        +

        String

        Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

        +

        Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

        @modelarts:default_shape

        +

        @modelarts:default_shape

        String

        +

        String

        Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

        -
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline
        +

        Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

        +
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline

        @modelarts:from_type

        +

        @modelarts:from_type

        String

        +

        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.

        +

        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

        +

        @modelarts:rename_to

        String

        +

        String

        Default attribute: The new name of the label.

        +

        Default attribute: The new name of the label.

        @modelarts:shortcut

        +

        @modelarts:shortcut

        String

        +

        String

        Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

        +

        Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

        @modelarts:to_type

        +

        @modelarts:to_type

        String

        +

        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.

        +

        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.

        -
        Table 6 PairOfintAndHardDetail

        Parameter

        +
        - - - - - - - -
        Table 6 PairOfintAndHardDetail

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        key

        +

        key

        Integer

        +

        Integer

        Number of times that a hard example reason occurs.

        +

        Number of times that a hard example reason occurs.

        value

        +

        value

        HardDetail object

        +

        HardDetail object

        Reason for a hard example.

        +

        Reason for a hard example.

        -
        Table 7 HardDetail

        Parameter

        +
        - - - - - - - - - - - - - -
        Table 7 HardDetail

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        alo_name

        +

        alo_name

        String

        +

        String

        Alias.

        +

        Alias.

        id

        +

        id

        Integer

        +

        Integer

        Reason ID.

        +

        Reason ID.

        reason

        +

        reason

        String

        +

        String

        Reason description.

        +

        Reason description.

        suggestion

        +

        suggestion

        String

        +

        String

        Handling suggestion.

        +

        Handling suggestion.

        -
        Table 8 LabelAttribute

        Parameter

        +
        - - - - - - - - - - - - - - - - -
        Table 8 LabelAttribute

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        default_value

        +

        default_value

        String

        +

        String

        Default value of a label attribute.

        +

        Default value of a label attribute.

        id

        +

        id

        String

        +

        String

        Label attribute ID.

        +

        Label attribute ID.

        name

        +

        name

        String

        +

        String

        Label attribute name.

        +

        Label attribute name.

        type

        +

        type

        String

        +

        String

        Label attribute type. The options are as follows:

        -
        • text: text
        • select: single-choice drop-down list
        +

        Label attribute type. The options are as follows:

        +
        • text: text
        • select: single-choice drop-down list

        values

        +

        values

        Array of LabelAttributeValue objects

        +

        Array of LabelAttributeValue objects

        List of label attribute values.

        +

        List of label attribute values.

        -
        Table 9 LabelAttributeValue

        Parameter

        +
        - - - - - - - -
        Table 9 LabelAttributeValue

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        id

        +

        id

        String

        +

        String

        Label attribute value ID.

        +

        Label attribute value ID.

        value

        +

        value

        String

        +

        String

        Label attribute value.

        +

        Label attribute value.

        -

        Example Requests

        Querying Dataset Statistics

        -
        GET https://{endpoint}/v2/{project_id}/datasets/WxCREuCkBSAlQr9xrde/data-annotations/stats
        +

        Example Requests

        Querying Dataset Statistics

        +
        GET https://{endpoint}/v2/{project_id}/datasets/WxCREuCkBSAlQr9xrde/data-annotations/stats
        -

        Example Responses

        Status code: 200

        -

        OK

        -
        {
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
           "label_stats" : [ {
             "name" : "Rabbit",
             "type" : 1,
        @@ -437,38 +437,38 @@
           "data_spliting_enable" : false
         }
        -

        Status Codes

        -

        Status Code

        +

        Status Codes

        +
        - - - - - - - - -

        Status Code

        Description

        +

        Description

        200

        +

        200

        OK

        +

        OK

        401

        +

        401

        Unauthorized

        +

        Unauthorized

        403

        +

        403

        Forbidden

        +

        Forbidden

        404

        +

        404

        Not Found

        +

        Not Found

        -

        Error Codes

        See Error Codes.

        +

        Error Codes

        See Error Codes.

        diff --git a/docs/modelarts/api-ref/ListTasks.html b/docs/modelarts/api-ref/ListTasks.html new file mode 100644 index 00000000..991fb47a --- /dev/null +++ b/docs/modelarts/api-ref/ListTasks.html @@ -0,0 +1,1725 @@ + + +

        Querying the Intelligent Task List by Page

        +

        Function

        This API is used to query the intelligent task list by page, including auto labeling and auto grouping tasks. You can specify the type parameter to query the list of a specific type of tasks.- Auto labeling: Learning and training are performed based on the selected labels and images and an existing model is selected to quickly label the remaining images. Auto labeling includes active learning and pre-labeling.* Active learning: The system uses semi-supervised learning and hard example filtering to perform auto labeling, reducing manual labeling workload and helping you find hard examples.* Pre-labeling: You select a model on the Model Management page for auto labeling.- Auto grouping: Unlabeled images are clustered using the clustering algorithm and then processed based on the clustering result. Images can be labeled by group or cleaned.

        +
        +

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/tasks

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        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.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        limit

        +

        No

        +

        Integer

        +

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

        +

        offset

        +

        No

        +

        Integer

        +

        Start page of the paging list. The default value is 0.

        +

        task_name

        +

        No

        +

        String

        +

        Task name filtering.

        +

        type

        +

        No

        +

        String

        +

        Task type. If this parameter is not delivered, the auto labeling (active learning or pre-labeling) task list is returned by default. The options are as follows:

        +
        • auto-label: active learning
        • pre-label: pre-labeling
        • auto-grouping: auto grouping
        • auto-deploy: one-click model deployment
        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        tasks

        +

        Array of RunningTask objects

        +

        Task list.

        +

        total_count

        +

        Integer

        +

        Total number of tasks.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 RunningTask

        Parameter

        +

        Type

        +

        Description

        +

        annotated_sample_count

        +

        Integer

        +

        Number of labeled samples.

        +

        code

        +

        String

        +

        Error code.

        +

        config

        +

        SmartTaskConfig object

        +

        Task configuration.

        +

        create_time

        +

        String

        +

        Task creation time.

        +

        dataset_id

        +

        String

        +

        Dataset ID.

        +

        elapsed_time

        +

        Long

        +

        Execution time.

        +

        error_code

        +

        String

        +

        Error code.

        +

        error_detail

        +

        String

        +

        Error details.

        +

        error_msg

        +

        String

        +

        Error message.

        +

        message

        +

        String

        +

        Error message.

        +

        model_id

        +

        String

        +

        Model ID.

        +

        model_name

        +

        String

        +

        Model name.

        +

        model_version

        +

        String

        +

        Model version.

        +

        progress

        +

        Float

        +

        Task progress percentage.

        +

        result

        +

        Result object

        +

        Task result.

        +

        status

        +

        Integer

        +

        Task status.

        +

        task_id

        +

        String

        +

        Task ID.

        +

        task_name

        +

        String

        +

        Task name.

        +

        total_sample_count

        +

        Integer

        +

        Total number of samples.

        +

        type

        +

        Integer

        +

        Task type.

        +

        unconfirmed_sample_count

        +

        Integer

        +

        Number of samples to be confirmed.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 5 SmartTaskConfig

        Parameter

        +

        Type

        +

        Description

        +

        algorithm_type

        +

        String

        +

        Algorithm type for auto labeling. Options:

        +
        • fast: Only labeled samples are used for training. This type of algorithm achieves faster labeling.
        • accurate: In addition to labeled samples, unlabeled samples are used for semi-supervised training. This type of algorithm achieves more accurate labeling.
        +

        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. The options are as follows:

        +
        • true: Enable sample collection. (Default value)
        • false: Do not enable sample collection.
        +

        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. The options are as follows:

        +
        • 1: tree structure. For example: cat/1.jpg,rabbit/2.jpg.
        • 2: tile structure. For example: 1.jpg, 1.txt; 2.jpg,2.txt.
        +

        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-Dataset ID/annotation/auto-deploy/. Example: /test/work_1608083108676/dataset123-g6IO9qSu6hoxwCAirfm/annotation/auto-deploy/.

        +

        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. The options are as follows:

        +
        • 0: Save to OBS.
        • 1: Save to samples.
        +

        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. The options are as follows:

        +
        • Default: default format
        • CarbonData: CarbonData (supported only by table datasets)
        • CSV: CSV
        +

        worker_server_num

        +

        Integer

        +

        Number of workers in a training job.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 6 ExportParams

        Parameter

        +

        Type

        +

        Description

        +

        clear_hard_property

        +

        Boolean

        +

        Whether to clear hard example attributes. The options are as follows:

        +
        • true: Clear hard example attributes. (Default value)
        • false: Do not clear hard example attributes.
        +

        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. The options are as follows:

        +
        • DIR: Export data to OBS. (Default value)
        • NEW_DATASET: Export data to a new dataset.
        +

        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. The options are as follows:

        +
        • true: Allocate the training set and validation set.
        • false: Do not allocate the training set and validation set. (Default value)
        +

        sample_state

        +

        String

        +

        Sample status. The options are as follows:

        +
        • ALL: labeled
        • NONE: unlabeled
        • UNCHECK: pending acceptance
        • ACCEPTED: accepted
        • REJECTED: rejected
        • UNREVIEWED: pending review
        • REVIEWED: reviewed
        • WORKFORCE_SAMPLED: sampled
        • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
        • WORKFORCE_SAMPLED_CHECKED: sampling checked
        • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
        • WORKFORCE_SAMPLED_REJECTED: sampling rejected
        • AUTO_ANNOTATION: to be confirmed
        +

        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.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 7 SearchCondition

        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. The options are as follows:

        +
        • 0: non-hard sample
        • 1: hard sample
        +

        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. The options are as follows:- month: Search for samples added from 30 days ago to the current day.- day: Search for samples added from yesterday (one day ago) to the current day.- yyyyMMdd-yyyyMMdd: Search for samples added in a specified period (at most 30 days), in the format of Start date-End date. For example, 20190901-2019091501 indicates that samples generated from September 1 to September 15, 2019 are searched.

        +

        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.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 8 SearchLabels

        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. The options are as follows:

        +
        • OR: OR operation
        • AND: AND operation
        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 9 SearchLabel

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Label name.

        +

        op

        +

        String

        +

        Operation type between multiple attributes. The options are as follows:

        +
        • OR: OR operation
        • AND: AND operation
        +

        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. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 10 SearchProp

        Parameter

        +

        Type

        +

        Description

        +

        op

        +

        String

        +

        Relationship between attribute values. The options are as follows:

        +
        • AND: AND relationship
        • OR: OR relationship
        +

        props

        +

        Map<String,Array<String>>

        +

        Search criteria of an attribute. Multiple search criteria can be set.

        +
        +
        + +
        + + + + + + + + + +
        Table 11 Flavor

        Parameter

        +

        Type

        +

        Description

        +

        code

        +

        String

        +

        Attribute code of a resource specification, which is used for task creating.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 12 InfConfig

        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, such as plaintext passwords, 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.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 13 TrainingParameter

        Parameter

        +

        Type

        +

        Description

        +

        label

        +

        String

        +

        Parameter name.

        +

        value

        +

        String

        +

        Parameter value.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 14 Result

        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. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet
        • 200: sound classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 400: table dataset
        • 600: video labeling
        • 900: custom format
        +

        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.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 15 Event

        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. The options are as follows:

        +
        • waiting: waiting
        • running: running
        • failed: failed
        • success: successful
        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 16 HardSelectTask

        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.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 17 SampleLabels

        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. The options are as follows:

        +
        • 0: image
        • 1: text
        • 2: speech
        • 4: table
        • 6: video
        • 9: custom format
        +

        sample_usage

        +

        String

        +

        Sample usage. The options are as follows:

        +
        • TRAIN: training
        • EVAL: evaluation
        • TEST: test
        • INFERENCE: inference
        +

        source

        +

        String

        +

        Source address of sample data.

        +

        worker_id

        +

        String

        +

        ID of a labeling team member.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 18 SampleLabel

        Parameter

        +

        Type

        +

        Description

        +

        annotated_by

        +

        String

        +

        Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

        +
        • human: manual labeling
        • auto: automatic labeling
        +

        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. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 19 SampleLabelProperty

        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. Examples are as follows.- If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.- If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.

        +

        @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 an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:- bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.- polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].- circle: consists of the center point and radius, for example, [[100,100],[50]].- line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- point: consists of one point, for example, [[0,100]].- polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].

        +

        @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:

        +
        • 0/false: not a hard example
        • 1/true: hard example
        +

        @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. The options are as follows:

        +
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.
        +

        @modelarts:shape

        +

        String

        +

        Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

        +
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline
        +

        @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.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 20 SampleMetadata

        Parameter

        +

        Type

        +

        Description

        +

        @modelarts:hard

        +

        Double

        +

        Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

        +
        • 0: non-hard sample
        • 1: hard sample
        +

        @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. The options are as follows:

        +
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.
        +

        @modelarts:size

        +

        Array of objects

        +

        Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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

        Querying the List of Auto Labeling, One-Click Model Deployment, or Auto Grouping Tasks by Page

        +
        GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/tasks?offset=0&limit=10
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "tasks" : [ {
        +    "dataset_id" : "OBegCXHxTJ2JHRAZWr0",
        +    "task_id" : "14cyxyu6UXaNT3lrPFl",
        +    "type" : 1,
        +    "create_time" : "2020-11-03 15:22:39",
        +    "status" : 3,
        +    "code" : "ModelArts.4996",
        +    "message" : "prelabel task execute successfully.",
        +    "elapsed_time" : 531,
        +    "result" : {
        +      "service_id" : "ee2ade80-0967-4ef3-b6da-e8c873017b9a",
        +      "service_name" : "prelabel_infer_1604388201993_xubo_cls_d910_2_993",
        +      "hard_select_tasks" : [ {
        +        "id" : "887c4ac6-26c8-4ca3-b07a-cd75e16fdc2d",
        +        "hard_select_task_id" : "86711ab3-8ceb-4b0e-bd52-8545b184a2a7",
        +        "dataset_id" : "OBegCXHxTJ2JHRAZWr0",
        +        "dataset_name" : "xubo_cls_d910_2",
        +        "task_status" : "import_dataset_completed",
        +        "time" : 262,
        +        "create_at" : 0,
        +        "update_at" : 0
        +      } ],
        +      "continuity" : false
        +    },
        +    "export_type" : 0,
        +    "progress" : 100.0,
        +    "total_sample_count" : 246,
        +    "annotated_sample_count" : 38,
        +    "unconfirmed_sample_count" : 208,
        +    "model_id" : "c717a39f-c64f-45df-a9d3-be9ed79cdcb4",
        +    "model_name" : "auto-deploy-50041602581620628",
        +    "model_version" : "0.0.1",
        +    "config" : {
        +      "ambiguity" : false,
        +      "name" : "5fXxR01TyUoiobqNEd9",
        +      "worker_server_num" : 0,
        +      "inf_config_list" : [ {
        +        "model_id" : null,
        +        "specification" : "modelarts.vm.cpu.2u",
        +        "weight" : 0,
        +        "instance_count" : 1,
        +        "envs" : null
        +      } ],
        +      "collect_sample" : false,
        +      "confidence_scope" : "0.0-0.5",
        +      "algorithm_type" : "supervisory",
        +      "image_brightness" : false,
        +      "image_colorfulness" : false
        +    }
        +  }, {
        +    "dataset_id" : "OBegCXHxTJ2JHRAZWr0",
        +    "task_id" : "5QPy73VwnwHi5NqvbcP",
        +    "type" : 0,
        +    "create_time" : "2020-10-31 16:11:37",
        +    "status" : 3,
        +    "code" : "ModelArts.4996",
        +    "message" : "task executed successfully.",
        +    "elapsed_time" : 397,
        +    "result" : {
        +      "train_job_name" : "BNFURaEyftGNMITaBiv",
        +      "train_job_id" : "74679",
        +      "version_id" : "89745",
        +      "continuity" : false
        +    },
        +    "export_type" : 0,
        +    "progress" : 100.0,
        +    "total_sample_count" : 246,
        +    "annotated_sample_count" : 38,
        +    "unconfirmed_sample_count" : 198,
        +    "model_name" : "Supervisory",
        +    "model_version" : "0.0.1",
        +    "config" : {
        +      "ambiguity" : false,
        +      "worker_server_num" : 0,
        +      "collect_sample" : false,
        +      "algorithm_type" : "fast",
        +      "image_brightness" : false,
        +      "image_colorfulness" : false
        +    }
        +  } ],
        +  "total_count" : 2,
        +  "exist_running_deploy_task" : false
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListTrainingJobEngines.html b/docs/modelarts/api-ref/ListTrainingJobEngines.html new file mode 100644 index 00000000..5df4bb8c --- /dev/null +++ b/docs/modelarts/api-ref/ListTrainingJobEngines.html @@ -0,0 +1,237 @@ + + +

        Querying the AI Engine List Supported by a Training Job

        +

        Function

        This API is used to query the list of AI engines supported by a training job.

        +
        +

        URI

        GET /v2/{project_id}/training-job-engines

        + +
        + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        total

        +

        Integer

        +

        Total number of training job engines.

        +

        items

        +

        Array of items objects

        +

        List of engine specifications.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 3 items

        Parameter

        +

        Type

        +

        Description

        +

        engine_id

        +

        String

        +

        Engine ID, for example, caffe-1.0.0-python2.7.

        +

        engine_name

        +

        String

        +

        Engine name, for example, Caffe.

        +

        engine_version

        +

        String

        +

        Engine version. Engines with the same name have multiple versions, for example, Caffe-1.0.0-python2.7 of Python 2.7.

        +

        v1_compatible

        +

        Boolean

        +

        Whether the v1 compatibility mode is used.

        +

        run_user

        +

        String

        +

        User UID started by default by the engine.

        +

        image_info

        +

        image_info object

        +

        Engine information.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 4 image_info

        Parameter

        +

        Type

        +

        Description

        +

        cpu_image_url

        +

        String

        +

        Image with the matched CPU specifications.

        +

        gpu_image_url

        +

        String

        +

        Image with the matched GPU or Ascend specifications.

        +

        image_version

        +

        String

        +

        Image version.

        +
        +
        +
        +

        Example Requests

        The following shows how to query all public engine specifications of a training job (only part of the specifications are displayed because there are too many engines).

        +
        GET    https://endpoint/v2/{project_id}/training-job-engines
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "total" : 20,
        +  "items" : [ {
        +    "engine_id" : "caffe-1.0.0-python2.7",
        +    "engine_name" : "Caffe",
        +    "engine_version" : "Caffe-1.0.0-python2.7",
        +    "v1_compatible" : true,
        +    "run_user" : "",
        +    "image_info" : {
        +      "cpu_image_url" : "modelarts-job-dev-image/caffe1-cpu-cp27:1.0.0",
        +      "gpu_image_url" : "modelarts-job-dev-image/caffe1-gpu-cuda8-cp27:1.0.0",
        +      "image_version" : "3.1.0"
        +    }
        +  }, {
        +    "engine_id" : "horovod-cp36-tf-1.16.2",
        +    "engine_name" : "Horovod",
        +    "engine_version" : "0.16.2-TF-1.13.1-python3.6",
        +    "v1_compatible" : true,
        +    "run_user" : "",
        +    "image_info" : {
        +      "cpu_image_url" : "modelarts-job-dev-image/tensorflow-gpu-cuda10-cp36-horovod0162:1.13.1",
        +      "gpu_image_url" : "modelarts-job-dev-image/tensorflow-gpu-cuda10-cp36-horovod0162:1.13.1",
        +      "image_version" : "3.2.1"
        +    }
        +  }, {
        +    "engine_id" : "horovod_0.20.0-tensorflow_2.1.0-cuda_10.1-py_3.7-ubuntu_18.04-x86_64",
        +    "engine_name" : "Horovod",
        +    "engine_version" : "horovod_0.20.0-tensorflow_2.1.0-cuda_10.1-py_3.7-ubuntu_18.04-x86_64",
        +    "v1_compatible" : false,
        +    "run_user" : "1102",
        +    "image_info" : {
        +      "cpu_image_url" : "aip/horovod_tensorflow:train",
        +      "gpu_image_url" : "aip/horovod_tensorflow:train",
        +      "image_version" : "horovod_0.20.0-tensorflow_2.1.0-cuda_10.1-py_3.7-ubuntu_18.04-x86_64-20210912152543-1e0838d"
        +    }
        +  }, "......", {
        +    "engine_id" : "tensorflow_2.1.0-cuda_10.1-py_3.7-ubuntu_18.04-x86_64",
        +    "engine_name" : "TensorFlow",
        +    "engine_version" : "tensorflow_2.1.0-cuda_10.1-py_3.7-ubuntu_18.04-x86_64",
        +    "v1_compatible" : false,
        +    "run_user" : "1102",
        +    "image_info" : {
        +      "cpu_image_url" : "aip/tensorflow_2_1:train",
        +      "gpu_image_url" : "aip/tensorflow_2_1:train",
        +      "image_version" : "tensorflow_2.1.0-cuda_10.1-py_3.7-ubuntu_18.04-x86_64-20210912152543-1e0838d"
        +    }
        +  }, {
        +    "engine_id" : "xgboost-sklearn-python3.6",
        +    "engine_name" : "XGBoost-Sklearn",
        +    "engine_version" : "XGBoost-0.80-Sklearn-0.18.1-python3.6",
        +    "v1_compatible" : true,
        +    "run_user" : "",
        +    "image_info" : {
        +      "cpu_image_url" : "modelarts-job-dev-image/python-train-py36:secure",
        +      "gpu_image_url" : "",
        +      "image_version" : "2.0.10-20211101113705"
        +    }
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        + + diff --git a/docs/modelarts/api-ref/ListTrainingJobFlavors.html b/docs/modelarts/api-ref/ListTrainingJobFlavors.html new file mode 100644 index 00000000..fa404065 --- /dev/null +++ b/docs/modelarts/api-ref/ListTrainingJobFlavors.html @@ -0,0 +1,418 @@ + + +

        Querying the Public Flavor List Supported by a Training Job

        +

        Function

        This API is used to query the list of public flavors supported by a training job.

        +
        +

        URI

        GET /v2/{project_id}/training-job-flavors

        + +
        + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        + +
        + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        flavor_type

        +

        No

        +

        String

        +

        Specified flavor type for query. If this parameter is left blank, all flavor types are obtained. Options:

        +
        • CPU
        • GPU
        • Ascend
        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        total_count

        +

        Integer

        +

        Total number of resource flavors of a training job.

        +

        flavors

        +

        Array of FlavorResponse objects

        +

        List of resource flavors of a training job.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 FlavorResponse

        Parameter

        +

        Type

        +

        Description

        +

        flavor_id

        +

        String

        +

        ID of the resource flavor.

        +

        flavor_name

        +

        String

        +

        Name of the resource flavor.

        +

        max_num

        +

        Integer

        +

        Maximum number of nodes in a resource flavor.

        +

        flavor_type

        +

        String

        +

        Resource flavor type. Options:

        +
        • CPU
        • GPU
        • Ascend
        +

        billing

        +

        billing object

        +

        Billing information of a resource flavor.

        +

        flavor_info

        +

        flavor_info object

        +

        Resource flavor details.

        +

        attributes

        +

        Map<String,String>

        +

        Other specification attributes.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 5 billing

        Parameter

        +

        Type

        +

        Description

        +

        code

        +

        String

        +

        Billing code.

        +

        unit_num

        +

        Integer

        +

        Number of billing units.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 6 flavor_info

        Parameter

        +

        Type

        +

        Description

        +

        max_num

        +

        Integer

        +

        Maximum number of nodes that can be selected. The value 1 indicates that the distributed mode is not supported.

        +

        cpu

        +

        cpu object

        +

        CPU specifications.

        +

        gpu

        +

        gpu object

        +

        GPU specifications.

        +

        npu

        +

        npu object

        +

        Ascend flavors.

        +

        memory

        +

        memory object

        +

        Memory information.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 7 cpu

        Parameter

        +

        Type

        +

        Description

        +

        arch

        +

        String

        +

        CPU architecture.

        +

        core_num

        +

        Integer

        +

        Number of cores.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 8 gpu

        Parameter

        +

        Type

        +

        Description

        +

        unit_num

        +

        Integer

        +

        Number of GPUs.

        +

        product_nume

        +

        String

        +

        Product name.

        +

        memory

        +

        String

        +

        Memory.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 9 npu

        Parameter

        +

        Type

        +

        Description

        +

        unit_num

        +

        String

        +

        Number of NPUs.

        +

        product_name

        +

        String

        +

        Product name.

        +

        memory

        +

        String

        +

        Memory.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 10 memory

        Parameter

        +

        Type

        +

        Description

        +

        size

        +

        Integer

        +

        Memory size.

        +

        unit

        +

        String

        +

        Number of memory units.

        +
        +
        +
        +

        Example Requests

        The following shows how to query the public CPU resource flavors of training jobs.

        +
        GET    https://endpoint/v2/{project_id}/training-job-flavors?flavor_type=CPU
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "total_count" : 2,
        +  "flavors" : [ {
        +    "flavor_id" : "modelarts.vm.cpu.2u",
        +    "flavor_name" : "Computing CPU(2U) instance",
        +    "flavor_type" : "CPU",
        +    "billing" : {
        +      "code" : "modelarts.vm.cpu.2u",
        +      "unit_num" : 1
        +    },
        +    "flavor_info" : {
        +      "max_num" : 1,
        +      "cpu" : {
        +        "arch" : "x86",
        +        "core_num" : 2
        +      },
        +      "memory" : {
        +        "size" : 8,
        +        "unit" : "GB"
        +      },
        +      "disk" : {
        +        "size" : 50,
        +        "unit" : "GB"
        +      }
        +    }
        +  }, {
        +    "flavor_id" : "modelarts.vm.cpu.8u",
        +    "flavor_name" : "Computing CPU(8U) instance",
        +    "flavor_type" : "CPU",
        +    "billing" : {
        +      "code" : "modelarts.vm.cpu.8u",
        +      "unit_num" : 1
        +    },
        +    "flavor_info" : {
        +      "max_num" : 16,
        +      "cpu" : {
        +        "arch" : "x86",
        +        "core_num" : 8
        +      },
        +      "memory" : {
        +        "size" : 32,
        +        "unit" : "GB"
        +      },
        +      "disk" : {
        +        "size" : 50,
        +        "unit" : "GB"
        +      }
        +    }
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        + + diff --git a/docs/modelarts/api-ref/ListTrainingJobs.html b/docs/modelarts/api-ref/ListTrainingJobs.html new file mode 100644 index 00000000..e05263ff --- /dev/null +++ b/docs/modelarts/api-ref/ListTrainingJobs.html @@ -0,0 +1,2315 @@ + + +

        Querying a Training Job List

        +

        Function

        This API is used to query the the created training jobs that meet the search criteria.

        +
        +

        URI

        POST /v2/{project_id}/training-job-searches

        + +
        + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Request body parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        offset

        +

        No

        +

        Integer

        +

        Offset for querying jobs. The minimum value is 0. For example, if this parameter is set to 1, the query starts from the second one.

        +

        limit

        +

        No

        +

        Integer

        +

        Maximum number of jobs to be queried. The value ranges from 1 to 50.

        +

        sort_by

        +

        No

        +

        String

        +

        Metric for sorting jobs to be queried. create_time is used by default for sorting.

        +

        order

        +

        No

        +

        String

        +

        Order of queried jobs. The default value is desc, indicating the descending order. You can also set this parameter to asc, indicating the ascending order.

        +

        Default: desc

        +

        group_by

        +

        No

        +

        String

        +

        Condition for grouping the jobs to be queried.

        +

        filters

        +

        No

        +

        Array of filters objects

        +

        Filters for querying jobs.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 3 filters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        key

        +

        No

        +

        String

        +

        Grouping condition key.

        +

        operator

        +

        No

        +

        String

        +

        Search criteria, which can be between, like, in, or not

        +

        Default: in

        +

        value

        +

        No

        +

        Array of strings

        +

        Value of the grouping condition key.

        +
        +
        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        total

        +

        Integer

        +

        Total number of queried jobs of the current user.

        +

        count

        +

        Integer

        +

        Total number of jobs that meet the search criteria of the current user.

        +

        limit

        +

        Integer

        +

        Maximum number of jobs to be queried. The value ranges from 1 to 50.

        +

        offset

        +

        Integer

        +

        Offset for querying jobs. The minimum value is 0. For example, if this parameter is set to 1, the query starts from the second one.

        +

        sort_by

        +

        String

        +

        Metric for sorting jobs to be queried. create_time is used by default for sorting.

        +

        order

        +

        String

        +

        Order of queried jobs. The default value is desc, indicating the descending order. You can also set this parameter to asc, indicating the ascending order.

        +

        group_by

        +

        String

        +

        Condition for grouping the jobs to be queried.

        +

        workspace_id

        +

        String

        +

        Workspace where a job is located. The default value is 0.

        +

        ai_project

        +

        String

        +

        AI project to which a job belongs. The default value is default-ai-project.

        +

        items

        +

        Array of JobResponse objects

        +

        Jobs that meet the search criteria of the current user.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 5 JobResponse

        Parameter

        +

        Type

        +

        Description

        +

        kind

        +

        String

        +

        Training job type, which is job by default. Options:

        +
        • job: Training job

          +
        • hetero_job: Heterogeneous job

          +
        • autosearch_job: Auto search job

          +
        • mrs_job: MRS job [- edge_job: Edge job] (tag:hk,hc,fcs,fcs-super)

          +
        +

        metadata

        +

        JobMetadata object

        +

        Metadata of a training job.

        +

        status

        +

        Status object

        +

        Status of a training job. You do not need to set this parameter when creating a job.

        +

        algorithm

        +

        JobAlgorithmResponse object

        +

        Algorithm for training jobs. The following formats are supported:

        +
        • id: Only the algorithm ID is used.

          +
        • subscription_id+item_version_id: The subscription ID and version ID of the algorithm are used.

          +
        • code_dir+boot_file: The code directory and boot file of a training job are used.

          +
        +

        tasks

        +

        Array of TaskResponse objects

        +

        List of tasks in heterogeneous training jobs.

        +

        spec

        +

        spec object

        +

        Specifications of a training job.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 6 JobMetadata

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Training job ID, which is generated and returned by ModelArts after the training job is created.

        +

        name

        +

        String

        +

        Name of a training job. The value must contain 1 to 64 characters consisting of only digits, letters, underscores (_), and hyphens (-).

        +

        workspace_id

        +

        String

        +

        Workspace where a job is located. The default value is 0.

        +

        description

        +

        String

        +

        Training job description. The value must contain 0 to 256 characters. The default value is NULL.

        +

        create_time

        +

        Long

        +

        Timestamp when a training job is created, in milliseconds. The value is generated and returned by ModelArts after the job is created.

        +

        user_name

        +

        String

        +

        Username for creating a training job. The username is generated and returned by ModelArts after the training job is created.

        +

        annotations

        +

        Map<String,String>

        +

        Declaration template of a training job. For heterogeneous jobs, the default value of job_template is Template RL. For other jobs, the default value is Template DL.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 7 Status

        Parameter

        +

        Type

        +

        Description

        +

        phase

        +

        String

        +

        Level-1 status of a training job. The value is stable. The options are as follows: Creating Pending Running Failed Completed, Terminating Terminated Abnormal

        +

        secondary_phase

        +

        String

        +

        Level-2 status of a training job. The value is unstable. The options are as follows: Creating Queuing Running Failed Completed Terminating Terminated CreateFailed TerminatedFailed Unknown Lost

        +

        duration

        +

        Long

        +

        Running duration of a training job, in milliseconds

        +

        node_count_metrics

        +

        Array<Array<Integer>>

        +

        Node count changes during the training job running period.

        +

        tasks

        +

        Array of strings

        +

        Tasks of a training job.

        +

        start_time

        +

        String

        +

        Start time of a training job. The value is in timestamp format.

        +

        task_statuses

        +

        Array of task_statuses objects

        +

        Status of a training job task.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 8 task_statuses

        Parameter

        +

        Type

        +

        Description

        +

        task

        +

        String

        +

        Name of a training job task.

        +

        exit_code

        +

        Integer

        +

        Exit code of a training job task.

        +

        message

        +

        String

        +

        Error message of a training job task.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 9 JobAlgorithmResponse

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Algorithm for training jobs. Options:

        +
        • id: Only the algorithm ID is used.

          +
        • subscription_id+item_version_id: The subscription ID and version ID of the algorithm are used.

          +
        • code_dir+boot_file: The code directory and boot file of a training job are used.

          +
        +

        name

        +

        String

        +

        Algorithm name.

        +

        subscription_id

        +

        String

        +

        Subscription ID of the subscription algorithm. This parameter must be used together with item_version_id.

        +

        item_version_id

        +

        String

        +

        Version ID of the subscription algorithm. This parameter must be used together with subscription_id.

        +

        code_dir

        +

        String

        +

        Code directory of a training job, for example, /usr/app/. This parameter must be used together with boot_file. If id or subscription_id+item_version_id is set, leave it blank.

        +

        boot_file

        +

        String

        +

        Boot file of a training job, which needs to be stored in the code directory, for example, /usr/app/boot.py. This parameter must be used together with code_dir. If id or subscription_id+item_version_id is set, leave it blank.

        +

        autosearch_config_path

        +

        String

        +

        YAML configuration path of auto search jobs. An OBS URL is required.

        +

        autosearch_framework_path

        +

        String

        +

        Framework code directory of auto search jobs. An OBS URL is required.

        +

        command

        +

        String

        +

        Boot command used to start the container of the custom image used by a training job. You can set this parameter to code_dir.

        +

        parameters

        +

        Array of Parameter objects

        +

        Running parameters of a training job.

        +

        policies

        +

        policies object

        +

        Policies supported by jobs.

        +

        inputs

        +

        Array of Input objects

        +

        Input of a training job.

        +

        outputs

        +

        Array of Output objects

        +

        Output of a training job.

        +

        engine

        +

        engine object

        +

        Engine of a training job. Leave this parameter blank if the job is created using id of the algorithm management API or subscription_id+item_version_id of the subscription algorithm API.

        +

        environments

        +

        Array of Map<String,String> objects

        +

        Environment variables of a training job. The format is key: value. Leave this parameter blank.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 10 Parameter

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Parameter name.

        +

        value

        +

        String

        +

        Parameter value.

        +

        description

        +

        String

        +

        Parameter description.

        +

        constraint

        +

        constraint object

        +

        Parameter constraint.

        +

        i18n_description

        +

        i18n_description object

        +

        Internationalization description.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 11 constraint

        Parameter

        +

        Type

        +

        Description

        +

        type

        +

        String

        +

        Parameter type.

        +

        editable

        +

        Boolean

        +

        Whether the parameter is editable.

        +

        required

        +

        Boolean

        +

        Whether the parameter is mandatory.

        +

        sensitive

        +

        Boolean

        +

        Whether the parameter is sensitive.

        +

        valid_type

        +

        String

        +

        Valid type.

        +

        valid_range

        +

        Array of strings

        +

        Valid range.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 12 i18n_description

        Parameter

        +

        Type

        +

        Description

        +

        language

        +

        String

        +

        Internationalization language.

        +

        description

        +

        String

        +

        Description.

        +
        +
        + +
        + + + + + + + + + +
        Table 13 policies

        Parameter

        +

        Type

        +

        Description

        +

        auto_search

        +

        auto_search object

        +

        Hyperparameter search configuration.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 15 reward_attrs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Metric name.

        +

        mode

        +

        String

        +

        Search direction.

        +
        • max: A larger metric value indicates better performance.

          +
        • min: A smaller metric value indicates better performance.

          +
        +

        regex

        +

        String

        +

        Regular expression of a metric.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 16 search_params

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Hyperparameter name.

        +

        param_type

        +

        String

        +

        Parameter type.

        +
        • continuous: The parameter is a continuous value.

          +
        • discreate: The parameter is a discrete value.

          +
        +

        lower_bound

        +

        String

        +

        Lower bound of the hyperparameter.

        +

        upper_bound

        +

        String

        +

        Upper bound of the hyperparameter.

        +

        discrete_points_num

        +

        String

        +

        Number of discrete points of a continuous hyperparameter.

        +

        discrete_values

        +

        Array of strings

        +

        List of discrete hyperparameter values.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 17 algo_configs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the search algorithm.

        +

        params

        +

        Array of AutoSearchAlgoConfigParameter objects

        +

        Search algorithm parameters.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 18 AutoSearchAlgoConfigParameter

        Parameter

        +

        Type

        +

        Description

        +

        key

        +

        String

        +

        Parameter key.

        +

        value

        +

        String

        +

        Parameter value.

        +

        type

        +

        String

        +

        Parameter type.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 19 Input

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data input channel.

        +

        description

        +

        String

        +

        Description of the data input channel.

        +

        local_dir

        +

        String

        +

        Local directory of the container to which the data input channel is mapped.

        +

        remote

        +

        InputDataInfo object

        +

        Data input. Options:

        +
        • dataset: Dataset as the data input

          +
        • obs: OBS path as the data input

          +
        +

        remote_constraint

        +

        Array of remote_constraint objects

        +

        Data input constraint.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 20 InputDataInfo

        Parameter

        +

        Type

        +

        Description

        +

        dataset

        +

        dataset object

        +

        Dataset as the data input.

        +

        obs

        +

        obs object

        +

        OBS in which data input and output stored.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 21 dataset

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Dataset ID of a training job.

        +

        version_id

        +

        String

        +

        Dataset version ID of a training job.

        +

        obs_url

        +

        String

        +

        OBS URL of the dataset required by a training job. ModelArts automatically parses and generates the URL based on the dataset and dataset version IDs. For example, /usr/data/.

        +
        +
        + +
        + + + + + + + + + +
        Table 22 obs

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        OBS URL of the dataset required by a training job. For example, /usr/data/.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 23 remote_constraint

        Parameter

        +

        Type

        +

        Description

        +

        data_type

        +

        String

        +

        Data input type, including the data storage location and dataset.

        +

        attributes

        +

        String

        +

        Attributes if a dataset is used as the data input. Options:

        +
        • data_format: Data format

          +
        • data_segmentation: Data segmentation

          +
        • dataset_type: Labeling type

          +
        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 24 Output

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data output channel.

        +

        description

        +

        String

        +

        Description of the data output channel.

        +

        local_dir

        +

        String

        +

        Local directory of the container to which the data output channel is mapped.

        +

        remote

        +

        remote object

        +

        Description of the actual data output.

        +
        +
        + +
        + + + + + + + + + +
        Table 25 remote

        Parameter

        +

        Type

        +

        Description

        +

        obs

        +

        obs object

        +

        OBS to which data is actually exported.

        +
        +
        + +
        + + + + + + + + + +
        Table 26 obs

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        OBS URL to which data is actually exported.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 27 engine

        Parameter

        +

        Type

        +

        Description

        +

        engine_id

        +

        String

        +

        Engine ID selected for a training job. You can set this parameter to engine_id, engine_name + engine_version, or image_url.

        +

        engine_name

        +

        String

        +

        Name of the engine selected for a training job. If engine_id is set, leave this parameter blank.

        +

        engine_version

        +

        String

        +

        Name of the engine version selected for a training job. If engine_id is set, leave this parameter blank.

        +

        image_url

        +

        String

        +

        Custom image URL selected for a training job.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 28 TaskResponse

        Parameter

        +

        Type

        +

        Description

        +

        role

        +

        String

        +

        Role of a heterogeneous training job. Options:

        +
        • learner: supports GPUs or CPUs.

          +
        • worker: supports CPUs.

          +
        +

        algorithm

        +

        algorithm object

        +

        Algorithm management and configuration.

        +

        task_resource

        +

        FlavorResponse object

        +

        Flavors of a training job or an algorithm.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 29 algorithm

        Parameter

        +

        Type

        +

        Description

        +

        code_dir

        +

        String

        +

        Absolute path of the directory where the algorithm boot file is stored.

        +

        boot_file

        +

        String

        +

        Absolute path of the algorithm boot file.

        +

        inputs

        +

        inputs object

        +

        Algorithm input channel.

        +

        outputs

        +

        outputs object

        +

        Algorithm output channel.

        +

        engine

        +

        engine object

        +

        Engine on which a heterogeneous job depends.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 30 inputs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data input channel.

        +

        local_dir

        +

        String

        +

        Local path of the container to which the data input and output channels are mapped.

        +

        remote

        +

        remote object

        +

        Actual data input. Heterogeneous jobs support only OBS.

        +
        +
        + +
        + + + + + + + + + +
        Table 31 remote

        Parameter

        +

        Type

        +

        Description

        +

        obs

        +

        obs object

        +

        OBS in which data input and output stored.

        +
        +
        + +
        + + + + + + + + + +
        Table 32 obs

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        OBS URL of the dataset required by a training job. For example, /usr/data/.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 33 outputs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data output channel.

        +

        local_dir

        +

        String

        +

        Local directory of the container to which the data output channel is mapped.

        +

        remote

        +

        remote object

        +

        Description of the actual data output.

        +

        mode

        +

        String

        +

        Data transmission mode. The default value is upload_periodically.

        +

        period

        +

        String

        +

        Data transmission period. The default value is 30s.

        +
        +
        + +
        + + + + + + + + + +
        Table 34 remote

        Parameter

        +

        Type

        +

        Description

        +

        obs

        +

        obs object

        +

        OBS to which data is actually exported.

        +
        +
        + +
        + + + + + + + + + +
        Table 35 obs

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        OBS URL to which data is actually exported.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 36 engine

        Parameter

        +

        Type

        +

        Description

        +

        engine_id

        +

        String

        +

        Engine ID of a heterogeneous job, for example, caffe-1.0.0-python2.7.

        +

        engine_name

        +

        String

        +

        Engine name of a heterogeneous job, for example, Caffe.

        +

        engine_version

        +

        String

        +

        Engine version of a heterogeneous job.

        +

        v1_compatible

        +

        Boolean

        +

        Whether the v1 compatibility mode is used.

        +

        run_user

        +

        String

        +

        User UID started by default by the engine.

        +

        image_url

        +

        String

        +

        Custom image URL selected by an algorithm.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 37 FlavorResponse

        Parameter

        +

        Type

        +

        Description

        +

        flavor_id

        +

        String

        +

        ID of the resource flavor.

        +

        flavor_name

        +

        String

        +

        Name of the resource flavor.

        +

        max_num

        +

        Integer

        +

        Maximum number of nodes in a resource flavor.

        +

        flavor_type

        +

        String

        +

        Resource flavor type. Options:

        +
        • CPU

          +
        • GPU

          +
        • Ascend

          +
        +

        billing

        +

        billing object

        +

        Billing information of a resource flavor.

        +

        flavor_info

        +

        flavor_info object

        +

        Resource flavor details.

        +

        attributes

        +

        Map<String,String>

        +

        Other specification attributes.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 38 billing

        Parameter

        +

        Type

        +

        Description

        +

        code

        +

        String

        +

        Billing code.

        +

        unit_num

        +

        Integer

        +

        Number of billing units.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 39 flavor_info

        Parameter

        +

        Type

        +

        Description

        +

        max_num

        +

        Integer

        +

        Maximum number of nodes that can be selected. The value 1 indicates that the distributed mode is not supported.

        +

        cpu

        +

        cpu object

        +

        CPU specifications.

        +

        gpu

        +

        gpu object

        +

        GPU specifications.

        +

        npu

        +

        npu object

        +

        Ascend flavors.

        +

        memory

        +

        memory object

        +

        Memory information.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 40 cpu

        Parameter

        +

        Type

        +

        Description

        +

        arch

        +

        String

        +

        CPU architecture.

        +

        core_num

        +

        Integer

        +

        Number of cores.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 41 gpu

        Parameter

        +

        Type

        +

        Description

        +

        unit_num

        +

        Integer

        +

        Number of GPUs.

        +

        product_nume

        +

        String

        +

        Product name.

        +

        memory

        +

        String

        +

        Memory.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 42 npu

        Parameter

        +

        Type

        +

        Description

        +

        unit_num

        +

        String

        +

        Number of NPUs.

        +

        product_name

        +

        String

        +

        Product name.

        +

        memory

        +

        String

        +

        Memory.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 43 memory

        Parameter

        +

        Type

        +

        Description

        +

        size

        +

        Integer

        +

        Memory size.

        +

        unit

        +

        String

        +

        Number of memory units.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 44 spec

        Parameter

        +

        Type

        +

        Description

        +

        resource

        +

        Resource object

        +

        Resource flavors of a training job. Select either flavor_id or pool_id+[flavor_id].

        +

        volumes

        +

        Array of volumes objects

        +

        Volumes attached to a training job.

        +

        log_export_path

        +

        log_export_path object

        +

        Export path of training job logs.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 45 Resource

        Parameter

        +

        Type

        +

        Description

        +

        policy

        +

        String

        +

        Resource flavor of a training job. Options: regular

        +

        flavor_id

        +

        String

        +

        Resource flavor ID of a training job.

        +

        flavor_name

        +

        String

        +

        Read-only flavor name returned by ModelArts when flavor_id is used.

        +

        node_count

        +

        Integer

        +

        Number of resource replicas selected for a training job.

        +

        Minimum: 1

        +

        pool_id

        +

        String

        +

        Resource pool ID selected for a training job.

        +

        flavor_detail

        +

        flavor_detail object

        +

        Flavors of a training job or an algorithm.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 46 flavor_detail

        Parameter

        +

        Type

        +

        Description

        +

        flavor_type

        +

        String

        +

        Resource flavor type. Options:

        +
        • CPU

          +
        • GPU

          +
        • Ascend

          +
        +

        billing

        +

        billing object

        +

        Billing information of a resource flavor.

        +

        flavor_info

        +

        flavor_info object

        +

        Resource flavor details.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 47 billing

        Parameter

        +

        Type

        +

        Description

        +

        code

        +

        String

        +

        Billing code.

        +

        unit_num

        +

        Integer

        +

        Number of billing units.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 48 flavor_info

        Parameter

        +

        Type

        +

        Description

        +

        max_num

        +

        Integer

        +

        Maximum number of nodes that can be selected. The value 1 indicates that the distributed mode is not supported.

        +

        cpu

        +

        cpu object

        +

        CPU specifications.

        +

        gpu

        +

        gpu object

        +

        GPU specifications.

        +

        npu

        +

        npu object

        +

        Ascend flavors.

        +

        memory

        +

        memory object

        +

        Memory information.

        +

        disk

        +

        disk object

        +

        Disk information.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 49 cpu

        Parameter

        +

        Type

        +

        Description

        +

        arch

        +

        String

        +

        CPU architecture.

        +

        core_num

        +

        Integer

        +

        Number of cores.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 50 gpu

        Parameter

        +

        Type

        +

        Description

        +

        unit_num

        +

        Integer

        +

        Number of GPUs.

        +

        product_nume

        +

        String

        +

        Product name.

        +

        memory

        +

        String

        +

        Memory.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 51 npu

        Parameter

        +

        Type

        +

        Description

        +

        unit_num

        +

        String

        +

        Number of NPUs.

        +

        product_name

        +

        String

        +

        Product name.

        +

        memory

        +

        String

        +

        Memory.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 52 memory

        Parameter

        +

        Type

        +

        Description

        +

        size

        +

        Integer

        +

        Memory size.

        +

        unit

        +

        String

        +

        Number of memory units.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 53 disk

        Parameter

        +

        Type

        +

        Description

        +

        size

        +

        String

        +

        Disk size.

        +

        unit

        +

        String

        +

        Unit of the disk size. Generally, the value is GB.

        +
        +
        + +
        + + + + + + + + + +
        Table 54 volumes

        Parameter

        +

        Type

        +

        Description

        +

        nfs

        +

        nfs object

        +

        Volumes attached in NFS mode.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 55 nfs

        Parameter

        +

        Type

        +

        Description

        +

        nfs_server_path

        +

        String

        +

        NFS server path.

        +

        local_path

        +

        String

        +

        Path for attaching volumes to the training container.

        +

        read_only

        +

        Boolean

        +

        Whether the volumes attached to the container in NFS mode are read-only.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 56 log_export_path

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        OBS URL for storing training job logs.

        +

        host_path

        +

        String

        +

        Path of the host where training job logs are stored.

        +
        +
        +
        +

        Example Requests

        The following shows how to query data of all training jobs whose names contain trainjob and maximum number of training jobs is 1.

        +
        POST    https://endpoint/v2/{project_id}/training-job-searches?limit=1
        +
        +{
        +  "offset" : 0,
        +  "limit" : 1,
        +  "filters" : [ {
        +    "key" : "name",
        +    "operator" : "like",
        +    "value" : [ "trainjob" ]
        +  }, {
        +    "key" : "create_time",
        +    "operator" : "between",
        +    "value" : [ "", "" ]
        +  }, {
        +    "key" : "phase",
        +    "operator" : "in",
        +    "value" : [ "" ]
        +  }, {
        +    "key" : "algorithm_name",
        +    "operator" : "like",
        +    "value" : [ "" ]
        +  }, {
        +    "key" : "kind",
        +    "operator" : "in",
        +    "value" : [ ]
        +  }, {
        +    "key" : "user_id",
        +    "operator" : "in",
        +    "value" : [ "" ]
        +  } ],
        +  "workspace_id" : "0"
        +}
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "total" : 5059,
        +  "count" : 1,
        +  "limit" : 1,
        +  "offset" : 0,
        +  "sort_by" : "create_time",
        +  "order" : "desc",
        +  "group_by" : "",
        +  "workspace_id" : "0",
        +  "ai_project" : "default-ai-project",
        +  "items" : [ {
        +    "kind" : "job",
        +    "metadata" : {
        +      "id" : "3faf5c03-aaa1-4cbe-879d-24b05d997347",
        +      "name" : "trainjob--py14_mem06-byd-108",
        +      "description" : "",
        +      "create_time" : 1636447346315,
        +      "workspace_id" : "0",
        +      "ai_project" : "default-ai-project",
        +      "user_name" : "ei_modelarts_q00357245_01"
        +    },
        +    "status" : {
        +      "phase" : "Abnormal",
        +      "secondary_phase" : "CreateFailed",
        +      "duration" : 0,
        +      "start_time" : 0,
        +      "node_count_metrics" : [ [ 1636447746000, 0 ], [ 1636447755000, 0 ], [ 1636447756000, 0 ] ],
        +      "tasks" : [ "worker-0" ]
        +    },
        +    "algorithm" : {
        +      "code_dir" : "obs://test-crq/economic_test/py_minist/",
        +      "boot_file" : "obs://test-crq/economic_test/py_minist/minist_common.py",
        +      "inputs" : [ {
        +        "name" : "data_url",
        +        "local_dir" : "/home/ma-user/modelarts/inputs/data_url_0",
        +        "remote" : {
        +          "obs" : {
        +            "obs_url" : "/test-crq/data/py_minist/"
        +          }
        +        }
        +      } ],
        +      "outputs" : [ {
        +        "name" : "train_url",
        +        "local_dir" : "/home/ma-user/modelarts/outputs/train_url_0",
        +        "remote" : {
        +          "obs" : {
        +            "obs_url" : "/test-crq/train_output/"
        +          }
        +        },
        +        "mode" : "upload_periodically",
        +        "period" : 30
        +      } ],
        +      "engine" : {
        +        "engine_id" : "pytorch-cp36-1.4.0-v2",
        +        "engine_name" : "PyTorch",
        +        "engine_version" : "PyTorch-1.4.0-python3.6-v2",
        +        "v1_compatible" : false,
        +        "run_user" : ""
        +      }
        +    },
        +    "spec" : {
        +      "resource" : {
        +        "policy" : "economic",
        +        "flavor_id" : "modelarts.vm.p100.large.eco",
        +        "flavor_name" : "Computing GPU(P100) instance",
        +        "node_count" : 1,
        +        "flavor_detail" : {
        +          "flavor_type" : "GPU",
        +          "billing" : {
        +            "code" : "modelarts.vm.gpu.p100.eco",
        +            "unit_num" : 1
        +          },
        +          "attributes" : {
        +            "is_economic_policy_supported" : "true",
        +            "is_multi_devices_supported" : "false",
        +            "is_multi_nodes_supported" : "true"
        +          },
        +          "flavor_info" : {
        +            "cpu" : {
        +              "arch" : "x86",
        +              "core_num" : 8
        +            },
        +            "gpu" : {
        +              "unit_num" : 1,
        +              "product_name" : "NVIDIA-P100",
        +              "memory" : "8GB"
        +            },
        +            "memory" : {
        +              "size" : 64,
        +              "unit" : "GB"
        +            }
        +          }
        +        }
        +      },
        +      "is_hosted_log" : false
        +    }
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListWorkerTasks.html b/docs/modelarts/api-ref/ListWorkerTasks.html new file mode 100644 index 00000000..0bfd5183 --- /dev/null +++ b/docs/modelarts/api-ref/ListWorkerTasks.html @@ -0,0 +1,439 @@ + + +

        Querying the Team Labeling Task List by a Team Member

        +

        Function

        This API is used to query the team labeling task list by a team member.

        +
        +

        URI

        GET /v2/{project_id}/workforces/worker-tasks

        + +
        + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        limit

        +

        No

        +

        Integer

        +

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

        +

        offset

        +

        No

        +

        Integer

        +

        Start page of the paging list. The default value is 0.

        +

        order

        +

        No

        +

        String

        +

        Sorting method. The options are as follows:

        +
        • asc: ascending order

          +
        • desc: descending order (default value)

          +
        +

        search_content

        +

        No

        +

        String

        +

        Fuzzy search keyword. By default, this parameter is left blank.

        +

        sort_by

        +

        No

        +

        String

        +

        Sorting mode of the query. The options are as follows:

        +
        • create_time: Sort by creation time. (Default value)

          +
        • workforce_task_name: Sort by task name.

          +
        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        count

        +

        Integer

        +

        Total number of team labeling tasks.

        +

        worker_tasks

        +

        Array of WorkerTask objects

        +

        Team labeling task list queried by page.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 WorkerTask

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Time when a labeling team member's task is created.

        +

        dataset_id

        +

        String

        +

        ID of a dataset associated with a labeling team member's task.

        +

        dataset_type

        +

        Integer

        +

        Labeling type of a team member's task.

        +

        email

        +

        String

        +

        Email address of a labeling team member.

        +

        email_status

        +

        Integer

        +

        Email notification status of a labeling team member's labeling task. The options are as follows:

        +
        • 0: The email has not been sent.

          +
        • 1: The email format is incorrect.

          +
        • 2: The email address is unreachable.

          +
        • 3: The email has been sent.

          +
        +

        last_notify_time

        +

        Long

        +

        Timestamp of the latest notification email sent to a labeling team member.

        +

        pass_rate

        +

        Double

        +

        Pass rate of task acceptance review for a labeling team member.

        +

        role

        +

        Integer

        +

        Role of a labeling team member.

        +

        sample_stats

        +

        SampleStats object

        +

        Sample statistics of a labeling team member's task.

        +

        score

        +

        Double

        +

        Average acceptance score of labeling team members' task samples.

        +

        task_id

        +

        String

        +

        Team labeling task ID associated with a member's task.

        +

        task_status

        +

        Integer

        +

        Task status of a labeling team member. The options are as follows:

        +
        • 6: created

          +
        • 0: starting

          +
        • 1: running

          +
        • 2: under acceptance

          +
        • 3: approved, indicating the team labeling task is complete

          +
        • 4: rejected, indicating that the task needs to be labeled and reviewed again

          +
        +

        update_time

        +

        Long

        +

        Time when a labeling team member's task is updated.

        +

        worker_id

        +

        String

        +

        ID of a labeling team member.

        +

        workforce_task_name

        +

        String

        +

        Team labeling task name associated with a member's task.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 5 SampleStats

        Parameter

        +

        Type

        +

        Description

        +

        accepted_sample_count

        +

        Integer

        +

        Number of samples accepted by the owner.

        +

        auto_annotation_sample_count

        +

        Integer

        +

        Number of samples to be confirmed after intelligent labeling.

        +

        deleted_sample_count

        +

        Integer

        +

        Number of deleted samples.

        +

        rejected_sample_count

        +

        Integer

        +

        Number of samples that failed to pass the owner acceptance.

        +

        sampled_sample_count

        +

        Integer

        +

        Number of samples that are to be accepted by the owner and sampled.

        +

        total_sample_count

        +

        Integer

        +

        Total number of samples.

        +

        unannotated_sample_count

        +

        Integer

        +

        Number of unlabeled samples.

        +

        uncheck_sample_count

        +

        Integer

        +

        Number of samples that have been approved by the reviewer and are to be accepted by the owner.

        +

        unreviewed_sample_count

        +

        Integer

        +

        Number of samples that have been labeled by the labeler but have not been reviewed by the reviewer.

        +
        +
        +
        +

        Example Requests

        Querying the Team Labeling Task List by a Team Member

        +
        GET https://{endpoint}/v2/{project_id}/workforces/worker-tasks?offset=0&limit=10&sort_by=create_time&order=desc&filePreview=false
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "count" : 2,
        +  "worker_tasks" : [ {
        +    "email" : "xxx@xxx.com",
        +    "worker_id" : "8c15ad080d3eabad14037b4eb00d6a6f",
        +    "role" : 0,
        +    "task_id" : "tY330MHxV9dqIPVaTRM",
        +    "workforce_task_name" : "task-cd60",
        +    "dataset_id" : "WxCREuCkBSAlQr9xrde",
        +    "sample_stats" : {
        +      "total_sample_count" : 309,
        +      "unannotated_sample_count" : 308,
        +      "unreviewed_sample_count" : 0,
        +      "uncheck_sample_count" : 1,
        +      "sampled_sample_count" : 0,
        +      "rejected_sample_count" : 0,
        +      "accepted_sample_count" : 0,
        +      "auto_annotation_sample_count" : 0
        +    },
        +    "create_time" : 1606224714358,
        +    "update_time" : 1606224878490,
        +    "email_status" : 3,
        +    "last_notify_time" : 0,
        +    "dataset_type" : 1,
        +    "task_status" : 1,
        +    "user" : {
        +      "domainId" : "04f924738800d3270fc0c013a47363a0",
        +      "domainName" : "test_123",
        +      "projectId" : "04f924739300d3272fc3c013e36bb4b8",
        +      "userId" : "04f924743b00d4331f31c0131ada6769",
        +      "userName" : "test_123"
        +    }
        +  }, {
        +    "email" : "xxx@xxx.com",
        +    "worker_id" : "8c15ad080d3eabad14037b4eb00d6a6f",
        +    "role" : 0,
        +    "task_id" : "MJVjCQDMso95a8dvUm4",
        +    "workforce_task_name" : "task-2720",
        +    "dataset_id" : "OY82gjEHxt9w1efgrhS",
        +    "sample_stats" : {
        +      "total_sample_count" : 50005,
        +      "unannotated_sample_count" : 50005,
        +      "unreviewed_sample_count" : 0,
        +      "uncheck_sample_count" : 0,
        +      "sampled_sample_count" : 0,
        +      "rejected_sample_count" : 0,
        +      "accepted_sample_count" : 0,
        +      "auto_annotation_sample_count" : 0
        +    },
        +    "create_time" : 1605949737134,
        +    "update_time" : 1605949737134,
        +    "email_status" : 3,
        +    "last_notify_time" : 0,
        +    "dataset_type" : 0,
        +    "task_status" : 2,
        +    "user" : {
        +      "domainId" : "04f924738800d3270fc0c013a47363a0",
        +      "domainName" : "test_123",
        +      "projectId" : "04f924739300d3272fc3c013e36bb4b8",
        +      "userId" : "04f924743b00d4331f31c0131ada6769",
        +      "userName" : "test_123"
        +    }
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListWorkers.html b/docs/modelarts/api-ref/ListWorkers.html new file mode 100644 index 00000000..cb841a34 --- /dev/null +++ b/docs/modelarts/api-ref/ListWorkers.html @@ -0,0 +1,280 @@ + + +

        Querying the List of Labeling Team Members

        +

        Function

        This API is used to query the list of labeling team members.

        +
        +

        URI

        GET /v2/{project_id}/workforces/{workforce_id}/workers

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        workforce_id

        +

        Yes

        +

        String

        +

        ID of a labeling team.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        limit

        +

        No

        +

        Integer

        +

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

        +

        offset

        +

        No

        +

        Integer

        +

        Start page of the paging list. The default value is 0.

        +

        order

        +

        No

        +

        String

        +

        Sorting sequence. The options are as follows:

        +
        • asc: ascending order

          +
        • desc: descending order (default value)

          +
        +

        sort_by

        +

        No

        +

        String

        +

        Sorting mode of the query. The options are as follows:

        +
        • create_time: Sort by creation time. (Default value)

          +
        • email: Sort by email.

          +
        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        total_number

        +

        Integer

        +

        Total number of labeling team members.

        +

        workers

        +

        Array of Worker objects

        +

        Labeling team members list queried by page.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 Worker

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Creation time.

        +

        description

        +

        String

        +

        Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        +

        email

        +

        String

        +

        Email address of a labeling team member.

        +

        role

        +

        Integer

        +

        Role. The options are as follows:

        +
        • 0: labeling personnel

          +
        • 1: reviewer

          +
        • 2: team administrator

          +
        • 3: dataset owner

          +
        +

        status

        +

        Integer

        +

        Current login status of a labeling team member. The options are as follows:

        +
        • 0: The invitation email has not been sent.

          +
        • 1: The invitation email has been sent but the user has not logged in.

          +
        • 2: The user has logged in.

          +
        • 3: The labeling team member has been deleted.

          +
        +

        update_time

        +

        Long

        +

        Update time.

        +

        worker_id

        +

        String

        +

        ID of a labeling team member.

        +

        workforce_id

        +

        String

        +

        ID of a labeling team.

        +
        +
        +
        +

        Example Requests

        Querying the List of Labeling Team Members

        +
        GET https://{endpoint}/v2/{project_id}/workforces/{workforce_id}/workers
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "total_number" : 3,
        +  "workers" : [ {
        +    "email" : "xxx@xxx.com",
        +    "worker_id" : "b1e4054407ecb36a7bcde70f52ba37f2",
        +    "workforce_id" : "gyb7IaAvkLc5IhEY2dv",
        +    "status" : 0,
        +    "role" : 2,
        +    "description" : "",
        +    "create_time" : 1606356324223,
        +    "update_time" : 1606356324223
        +  }, {
        +    "email" : "xxx@xxx.com",
        +    "worker_id" : "8c15ad080d3eabad14037b4eb00d6a6f",
        +    "workforce_id" : "gyb7IaAvkLc5IhEY2dv",
        +    "status" : 0,
        +    "role" : 0,
        +    "description" : "",
        +    "create_time" : 1591783804629,
        +    "update_time" : 1591783804629
        +  }, {
        +    "email" : "xxx@xxx.com",
        +    "worker_id" : "2880f38d660dd68ca6ab578b5a1d9558",
        +    "workforce_id" : "gyb7IaAvkLc5IhEY2dv",
        +    "status" : 0,
        +    "role" : 0,
        +    "description" : "",
        +    "create_time" : 1575104629439,
        +    "update_time" : 1575104629439
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListWorkforceTaskSamples.html b/docs/modelarts/api-ref/ListWorkforceTaskSamples.html new file mode 100644 index 00000000..e4a3e856 --- /dev/null +++ b/docs/modelarts/api-ref/ListWorkforceTaskSamples.html @@ -0,0 +1,742 @@ + + +

        Querying the Sample List of a Team Labeling Task by Page

        +

        Function

        This API is used to query the sample list of a team labeling task by page.

        +
        +

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/samples

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        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.

        +

        workforce_task_id

        +

        Yes

        +

        String

        +

        ID of a team labeling task.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        label_name

        +

        No

        +

        String

        +

        Label name.

        +

        label_type

        +

        No

        +

        Integer

        +

        Labeling type. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet
        • 200: sound classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 400: table dataset
        • 600: video labeling
        • 900: custom format
        +

        limit

        +

        No

        +

        Integer

        +

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

        +

        locale

        +

        No

        +

        String

        +

        Language. The options are as follows:

        +

        en-us: English (default value)

        +

        offset

        +

        No

        +

        Integer

        +

        Start page of the paging list. The default value is 0.

        +

        process_parameter

        +

        No

        +

        String

        +

        Image resizing setting, which is the same as the OBS resizing setting. For details, see . For example, image/resize,m_lfit,h_200 indicates that the target image is resized proportionally and the height is set to 200 pixels.

        +

        sample_state

        +

        No

        +

        String

        +

        Sample status. The options are as follows:

        +
        • ALL: labeled
        • NONE: unlabeled
        • UNCHECK: pending acceptance
        • ACCEPTED: accepted
        • REJECTED: rejected
        • UNREVIEWED: pending review
        • REVIEWED: reviewed
        • WORKFORCE_SAMPLED: sampled
        • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
        • WORKFORCE_SAMPLED_CHECKED: sampling checked
        • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
        • WORKFORCE_SAMPLED_REJECTED: sampling rejected
        • AUTO_ANNOTATION: to be confirmed
        +

        search_conditions

        +

        No

        +

        String

        +

        Multi-dimensional search condition after URL encoding. The relationship between multiple search conditions is AND.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        sample_count

        +

        Integer

        +

        Number of samples.

        +

        samples

        +

        Array of DescribeSampleResp objects

        +

        Sample list.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 DescribeSampleResp

        Parameter

        +

        Type

        +

        Description

        +

        check_accept

        +

        Boolean

        +

        Whether the acceptance is passed, which is used for team labeling. The options are as follows:

        +
        • true: The acceptance is passed.
        • false: The acceptance is not passed.
        +

        check_comment

        +

        String

        +

        Acceptance comment, which is used for team labeling.

        +

        check_score

        +

        String

        +

        Acceptance score, which is used for team labeling.

        +

        deletion_reasons

        +

        Array of strings

        +

        Reason for deleting a sample, which is used for healthcare.

        +

        hard_details

        +

        Map<String,HardDetail>

        +

        Details about difficulties, including description, causes, and suggestions of difficult problems.

        +

        labelers

        +

        Array of Worker objects

        +

        Labeling personnel list of sample assignment. The labelers record the team members to which the sample is allocated for team labeling.

        +

        labels

        +

        Array of SampleLabel objects

        +

        Sample label list.

        +

        metadata

        +

        SampleMetadata object

        +

        Key-value pair of the sample metadata attribute.

        +

        review_accept

        +

        Boolean

        +

        Whether to accept the review, which is used for team labeling. The options are as follows:

        +
        • true: accepted
        • false: rejected
        +

        review_comment

        +

        String

        +

        Review comment, which is used for team labeling.

        +

        review_score

        +

        String

        +

        Review score, which is used for team labeling.

        +

        sample_data

        +

        Array of strings

        +

        Sample data list.

        +

        sample_dir

        +

        String

        +

        Sample path.

        +

        sample_id

        +

        String

        +

        Sample ID.

        +

        sample_name

        +

        String

        +

        Sample name.

        +

        sample_size

        +

        Long

        +

        Sample size or text length, in bytes.

        +

        sample_status

        +

        String

        +

        Sample status. The options are as follows:

        +
        • ALL: labeled
        • NONE: unlabeled
        • UNCHECK: pending acceptance
        • ACCEPTED: accepted
        • REJECTED: rejected
        • UNREVIEWED: pending review
        • REVIEWED: reviewed
        • WORKFORCE_SAMPLED: sampled
        • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
        • WORKFORCE_SAMPLED_CHECKED: sampling checked
        • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
        • WORKFORCE_SAMPLED_REJECTED: sampling rejected
        • AUTO_ANNOTATION: to be confirmed
        +

        sample_time

        +

        Long

        +

        Sample time, when OBS is last modified.

        +

        sample_type

        +

        Integer

        +

        Sample type. The options are as follows:

        +
        • 0: image
        • 1: text
        • 2: speech
        • 4: table
        • 6: video
        • 9: custom format
        +

        score

        +

        String

        +

        Comprehensive score, which is used for team labeling.

        +

        source

        +

        String

        +

        Source address of sample data.

        +

        sub_sample_url

        +

        String

        +

        Subsample URL, which is used for healthcare.

        +

        worker_id

        +

        String

        +

        ID of a labeling team member, which is used for team labeling.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 5 HardDetail

        Parameter

        +

        Type

        +

        Description

        +

        alo_name

        +

        String

        +

        Alias.

        +

        id

        +

        Integer

        +

        Reason ID.

        +

        reason

        +

        String

        +

        Reason description.

        +

        suggestion

        +

        String

        +

        Handling suggestion.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 6 Worker

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Creation time.

        +

        description

        +

        String

        +

        Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        +

        email

        +

        String

        +

        Email address of a labeling team member.

        +

        role

        +

        Integer

        +

        Role. The options are as follows:

        +
        • 0: labeling personnel
        • 1: reviewer
        • 2: team administrator
        • 3: dataset owner
        +

        status

        +

        Integer

        +

        Current login status of a labeling team member. The options are as follows:

        +
        • 0: The invitation email has not been sent.
        • 1: The invitation email has been sent but the user has not logged in.
        • 2: The user has logged in.
        • 3: The labeling team member has been deleted.
        +

        update_time

        +

        Long

        +

        Update time.

        +

        worker_id

        +

        String

        +

        ID of a labeling team member.

        +

        workforce_id

        +

        String

        +

        ID of a labeling team.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 7 SampleLabel

        Parameter

        +

        Type

        +

        Description

        +

        annotated_by

        +

        String

        +

        Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

        +
        • human: manual labeling
        • auto: automatic labeling
        +

        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. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 8 SampleLabelProperty

        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. Examples are as follows.- If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.- If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.

        +

        @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 an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:- bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.- polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].- circle: consists of the center point and radius, for example, [[100,100],[50]].- line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- point: consists of one point, for example, [[0,100]].- polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].

        +

        @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:

        +
        • 0/false: not a hard example
        • 1/true: hard example
        +

        @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. The options are as follows:

        +
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.
        +

        @modelarts:shape

        +

        String

        +

        Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

        +
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline
        +

        @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.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 9 SampleMetadata

        Parameter

        +

        Type

        +

        Description

        +

        @modelarts:hard

        +

        Double

        +

        Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

        +
        • 0: non-hard sample
        • 1: hard sample
        +

        @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. The options are as follows:

        +
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.
        +

        @modelarts:size

        +

        Array of objects

        +

        Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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

        Querying the Sample List of a Team Labeling Task by Page

        +
        GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/samples
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "sample_count" : 2,
        +  "samples" : [ {
        +    "sample_id" : "26c6dd793d80d3274eb89349ec76d678",
        +    "sample_type" : 0,
        +    "labels" : [ ],
        +    "source" : "https://test-obs.obs.xxx.com:443/detect/data/dataset-car-and-person/IMG_kitti_0000_000016.png?AccessKeyId=P19W9X830R1Z39P5X5M5&Expires=1606300137&x-obs-security-token=gQpjbi1ub3J0aC03jKj8N6gtS4VsdTTW3QFoHMtpMoFLtCa6W_J4DxT0nYIfx...",
        +    "metadata" : {
        +      "@modelarts:import_origin" : 0,
        +      "@modelarts:size" : [ 1242, 375, 3 ]
        +    },
        +    "sample_time" : 1598263639997,
        +    "sample_status" : "UN_ANNOTATION",
        +    "worker_id" : "8c15ad080d3eabad14037b4eb00d6a6f",
        +    "labelers" : [ {
        +      "email" : "xxx@xxx.com",
        +      "worker_id" : "afdda13895bc66322ffbf36ae833bcf0",
        +      "role" : 0
        +    } ]
        +  }, {
        +    "sample_id" : "2971815bbb11a462161b48dddf19344f",
        +    "sample_type" : 0,
        +    "labels" : [ ],
        +    "source" : "https://test-obs.obs.xxx.com:443/detect/data/dataset-car-and-person/IMG_kitti_0000_000011.png?AccessKeyId=P19W9X830R1Z39P5X5M5&Expires=1606300137&x-obs-security-token=gQpjbi1ub3J0aC03jKj8N6gtS4VsdTTW3QFoHMtpMoFLtC...",
        +    "metadata" : {
        +      "@modelarts:import_origin" : 0,
        +      "@modelarts:size" : [ 1242, 375, 3 ]
        +    },
        +    "sample_time" : 1598263639997,
        +    "sample_status" : "UN_ANNOTATION",
        +    "worker_id" : "8c15ad080d3eabad14037b4eb00d6a6f",
        +    "labelers" : [ {
        +      "email" : "xxx@xxx.com",
        +      "worker_id" : "305595e1901a526017d2e11f3ab0ffe1",
        +      "role" : 0
        +    } ]
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListWorkforceTaskStats.html b/docs/modelarts/api-ref/ListWorkforceTaskStats.html new file mode 100644 index 00000000..1427ebcc --- /dev/null +++ b/docs/modelarts/api-ref/ListWorkforceTaskStats.html @@ -0,0 +1,477 @@ + + +

        Querying Details About Team Labeling Task Statistics

        +

        Function

        This API is used to query details about team labeling task statistics.

        +
        +

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/stats

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        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.

        +

        workforce_task_id

        +

        Yes

        +

        String

        +

        ID of a team labeling task.

        +
        +
        + +
        + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        sample_state

        +

        No

        +

        String

        +

        Statistics on the specified sample state. The options are as follows:

        +
        • ALL: labeled
        • NONE: unlabeled
        • UNCHECK: pending acceptance
        • ACCEPTED: accepted
        • REJECTED: rejected
        • UNREVIEWED: pending review
        • REVIEWED: reviewed
        • WORKFORCE_SAMPLED: sampled
        • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
        • WORKFORCE_SAMPLED_CHECKED: sampling checked
        • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
        • WORKFORCE_SAMPLED_REJECTED: sampling rejected
        • AUTO_ANNOTATION: to be confirmed
        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        data_path

        +

        String

        +

        Path for storing data of a dataset.

        +

        data_spliting_enable

        +

        Boolean

        +

        Whether the dataset can be split into training set and validation set based on the sample labeling statistics. The options are as follows:

        +
        • true: The dataset can be split into training set and validation set.
        • false: The dataset cannot be split into training set and validation set.
        +

        grouped_label_stats

        +

        Map<String,Array<LabelStats>>

        +

        Label statistics grouped by labeling type.

        +

        hard_detail_stats

        +

        Map<String,PairOfintAndHardDetail>

        +

        Statistics on hard example reasons. The type is Map<Integer, Pair<Integer, HardDetail>>. The key of Map indicates the ID of the hard example reason, the key of Pair indicates the number of times that the hard example reason occurs, and the value of Pair indicates the hard example reason.

        +

        key_sample_stats

        +

        Map<String,Integer>

        +

        Statistics on hard examples.

        +

        label_stats

        +

        Array of LabelStats objects

        +

        List of label statistics.

        +

        metadata_stats

        +

        Map<String,Object>

        +

        Statistics on sample metadata, in JSON format.

        +

        sample_stats

        +

        Map<String,Integer>

        +

        Statistics on sample status.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 LabelStats

        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:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 5 LabelProperty

        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:

        +
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline
        +

        @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.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 6 PairOfintAndHardDetail

        Parameter

        +

        Type

        +

        Description

        +

        key

        +

        Integer

        +

        Number of times that a hard example reason occurs.

        +

        value

        +

        HardDetail object

        +

        Reason for a hard example.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 7 HardDetail

        Parameter

        +

        Type

        +

        Description

        +

        alo_name

        +

        String

        +

        Alias.

        +

        id

        +

        Integer

        +

        Reason ID.

        +

        reason

        +

        String

        +

        Reason description.

        +

        suggestion

        +

        String

        +

        Handling suggestion.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 8 LabelAttribute

        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:

        +
        • text: text
        • select: single-choice drop-down list
        +

        values

        +

        Array of LabelAttributeValue objects

        +

        List of label attribute values.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 9 LabelAttributeValue

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Label attribute value ID.

        +

        value

        +

        String

        +

        Label attribute value.

        +
        +
        +
        +

        Example Requests

        Querying Statistics on Unapproved Samples of a Team Labeling Task

        +
        GET https://{endpoint}/v2/{project_id}/datasets/WxCREuCkBSAlQr9xrde/workforce-tasks/tY330MHxV9dqIPVaTRM/data-annotations/stats?sample_state=__unreviewed__
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "label_stats" : [ {
        +    "name" : "Cat",
        +    "type" : 1,
        +    "property" : {
        +      "@modelarts:color" : "#3399ff"
        +    },
        +    "count" : 0,
        +    "sample_count" : 0
        +  }, {
        +    "name" : "Rabbit",
        +    "type" : 1,
        +    "property" : {
        +      "@modelarts:color" : "#3399ff"
        +    },
        +    "count" : 1,
        +    "sample_count" : 1
        +  } ],
        +  "sample_stats" : {
        +    "un_annotation" : 308,
        +    "total" : 309,
        +    "rejected" : 0,
        +    "unreviewed" : 1,
        +    "accepted" : 0,
        +    "auto_annotation" : 0,
        +    "uncheck" : 0
        +  },
        +  "key_sample_stats" : {
        +    "total" : 309,
        +    "non_key_sample" : 309,
        +    "key_sample" : 0
        +  },
        +  "deletion_stats" : { },
        +  "metadata_stats" : { },
        +  "data_spliting_enable" : false
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListWorkforceTasks.html b/docs/modelarts/api-ref/ListWorkforceTasks.html new file mode 100644 index 00000000..7979fd91 --- /dev/null +++ b/docs/modelarts/api-ref/ListWorkforceTasks.html @@ -0,0 +1,1228 @@ + + +

        Querying the Team Labeling Task List of a Dataset

        +

        Function

        This API is used to query the team labeling task list of a dataset.

        +
        +

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        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.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        count

        +

        Integer

        +

        Total number of team labeling tasks.

        +

        tasks

        +

        Array of WorkforceTask objects

        +

        Team labeling task list queried by page.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 3 WorkforceTask

        Parameter

        +

        Type

        +

        Description

        +

        auto_sync_dataset

        +

        Boolean

        +

        Whether to automatically synchronize the result of a team labeling task to the dataset. The options are as follows:

        +
        • true: Automatically synchronize the result of a team labeling task to the dataset.

          +
        • false: Do not automatically synchronize the result of a team labeling task to the dataset.

          +
        +

        check_rate

        +

        Double

        +

        Acceptance ratio of a team labeling task.

        +

        checking_task_desc

        +

        WorkforceSamplingTaskDesc object

        +

        Details about the current acceptance task of a team labeling task.

        +

        create_time

        +

        Long

        +

        Time when a labeling task is created.

        +

        dataset_id

        +

        String

        +

        Dataset ID.

        +

        description

        +

        String

        +

        Description of a labeling task.

        +

        label_stats

        +

        Array of LabelStats objects

        +

        Label statistics of a labeling task.

        +

        pass_rate

        +

        Double

        +

        Acceptance pass rate of a team labeling task.

        +

        repetition

        +

        Integer

        +

        Number of persons who label each sample in a team labeling task. The minimum value is 1.

        +

        sample_search_conditions

        +

        Array of SearchCondition objects

        +

        Sample search criteria when creating a task.

        +

        sample_stats

        +

        SampleStats object

        +

        Sample statistics of a labeling task.

        +

        score

        +

        Double

        +

        Average acceptance score of a team labeling task.

        +

        status

        +

        Integer

        +

        Status of a team labeling task. The options are as follows:- 6: created. The owner has created a task but does not start it. Only the owner and manager can view the task list.- 0: starting. The owner or manager starts the task and assigns the files to be labeled. The owner, manager, labeler, and reviewer can view the task list. If the task assignment is not complete, a new task cannot be started.- 1: running. The task is labeled and reviewed by the labeler and reviewer, respectively and is accepted by the owner. If auto labeling files are added or synchronized, or unlabeled files are imported, the new files need to be assigned again.- 2: under acceptance. The owner initiates an acceptance task but does not complete it. In this state, a new acceptance task cannot be initiated until the current one is completed.- 3: passed. The team labeling task has been completed.- 4: rejected. In this state, the manager starts the task again and assigns it for labeling and reviewing.- 5: synchronizing acceptance result. This state is displayed when acceptance tasks are changed to be asynchronous. In this state, new acceptance tasks cannot be initiated and the current acceptance task cannot be continued. In the task name area, a message is displayed, indicating that the acceptance result is being synchronized.- 7: acceptance sampling. This state is displayed when acceptance tasks are changed to be asynchronous. In this state, new acceptance tasks cannot be initiated and the current acceptance task cannot be continued. In the task name area, a message is displayed, indicating that the acceptance sampling is in progress.

        +

        synchronize_auto_labeling_data

        +

        Boolean

        +

        Whether to synchronize the auto labeling result of a team labeling task. The options are as follows:

        +
        • true: Synchronize the results to be confirmed to team members after auto labeling is complete.

          +
        • false: Do not synchronize the auto labeling results. (Default value)

          +
        +

        synchronize_data

        +

        Boolean

        +

        Whether to synchronize the added data of a team labeling task. The options are as follows:

        +
        • true: Synchronize uploaded files, data sources, and imported unlabeled files to team members.

          +
        • false: Do not synchronize the added data. (Default value)

          +
        +

        task_id

        +

        String

        +

        ID of a labeling task.

        +

        task_name

        +

        String

        +

        Name of a labeling task.

        +

        update_time

        +

        Long

        +

        Time when a labeling task is updated.

        +

        version_id

        +

        String

        +

        Version ID of the dataset associated with a labeling task.

        +

        workforce_stats

        +

        WorkforceStats object

        +

        Statistics on team labeling task members.

        +

        workforces_config

        +

        WorkforcesConfig object

        +

        Team labeling task information: Tasks can be assigned by the team administrator or a specified team.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 WorkforceSamplingTaskDesc

        Parameter

        +

        Type

        +

        Description

        +

        action

        +

        Integer

        +

        Action after the acceptance. The options are as follows:

        +
        • 0: Pass all samples when the acceptance is completed (including single-rejected samples)

          +
        • 1: Reject all samples when the acceptance is completed (including single-accepted samples)

          +
        • 4: Pass only single-accepted samples and unaccepted samples.

          +
        • 5: Reject only single-rejected samples and unaccepted samples.

          +
        +

        checking_stats

        +

        CheckTaskStats object

        +

        Real-time report of acceptance tasks.

        +

        checking_task_id

        +

        String

        +

        ID of the current acceptance task.

        +

        overwrite_last_result

        +

        Boolean

        +

        Whether to use the acceptance result to overwrite the labeled result if a sample has been labeled during acceptance. The options are as follows:

        +
        • true: Overwrite the labeled result.

          +
        • false: Do not overwrite the labeled result. (Default value)

          +
        +

        total_stats

        +

        CheckTaskStats object

        +

        Overall report of historical acceptance tasks.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 5 CheckTaskStats

        Parameter

        +

        Type

        +

        Description

        +

        accepted_sample_count

        +

        Integer

        +

        Accepted samples.

        +

        checked_sample_count

        +

        Integer

        +

        Checked samples.

        +

        pass_rate

        +

        Double

        +

        Pass rate of samples.

        +

        rejected_sample_count

        +

        Integer

        +

        Rejected samples.

        +

        sampled_sample_count

        +

        Integer

        +

        Number of sampled samples.

        +

        sampling_num

        +

        Integer

        +

        Samples of an acceptance task.

        +

        sampling_rate

        +

        Double

        +

        Sampling rate of an acceptance task.

        +

        score

        +

        String

        +

        Acceptance score.

        +

        task_id

        +

        String

        +

        ID of an acceptance task.

        +

        total_sample_count

        +

        Integer

        +

        Total samples.

        +

        total_score

        +

        Long

        +

        Total acceptance score.

        +

        unchecked_sample_count

        +

        Integer

        +

        Unchecked samples.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 6 LabelStats

        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:

        +
        • 0: image classification

          +
        • 1: object detection

          +
        • 100: text classification

          +
        • 101: named entity recognition

          +
        • 102: text triplet relationship

          +
        • 103: text triplet entity

          +
        • 200: speech classification

          +
        • 201: speech content

          +
        • 202: speech paragraph labeling

          +
        • 600: video classification

          +
        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 7 LabelAttribute

        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:

        +
        • text: text

          +
        • select: single-choice drop-down list

          +
        +

        values

        +

        Array of LabelAttributeValue objects

        +

        List of label attribute values.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 8 LabelAttributeValue

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Label attribute value ID.

        +

        value

        +

        String

        +

        Label attribute value.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 9 LabelProperty

        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:

        +
        • bndbox: rectangle

          +
        • polygon: polygon

          +
        • circle: circle

          +
        • line: straight line

          +
        • dashed: dotted line

          +
        • point: point

          +
        • polyline: polyline

          +
        +

        @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.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 10 SearchCondition

        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. The options are as follows:

        +
        • 0: non-hard sample

          +
        • 1: hard sample

          +
        +

        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. The options are as follows:- month: Search for samples added from 30 days ago to the current day.- day: Search for samples added from yesterday (one day ago) to the current day.- yyyyMMdd-yyyyMMdd: Search for samples added in a specified period (at most 30 days), in the format of Start date-End date. For example, 20190901-2019091501 indicates that samples generated from September 1 to September 15, 2019 are searched.

        +

        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.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 11 SearchLabels

        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. The options are as follows:

        +
        • OR: OR operation

          +
        • AND: AND operation

          +
        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 12 SearchLabel

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Label name.

        +

        op

        +

        String

        +

        Operation type between multiple attributes. The options are as follows:

        +
        • OR: OR operation

          +
        • AND: AND operation

          +
        +

        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. The options are as follows:

        +
        • 0: image classification

          +
        • 1: object detection

          +
        • 100: text classification

          +
        • 101: named entity recognition

          +
        • 102: text triplet relationship

          +
        • 103: text triplet entity

          +
        • 200: speech classification

          +
        • 201: speech content

          +
        • 202: speech paragraph labeling

          +
        • 600: video classification

          +
        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 13 SearchProp

        Parameter

        +

        Type

        +

        Description

        +

        op

        +

        String

        +

        Relationship between attribute values. The options are as follows:

        +
        • AND: AND relationship

          +
        • OR: OR relationship

          +
        +

        props

        +

        Map<String,Array<String>>

        +

        Search criteria of an attribute. Multiple search criteria can be set.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 14 SampleStats

        Parameter

        +

        Type

        +

        Description

        +

        accepted_sample_count

        +

        Integer

        +

        Number of samples accepted by the owner.

        +

        auto_annotation_sample_count

        +

        Integer

        +

        Number of samples to be confirmed after intelligent labeling.

        +

        deleted_sample_count

        +

        Integer

        +

        Number of deleted samples.

        +

        rejected_sample_count

        +

        Integer

        +

        Number of samples that failed to pass the owner acceptance.

        +

        sampled_sample_count

        +

        Integer

        +

        Number of samples that are to be accepted by the owner and sampled.

        +

        total_sample_count

        +

        Integer

        +

        Total number of samples.

        +

        unannotated_sample_count

        +

        Integer

        +

        Number of unlabeled samples.

        +

        uncheck_sample_count

        +

        Integer

        +

        Number of samples that have been approved by the reviewer and are to be accepted by the owner.

        +

        unreviewed_sample_count

        +

        Integer

        +

        Number of samples that have been labeled by the labeler but have not been reviewed by the reviewer.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 15 WorkforceStats

        Parameter

        +

        Type

        +

        Description

        +

        labeler_count

        +

        Integer

        +

        Number of labeling persons.

        +

        reviewer_count

        +

        Integer

        +

        Number of reviewers.

        +

        workforce_count

        +

        Integer

        +

        Number of teams.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 16 WorkforcesConfig

        Parameter

        +

        Type

        +

        Description

        +

        agency

        +

        String

        +

        Team administrator.

        +

        workforces

        +

        Array of WorkforceConfig objects

        +

        List of teams that execute labeling tasks.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 17 WorkforceConfig

        Parameter

        +

        Type

        +

        Description

        +

        workers

        +

        Array of Worker objects

        +

        List of labeling team members.

        +

        workforce_id

        +

        String

        +

        ID of a labeling team.

        +

        workforce_name

        +

        String

        +

        Name of a labeling team. The value contains 0 to 1024 characters and does not support the following special characters: !<>=&"'

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 18 Worker

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Creation time.

        +

        description

        +

        String

        +

        Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        +

        email

        +

        String

        +

        Email address of a labeling team member.

        +

        role

        +

        Integer

        +

        Role. The options are as follows:

        +
        • 0: labeling personnel

          +
        • 1: reviewer

          +
        • 2: team administrator

          +
        • 3: dataset owner

          +
        +

        status

        +

        Integer

        +

        Current login status of a labeling team member. The options are as follows:

        +
        • 0: The invitation email has not been sent.

          +
        • 1: The invitation email has been sent but the user has not logged in.

          +
        • 2: The user has logged in.

          +
        • 3: The labeling team member has been deleted.

          +
        +

        update_time

        +

        Long

        +

        Update time.

        +

        worker_id

        +

        String

        +

        ID of a labeling team member.

        +

        workforce_id

        +

        String

        +

        ID of a labeling team.

        +
        +
        +
        +

        Example Requests

        Querying the Team Labeling Task List of a Dataset

        +
        GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/workforce-tasks
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "count" : 2,
        +  "tasks" : [ {
        +    "dataset_id" : "WxCREuCkBSAlQr9xrde",
        +    "task_id" : "tY330MHxV9dqIPVaTRM",
        +    "task_name" : "task-cd60",
        +    "status" : 1,
        +    "create_time" : 1606224714358,
        +    "update_time" : 1606224714358,
        +    "repetition" : 1,
        +    "workforces_config" : {
        +      "workforces" : [ {
        +        "workforce_id" : "0PfqwXA8M59pppYBx4k",
        +        "workforce_name" : "team-123",
        +        "workers" : [ {
        +          "email" : "xxx@xxx.com",
        +          "worker_id" : "6db04ae0afb54d7274a2982255516c29",
        +          "role" : 2
        +        }, {
        +          "email" : "xxx@xxx.com",
        +          "worker_id" : "8c15ad080d3eabad14037b4eb00d6a6f",
        +          "role" : 0
        +        } ]
        +      } ]
        +    },
        +    "synchronize_data" : true,
        +    "synchronize_auto_labeling_data" : true,
        +    "workforce_stats" : {
        +      "workforce_count" : 1,
        +      "labeler_count" : 1,
        +      "reviewer_count" : 0
        +    },
        +    "sample_stats" : {
        +      "total_sample_count" : 309,
        +      "unannotated_sample_count" : 308,
        +      "unreviewed_sample_count" : 0,
        +      "uncheck_sample_count" : 1,
        +      "sampled_sample_count" : 0,
        +      "rejected_sample_count" : 0,
        +      "accepted_sample_count" : 0,
        +      "auto_annotation_sample_count" : 0
        +    },
        +    "auto_check_samples" : true,
        +    "auto_sync_dataset" : true,
        +    "project_id" : "04f924739300d3272fc3c013e36bb4b8",
        +    "task_type" : 1,
        +    "dataset_name" : "dataset-95a6",
        +    "total_sample_count" : 309,
        +    "annotated_sample_count" : 0,
        +    "feature_supports" : [ "0" ],
        +    "label_task_status" : 1,
        +    "sync_labels" : true,
        +    "workforce_task" : true
        +  }, {
        +    "dataset_id" : "WxCREuCkBSAlQr9xrde",
        +    "task_id" : "iYZx7gScPUozOXner9k",
        +    "task_name" : "task-e63f",
        +    "status" : 1,
        +    "create_time" : 1606184400278,
        +    "update_time" : 1606184400278,
        +    "repetition" : 1,
        +    "workforces_config" : {
        +      "workforces" : [ {
        +        "workforce_id" : "q3ZFSwORu1ztKljDLYQ",
        +        "workforce_name" : "modelarts-team",
        +        "workers" : [ {
        +          "email" : "xxx@xxx.com",
        +          "worker_id" : "afdda13895bc66322ffbf36ae833bcf0",
        +          "role" : 0
        +        } ]
        +      } ]
        +    },
        +    "synchronize_data" : false,
        +    "synchronize_auto_labeling_data" : false,
        +    "workforce_stats" : {
        +      "workforce_count" : 1,
        +      "labeler_count" : 1,
        +      "reviewer_count" : 0
        +    },
        +    "sample_stats" : {
        +      "total_sample_count" : 317,
        +      "unannotated_sample_count" : 310,
        +      "unreviewed_sample_count" : 0,
        +      "uncheck_sample_count" : 0,
        +      "sampled_sample_count" : 0,
        +      "rejected_sample_count" : 0,
        +      "accepted_sample_count" : 7,
        +      "auto_annotation_sample_count" : 0
        +    },
        +    "checking_task_desc" : {
        +      "checking_task_id" : "onSbri2oqYOmDjDyW17",
        +      "action" : 0,
        +      "overwrite_last_result" : false
        +    },
        +    "auto_check_samples" : true,
        +    "auto_sync_dataset" : true,
        +    "project_id" : "04f924739300d3272fc3c013e36bb4b8",
        +    "task_type" : 1,
        +    "dataset_name" : "dataset-95a6",
        +    "total_sample_count" : 317,
        +    "annotated_sample_count" : 0,
        +    "feature_supports" : [ "0" ],
        +    "label_task_status" : 1,
        +    "sync_labels" : true,
        +    "workforce_task" : true
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ListWorkforces.html b/docs/modelarts/api-ref/ListWorkforces.html new file mode 100644 index 00000000..e871d607 --- /dev/null +++ b/docs/modelarts/api-ref/ListWorkforces.html @@ -0,0 +1,259 @@ + + +

        Querying the Labeling Team List

        +

        Function

        This API is used to query the labeling team list.

        +
        +

        URI

        GET /v2/{project_id}/workforces

        + +
        + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        limit

        +

        No

        +

        Integer

        +

        Maximum number of records returned on each page. The value ranges from 1 to 100. The default value is 10.

        +

        offset

        +

        No

        +

        Integer

        +

        Start page of the paging list. The default value is 0.

        +

        order

        +

        No

        +

        String

        +

        Sorting sequence of the query. The options are as follows:

        +
        • asc: ascending order

          +
        • desc: descending order (default value)

          +
        +

        search_content

        +

        No

        +

        String

        +

        Fuzzy search keyword. By default, this parameter is left blank.

        +

        sort_by

        +

        No

        +

        String

        +

        Sorting mode of the query. The options are as follows:

        +
        • create_time: Sort by creation time. (Default value)

          +
        • workforce_name: Sort by labeling team name.

          +
        +

        workforce_task_id

        +

        No

        +

        String

        +

        ID of a team labeling task.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        total_number

        +

        Integer

        +

        Total number of labeling teams.

        +

        workforces

        +

        Array of Workforce objects

        +

        Labeling team list queried by page.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 Workforce

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Time when a labeling team is created.

        +

        description

        +

        String

        +

        Description of a labeling team.

        +

        update_time

        +

        Long

        +

        Time when a labeling team is updated.

        +

        worker_count

        +

        Integer

        +

        Total number of labeling team members.

        +

        workforce_id

        +

        String

        +

        ID of a labeling team.

        +

        workforce_name

        +

        String

        +

        Name of a labeling team.

        +

        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.

        +
        +
        +
        +

        Example Requests

        Querying the Labeling Team List

        +
        GET https://{endpoint}/v2/{project_id}/workforces
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "total_number" : 2,
        +  "workforces" : [ {
        +    "workforce_id" : "ZUH8gqkjuaib8pxkDdz",
        +    "workforce_name" : "team-123",
        +    "description" : "my team",
        +    "worker_count" : 0,
        +    "create_time" : 1606354772548,
        +    "update_time" : 1606354772548
        +  }, {
        +    "workforce_id" : "3Ry04NsqvEybuWYLDvC",
        +    "workforce_name" : "team-170a",
        +    "description" : "",
        +    "worker_count" : 1,
        +    "create_time" : 1604644946891,
        +    "update_time" : 1606238678626
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/RenewLease.html b/docs/modelarts/api-ref/RenewLease.html new file mode 100644 index 00000000..c6b9ab97 --- /dev/null +++ b/docs/modelarts/api-ref/RenewLease.html @@ -0,0 +1,159 @@ + + +

        Prolonging a Notebook Instance

        +

        Function

        This API is used to prolong a notebook instance.

        +
        +

        Constraints

        None

        +
        +

        URI

        PATCH /v1/{project_id}/notebooks/{id}/lease

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        id

        +

        Yes

        +

        String

        +

        Notebook instance ID.

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        + +
        + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        duration

        +

        Yes

        +

        Long

        +

        Renewal duration, in milliseconds

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Time (UTC) when the instance is created, accurate to millisecond.

        +

        duration

        +

        Long

        +

        Instance running duration, which is calculated based on the instance creation time. If the instance creation time plus the duration is greater than the current time, the system automatically stops the instance.

        +

        enable

        +

        Boolean

        +

        Whether to enable auto stop of the instance.

        +

        update_time

        +

        Long

        +

        Time (UTC) when the instance is last updated (excluding the keepalive heartbeat time), accurate to millisecond.

        +
        +
        +
        +

        Example Requests

        None

        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "create_at" : 1638841744515,
        +  "duration" : 3600000,
        +  "enable" : true,
        +  "update_at" : 1638843018759
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        204

        +

        No Content

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ReviewSamples.html b/docs/modelarts/api-ref/ReviewSamples.html new file mode 100644 index 00000000..31741426 --- /dev/null +++ b/docs/modelarts/api-ref/ReviewSamples.html @@ -0,0 +1,191 @@ + + +

        Reviewing Team Labeling Results

        +

        Function

        This API is used to review team labeling results.

        +
        +

        URI

        POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/review

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        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.

        +

        workforce_task_id

        +

        Yes

        +

        String

        +

        ID of a labeling task.

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + +
        Table 2 Request body parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        comments

        +

        No

        +

        Array of SampleComment objects

        +

        Review comment list.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 3 SampleComment

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        accept

        +

        Yes

        +

        Boolean

        +

        Whether the submitted sample review comments are passed. The options are as follows:

        +
        • true: passed

          +
        • false: not passed

          +
        +

        comment

        +

        No

        +

        String

        +

        Review comment, which contains 0 to 256 characters, excluding special characters (!<>=&"'').

        +

        sample_id

        +

        No

        +

        String

        +

        Sample ID.

        +

        score

        +

        No

        +

        String

        +

        Review score, whose value can be A, B, C, or D, in descending order.

        +

        worker_id

        +

        No

        +

        String

        +

        ID of a labeling team member.

        +
        +
        +
        +

        Response Parameters

        None

        +
        +

        Example Requests

        Reviewing Team Labeling Results

        +
        {
        +  "comments" : [ {
        +    "worker_id" : "8c15ad080d3eabad14037b4eb00d6a6f",
        +    "sample_id" : "0d43f9811d3808a3146c673257d4a1dbhh",
        +    "accept" : true,
        +    "comment" : "",
        +    "score" : "A"
        +  } ]
        +}
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        { }
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/RunCodeLab.html b/docs/modelarts/api-ref/RunCodeLab.html new file mode 100644 index 00000000..dfcc4c61 --- /dev/null +++ b/docs/modelarts/api-ref/RunCodeLab.html @@ -0,0 +1,509 @@ + + +

        Opening a CodeLab Instance

        +

        Function

        This API is used to open a free CodeLab instance. After opening it, you can switch to another instance as required.

        +
        +

        Constraints

        None

        +
        +

        URI

        POST /v1/{project_id}/notebooks/open

        + +
        + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + + + + + + +
        Table 2 Request body parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        image_id

        +

        No

        +

        String

        +

        Image ID of the CodeLab instance to be opened. If this parameter is left blank, a multi-kernel CPU instance is opened by default. For details, see Querying Supported Images.

        +

        share_url

        +

        No

        +

        String

        +

        URL of an IPYNB file encrypted using Base64. The file is downloaded by default when the CodeLab instance is opened.

        +
        +
        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        action_progress

        +

        Array of JobProgress objects

        +

        Instance initialization progress.

        +

        description

        +

        String

        +

        Instance description

        +

        endpoints

        +

        Array of EndpointsRes objects

        +

        Local IDE (such as PyCharm and vsCode) or SSH client for remotely accessing a notebook instance through SSH.

        +

        fail_reason

        +

        String

        +

        Instance failure cause

        +

        feature

        +

        String

        +

        Instance type. Options: - DEFAULT: free CodeLab instance. You can create only one. - NOTEBOOK: billed instance.

        +

        flavor

        +

        String

        +

        Instance flavor

        +

        id

        +

        String

        +

        Instance ID.

        +

        image

        +

        Image object

        +

        Instance image

        +

        lease

        +

        Lease object

        +

        Countdown to automatic instance stop.

        +

        name

        +

        String

        +

        Instance name

        +

        pool

        +

        Pool object

        +

        Basic information about the dedicated pool, which is returned by the instance created in the dedicated pool.

        +

        status

        +

        String

        +

        Instance status Options: \r\n-INIT: The instance is being initialized. \r\n-CREATING: The instance is being created. \r\n-STARTING: The instance is starting. \r\n-STOPPING: The instance is stopping. \r\n-DELETING: The instance is being deleted.\r\n-RUNNING: The instance is running.\r\n-STOPPED: The instance is stopped.\r\n-SNAPSHOTTING: A snapshot is being taken for the instance (status when the image is being saved).\r\n-CREATE_FAILED: The instance fails to be created. \r\n-START_FAILED: The instance fails to be started. \r\n-DELETE_FAILED: The instance fails to be deleted.\r\n-ERROR: An error occurs. \r\n-DELETED: The instance is deleted. \r\n-FROZEN: The instance is frozen.

        +

        token

        +

        String

        +

        Token used for notebook authentication

        +

        url

        +

        String

        +

        URL for accessing the notebook instance

        +

        volume

        +

        VolumeRes object

        +

        Storage volume

        +

        workspace_id

        +

        String

        +

        Workspace ID. If no workspaces are available, the default value is 0.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 4 JobProgress

        Parameter

        +

        Type

        +

        Description

        +

        notebook_id

        +

        String

        +

        Instance ID.

        +

        status

        +

        String

        +

        Job status in a specified step. Options: - WAITING: The job is waiting to begin. - PROCESSING: The job is being processed. - FAILED: The job failed. - COMPLETED: The task is complete.

        +

        step

        +

        Integer

        +

        Job step. Options: - 1: Storage preparation. - 2: Computing resource preparation. - 3: Network configurations. - 4: Instance initialization.

        +

        step_description

        +

        String

        +

        Description of a step in a job.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 5 EndpointsRes

        Parameter

        +

        Type

        +

        Description

        +

        allowed_access_ips

        +

        Array of strings

        +

        Whitelist of public IP addresses that are allowed to access the notebook instance through SSH. By default, all public IP addresses can access the notebook instance. If this parameter is specified, only the clients with the specified IP addresses can access the notebook instance.

        +

        dev_service

        +

        String

        +

        Supported services. Options: - NOTEBOOK: You can access the notebook instance using HTTPS.- SSH: You can remotely access the notebook instance through SSH.

        +

        ssh_keys

        +

        Array of strings

        +

        List of SSH key pairs. You can set multiple key pairs to access an SSH instance at the same time.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 6 Image

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Image ID

        +

        name

        +

        String

        +

        Image name.

        +

        swr_path

        +

        String

        +

        SWR image address

        +

        type

        +

        String

        +

        Image type. Options: - BUILD_IN: built-in system image- DEDICATED: image saved by the user

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 7 Lease

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Time (UTC) when the instance is created, accurate to millisecond.

        +

        duration

        +

        Long

        +

        Instance running duration, which is calculated based on the instance creation time. If the instance creation time plus the duration is greater than the current time, the system automatically stops the instance.

        +

        enable

        +

        Boolean

        +

        Whether to enable auto stop of the instance.

        +

        update_time

        +

        Long

        +

        Time (UTC) when the instance is last updated (excluding the keepalive heartbeat time), accurate to millisecond.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 8 Pool

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        ID of a dedicated resource pool

        +

        name

        +

        String

        +

        Name of a dedicated resource pool

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 9 VolumeRes

        Parameter

        +

        Type

        +

        Description

        +

        capacity

        +

        Integer

        +

        Storage capacity. The default value is 5 GB for EVS and 50 GB for EFS. The maximum value is 4,096 GB.

        +

        category

        +

        String

        +

        Storage category. Options: \r\n-EFS: Scalable File Service (SFS), which is the default storage. \r\n-EVS: Elastic Volume Service (EVS). \r\n\r\n For details about the differences between the two types of storage, see Selecting a Storage Type in DevEnviron.\r\n.\r\n\r\n\r\n\r\n

        +

        mount_path

        +

        String

        +

        Directory of the notebook instance to which OBS storage is mounted. Currently, the directory is /home/ma-user/work/.

        +

        ownership

        +

        String

        +

        Owner to which the resource belongs. Options: - MANAGED: Resources are managed by services.- DEDICATED: Resources are managed by the user account. This mode is supported only when the instance category is EFS.

        +

        status

        +

        String

        +

        EVS disk capacity expansion status, which is RESIZING during capacity expansion and does not affect the instance.

        +
        +
        +
        +

        Example Requests

        { }
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "action_progress" : [ {
        +    "step" : 1,
        +    "status" : "WAITING",
        +    "description" : "Prepare the storage."
        +  }, {
        +    "step" : 2,
        +    "status" : "WAITING",
        +    "description" : "Prepare the compute resource."
        +  }, {
        +    "step" : 3,
        +    "status" : "WAITING",
        +    "description" : "Configuring the network."
        +  }, {
        +    "step" : 4,
        +    "status" : "WAITING",
        +    "description" : "Initialize the notebook instance."
        +  } ],
        +  "create_at" : 1638841805440,
        +  "feature" : "DEFAULT",
        +  "flavor" : "modelarts.vm.cpu.free",
        +  "id" : "f9937afa-ca78-45b6-bc12-7ecf42553c48",
        +  "image" : {
        +    "description" : "description",
        +    "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54090",
        +    "name" : "notebook2.0-mul-kernel-cpu-cp36",
        +    "swr_path" : ".xxxx.com/atelier/notebook2.0-mul-kernel-cpu-cp36:3.3.2-release_v1",
        +    "tag" : "3.3.2-release_v1",
        +    "type" : "BUILD_IN"
        +  },
        +  "lease" : {
        +    "create_at" : 1638841805439,
        +    "duration" : 3600000,
        +    "enable" : true,
        +    "update_at" : 1638841805439
        +  },
        +  "name" : "notebook_5ee4bf0e",
        +  "status" : "CREATING",
        +  "token" : "58ba50c6-e8ff-245c-4840-49e51aa70737",
        +  "update_at" : 1638841805440,
        +  "workspace_id" : "0"
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        201

        +

        Created

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/SendEmails.html b/docs/modelarts/api-ref/SendEmails.html new file mode 100644 index 00000000..464b23f8 --- /dev/null +++ b/docs/modelarts/api-ref/SendEmails.html @@ -0,0 +1,204 @@ + + +

        Sending an Email to a Labeling Team Member

        +

        Function

        This API is used to send an email to a labeling team member.

        +
        +

        URI

        POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/notify

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        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.

        +

        workforce_task_id

        +

        Yes

        +

        String

        +

        ID of a team labeling task.

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + +
        Table 2 Request body parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        emails

        +

        Yes

        +

        Array of strings

        +

        Email list of a labeling team member.

        +
        +
        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        error_code

        +

        String

        +

        Error code.

        +

        error_msg

        +

        String

        +

        Error message.

        +

        results

        +

        Array of BatchResponse objects

        +

        Result of sending an email to a labeling team member.

        +

        success

        +

        Boolean

        +

        Check whether the operation is successful. The options are as follows:

        +
        • true: The operation is successful.

          +
        • false: The operation is failed.

          +
        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 4 BatchResponse

        Parameter

        +

        Type

        +

        Description

        +

        error_code

        +

        String

        +

        Error code.

        +

        error_msg

        +

        String

        +

        Error message.

        +

        success

        +

        Boolean

        +

        Check whether the operation is successful. The options are as follows:

        +
        • true: The operation is successful.

          +
        • false: The operation is failed.

          +
        +
        +
        +
        +

        Example Requests

        Sending an Email to a Labeling Team Member

        +
        {
        +  "emails" : [ "xxx@xxx.com", "xxx@xxx.com" ]
        +}
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "success" : true
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowAlgorithmByUuid.html b/docs/modelarts/api-ref/ShowAlgorithmByUuid.html new file mode 100644 index 00000000..cf13a94c --- /dev/null +++ b/docs/modelarts/api-ref/ShowAlgorithmByUuid.html @@ -0,0 +1,916 @@ + + +

        Querying Algorithm Details

        +

        Function

        This API is used to query a specified algorithm based on the algorithm ID.

        +
        +

        URI

        GET /v2/{project_id}/algorithms/{algorithm_id}

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +

        algorithm_id

        +

        Yes

        +

        String

        +

        Algorithm ID.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        metadata

        +

        metadata object

        +

        Algorithm metadata, which describes basic algorithm information.

        +

        job_config

        +

        job_config object

        +

        Algorithm configuration, such as the boot file.

        +

        resource_requirements

        +

        Array of resource_requirements objects

        +

        Algorithm resource constraint. You can disable this function by not setting this parameter.

        +

        advanced_config

        +

        advanced_config object

        +

        Advanced algorithm configuration. Currently, autosearch is supported.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 3 metadata

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        Integer

        +

        Algorithm UUID. You do not need to set this parameter when creating an algorithm.

        +

        name

        +

        String

        +

        Algorithm name. The value must contain 1 to 64 characters consisting of only digits, letters, underscores (_), and hyphens (-).

        +

        description

        +

        String

        +

        Algorithm description. The value must contain 0 to 256 characters. The default value is NULL.

        +

        workspace_id

        +

        String

        +

        Workspace where a specified algorithm is located. The default value is 0.

        +

        ai_project

        +

        String

        +

        AI project to which a specified algorithm belongs. The default value is default-ai-project.

        +

        user_name

        +

        String

        +

        Username.

        +

        domain_id

        +

        String

        +

        Domain ID of a user.

        +

        source

        +

        String

        +

        Algorithm source.

        +

        api_version

        +

        String

        +

        Algorithm API version, which identifies the old and new ones.

        +

        is_valid

        +

        String

        +

        Algorithm availability.

        +

        state

        +

        String

        +

        Algorithm state.

        +

        tags

        +

        Array of Map<String,String> objects

        +

        Algorithm tags.

        +

        attr_list

        +

        Array of strings

        +

        Algorithm attribute list.

        +

        version_num

        +

        Integer

        +

        Number of algorithm versions. The default value is 0.

        +

        size

        +

        Integer

        +

        Algorithm size.

        +

        create_time

        +

        Long

        +

        Timestamp when the algorithm is created.

        +

        update_time

        +

        Long

        +

        Timestamp when the algorithm is updated.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 job_config

        Parameter

        +

        Type

        +

        Description

        +

        code_dir

        +

        String

        +

        Algorithm code directory, for example, /usr/app/. This parameter must be used together with boot_file.

        +

        boot_file

        +

        String

        +

        Code boot file of the algorithm, which needs to be stored in the code directory, for example, /usr/app/boot.py. This parameter must be used together with code_dir.

        +

        command

        +

        String

        +

        Container startup command of a custom image algorithm.

        +

        parameters

        +

        Array of Parameter objects

        +

        Running parameter of an algorithm.

        +

        inputs

        +

        Array of inputs objects

        +

        Data input of an algorithm.

        +

        outputs

        +

        Array of outputs objects

        +

        Data output of an algorithm.

        +

        engine

        +

        engine object

        +

        Algorithm engine.

        +

        code_tree

        +

        Array of code_tree objects

        +

        Algorithm directory tree.

        +

        parameters_customization

        +

        Boolean

        +

        Whether the algorithm allows hyperparameter customization during training job creation.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 5 Parameter

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Parameter name.

        +

        value

        +

        String

        +

        Parameter value.

        +

        description

        +

        String

        +

        Parameter description.

        +

        constraint

        +

        constraint object

        +

        Parameter constraint.

        +

        i18n_description

        +

        i18n_description object

        +

        Internationalization description.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 6 constraint

        Parameter

        +

        Type

        +

        Description

        +

        type

        +

        String

        +

        Parameter type.

        +

        editable

        +

        Boolean

        +

        Whether the parameter is editable.

        +

        required

        +

        Boolean

        +

        Whether the parameter is mandatory.

        +

        sensitive

        +

        Boolean

        +

        Whether the parameter is sensitive.

        +

        valid_type

        +

        String

        +

        Valid type.

        +

        valid_range

        +

        Array of strings

        +

        Valid range.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 7 i18n_description

        Parameter

        +

        Type

        +

        Description

        +

        language

        +

        String

        +

        Internationalization language.

        +

        description

        +

        String

        +

        Description.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 8 inputs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data input channel.

        +

        description

        +

        String

        +

        Description of the data input channel.

        +

        remote_constraints

        +

        Array of remote_constraints objects

        +

        Data input constraint.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 9 remote_constraints

        Parameter

        +

        Type

        +

        Description

        +

        data_type

        +

        String

        +

        Data input type, including the data storage location and dataset.

        +

        attributes

        +

        Array of Map<String,String> objects

        +

        Attributes if a dataset is used as the data input. Options:

        +
        • data_format: Data format

          +
        • data_segmentation: Data segmentation

          +
        • dataset_type: Labeling type

          +
        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 10 outputs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data output channel.

        +

        description

        +

        String

        +

        Description of the data output channel.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 11 engine

        Parameter

        +

        Type

        +

        Description

        +

        engine_id

        +

        String

        +

        Engine ID selected for an algorithm.

        +

        engine_name

        +

        String

        +

        Engine version name selected for an algorithm. If engine_id is specified, leave this parameter blank.

        +

        engine_version

        +

        String

        +

        Engine version name selected for an algorithm. If engine_id is specified, leave this parameter blank.

        +

        image_url

        +

        String

        +

        Custom image URL selected by an algorithm.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 12 code_tree

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the current directory in the algorithm directory tree.

        +

        children

        +

        Object

        +

        Subfiles and subdirectories in the current directory of the algorithm directory tree.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 13 resource_requirements

        Parameter

        +

        Type

        +

        Description

        +

        key

        +

        String

        +

        Resource constraint. Options:flavor_type: flavor type. The value can be CPU, Ascend, or GPU.device_distributed_mode: whether to support multi-device training. The value can be multiple (supported) or singular (not supported).host_distributed_mode: whether to support distributed training. The value can be multiple (supported) or singular (not supported).

        +

        value

        +

        Array of strings

        +

        Value of the resource constraint key.

        +

        operator

        +

        String

        +

        Relationship between keys and values. Currently, only in is supported. For example: flavor_type in [CPU,GPU].

        +
        +
        + +
        + + + + + + + + + +
        Table 14 advanced_config

        Parameter

        +

        Type

        +

        Description

        +

        auto_search

        +

        auto_search object

        +

        Hyperparameter search policy.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 16 reward_attrs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Metric name.

        +

        mode

        +

        String

        +

        Search direction.

        +
        • max: A larger metric value indicates better performance.

          +
        • min: A smaller metric value indicates better performance.

          +
        +

        regex

        +

        String

        +

        Regular expression of a metric.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 17 search_params

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Hyperparameter name.

        +

        param_type

        +

        String

        +

        Parameter type.

        +
        • continuous: The hyperparameter is of the continuous type.

          +
        • discrete: The hyperparameter is of the discrete type.

          +
        +

        lower_bound

        +

        String

        +

        Lower bound of the hyperparameter.

        +

        upper_bound

        +

        String

        +

        Upper bound of the hyperparameter.

        +

        discrete_points_num

        +

        String

        +

        Number of discrete points of a continuous hyperparameter.

        +

        discrete_values

        +

        String

        +

        List of discrete hyperparameter values.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 18 algo_configs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the search algorithm.

        +

        params

        +

        Array of AutoSearchAlgoConfigParameter objects

        +

        Search algorithm parameters.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 19 AutoSearchAlgoConfigParameter

        Parameter

        +

        Type

        +

        Description

        +

        key

        +

        String

        +

        Parameter key.

        +

        value

        +

        String

        +

        Parameter value.

        +

        type

        +

        String

        +

        Parameter type.

        +
        +
        +
        +

        Example Requests

        The following shows how to query the algorithm whose UUID is 2e5451fe-913f-4492-821a-2981031382f7.

        +
        GET    https://endpoint/v2/{project_id}/algorithms/2e5451fe-913f-4492-821a-2981031382f7
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "metadata" : {
        +    "id" : "2e5451fe-913f-4492-821a-2981031382f7",
        +    "name" : "TestModelArtsalgorithm",
        +    "description" : "This is a ModelArts algorithm",
        +    "create_time" : 1636600721742,
        +    "workspace_id" : "0",
        +    "ai_project" : "default-ai-project",
        +    "user_name" : "",
        +    "domain_id" : "xxxxxxxxxxxxxxxxxxxxxxxxxx",
        +    "source" : "custom",
        +    "api_version" : "",
        +    "is_valid" : true,
        +    "state" : "",
        +    "size" : 4791,
        +    "tags" : [ ],
        +    "attr_list" : null,
        +    "version_num" : 0,
        +    "update_time" : 0
        +  },
        +  "share_info" : { },
        +  "job_config" : {
        +    "code_dir" : "/algo-test/pytorch/work1/code/",
        +    "boot_file" : "/algo-test/pytorch/work1/code/test-pytorch.py",
        +    "command" : "",
        +    "parameters" : [ {
        +      "name" : "test-parameter",
        +      "description" : "",
        +      "i18n_description" : null,
        +      "value" : "10",
        +      "constraint" : {
        +        "type" : "String",
        +        "editable" : true,
        +        "required" : false,
        +        "sensitive" : false,
        +        "valid_type" : "None",
        +        "valid_range" : [ ]
        +      }
        +    } ],
        +    "parameters_customization" : true,
        +    "inputs" : [ {
        +      "name" : "data_url",
        +      "description" : "name to translate"
        +    } ],
        +    "outputs" : [ {
        +      "name" : "train_url",
        +      "description" : "name to translate"
        +    } ],
        +    "engine" : {
        +      "engine_id" : "pytorch-cp36-1.3.0",
        +      "engine_name" : "PyTorch",
        +      "engine_version" : "PyTorch-1.3.0-python3.6",
        +      "v1_compatible" : true,
        +      "run_user" : "",
        +      "image_info" : {
        +        "cpu_image_url" : "modelarts-job-dev-image/pytorch-cpu-cp36:1.3.0",
        +        "gpu_image_url" : "modelarts-job-dev-image/pytorch-gpu-cuda10-cp36:1.3.0",
        +        "image_version" : "3.1.0"
        +      }
        +    },
        +    "code_tree" : {
        +      "name" : "code/",
        +      "children" : [ {
        +        "name" : "test-pytorch.py"
        +      } ]
        +    }
        +  },
        +  "resource_requirements" : null,
        +  "advanced_config" : { }
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowAttachableObs.html b/docs/modelarts/api-ref/ShowAttachableObs.html new file mode 100644 index 00000000..6d6af4cc --- /dev/null +++ b/docs/modelarts/api-ref/ShowAttachableObs.html @@ -0,0 +1,153 @@ + + +

        Obtaining Details About a Notebook Instance with OBS Storage Mounted

        +

        Function

        This API is used to obtain details about a notebook instance with OBS storage mounted.

        +
        +

        Constraints

        None

        +
        +

        URI

        GET /v1/{project_id}/notebooks/{instance_id}/storage/{storage_id}

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        instance_id

        +

        Yes

        +

        String

        +

        Notebook instance ID.

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +

        storage_id

        +

        Yes

        +

        String

        +

        OBS storage ID.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        category

        +

        String

        +

        Storage category. Options: - OBS

        +

        id

        +

        String

        +

        ID of the instance with OBS storage mounted.

        +

        mount_path

        +

        String

        +

        Path where OBS storage is mounted to a notebook instance.

        +

        status

        +

        String

        +

        Status of OBS storage to be mounted. Options: \r\n-MOUNTING: OBS storage is being mounted. \r\n-MOUNT_FAILED: OBS storage fails to be mounted. \r\n-MOUNTED: OBS storage is mounted. \r\n-UNMOUNTING: OBS storage is being unmounted.\r\n-UNMOUNT_FAILED: OBS storage fails to be unmounted.\r\n-UNMOUNTED: OBS is unmounted.

        +

        uri

        +

        String

        +

        OBS parallel file system path.

        +
        +
        +
        +

        Example Requests

        None

        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "id" : "91dd2d3f-2d92-475f-a375-04636af26cc9",
        +  "category" : "OBSFS",
        +  "mount_path" : "/data/wang/",
        +  "uri" : "obs://authoring-test/wang/",
        +  "status" : "MOUNTED"
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowAutoSearchParamAnalysisResultPath.html b/docs/modelarts/api-ref/ShowAutoSearchParamAnalysisResultPath.html new file mode 100644 index 00000000..e63bd602 --- /dev/null +++ b/docs/modelarts/api-ref/ShowAutoSearchParamAnalysisResultPath.html @@ -0,0 +1,109 @@ + + +

        Obtaining the Path for Storing a Hyperparameter Sensitivity Analysis Image

        +

        Function

        This API is used to obtain the path for storing a hyperparameter sensitivity analysis image.

        +
        +

        URI

        GET /v2/{project_id}/training-jobs/{training_job_id}/autosearch-parameter-analysis/{parameter_name}

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        parameter_name

        +

        Yes

        +

        String

        +

        Name of the search parameter.

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +

        training_job_id

        +

        Yes

        +

        String

        +

        ID of a training job.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        file_path

        +

        String

        +

        Path for storing hyperparameter sensitivity analysis images.

        +
        +
        +
        +

        Example Requests

        The following shows how to query the path for storing the sensitivity analysis image of hyperparameter batch_size in the yperparameter sensitivity analysis results of the job whose training_job_id is e346206c-6fde-4c33-9dcd-55be17858ceb.

        +
        GET https://endpoint/v2/{project_id}/training-jobs/e346206c-6fde-4c33-9dcd-55be17858ceb/autosearch-parameter-analysis/batch_size
        +
        +
        +
        +
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "file_path" : "/test-wrk/autosearch-test/output/log/hyperparameter-analysis/fanova/batch_size.png"
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowAutoSearchParamsAnalysis.html b/docs/modelarts/api-ref/ShowAutoSearchParamsAnalysis.html new file mode 100644 index 00000000..92e31d52 --- /dev/null +++ b/docs/modelarts/api-ref/ShowAutoSearchParamsAnalysis.html @@ -0,0 +1,108 @@ + + +

        Obtaining the Hyperparameter Sensitivity Analysis Result

        +

        Function

        This API is used to obtain the summary of hyperparameter sensitivity analysis results.

        +
        +

        URI

        GET /v2/{project_id}/training-jobs/{training_job_id}/autosearch-parameter-analysis

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +

        training_job_id

        +

        Yes

        +

        String

        +

        ID of a training job.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        header

        +

        Array of strings

        +

        Field of a trial searched using hyperparameters.

        +

        data

        +

        Array<Array<String>>

        +

        Each data list of a trial searched using hyperparameters.

        +
        +
        +
        +

        Example Requests

        The following shows how to query the hyperparameter sensitivity analysis result of the job whose training_job_id is 04f679b17380d32a2f32c00335c4b5ba.

        +
        GET https://endpoint/v2/{project_id}/training-jobs/04f679b17380d32a2f32c00335c4b5ba/autosearch-parameter-analysis
        +
        +
        +
        +
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "header" : [ "parameters", "the mean/std of importance" ],
        +  "data" : [ [ "batch_size", "0.2443/0.3867" ], [ "learning_rate", "0.6992/0.4040" ] ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowAutoSearchPerTrial.html b/docs/modelarts/api-ref/ShowAutoSearchPerTrial.html new file mode 100644 index 00000000..54be9b87 --- /dev/null +++ b/docs/modelarts/api-ref/ShowAutoSearchPerTrial.html @@ -0,0 +1,117 @@ + + +

        Querying Information About a Trial Using Hyperparameter Search

        +

        Function

        This API is used to query information about a trial using hyperparameter search based on the trial_id.

        +
        +

        URI

        GET /v2/{project_id}/training-jobs/{training_job_id}/autosearch-trials/{trial_id}

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +

        training_job_id

        +

        Yes

        +

        String

        +

        ID of a training job.

        +

        trial_id

        +

        Yes

        +

        String

        +

        trial_id for hyperparameter search.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        header

        +

        Array of strings

        +

        Field of a trial searched using hyperparameters.

        +

        data

        +

        Array<Array<String>>

        +

        Each data list of a trial searched using hyperparameters.

        +
        +
        +
        +

        Example Requests

        The following shows how to query information about trial ae544174 of the job whose training_job_id is 5b60a667-1438-4eb5-9705-85b860e623dc.

        +
        GET https://endpoint//v2/{project_id}/training-jobs/5b60a667-1438-4eb5-9705-85b860e623dc/autosearch-trials/ae544174
        +
        +
        +
        +
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "header" : [ "done", "pid", "best_reward", "time_total_s", "config", "acc", "loss", "trial_id", "training_iteration", "reward_attr" ],
        +  "data" : [ [ "False", "314", "0.0625", "19.477163314819336", "{'batch_size': 32, 'learning_rate': 0.05512301741232006, 'trial_index': 0, 'param/batch_size': 32, 'param/learning_rate': 0.05512301741232006}", "0.0625", "tensor(0.0754, device='cuda:0', requires_grad=True)", "ae544174", "2", "0.0625" ], [ "True", "314", "0.0625", "19.477163314819336", "{'batch_size': 32, 'learning_rate': 0.05512301741232006, 'trial_index': 0, 'param/batch_size': 32, 'param/learning_rate': 0.05512301741232006}", "0.0625", "tensor(0.0754, device='cuda:0', requires_grad=True)", "ae544174", "2", "0.0625" ] ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowAutoSearchTrialEarlyStop.html b/docs/modelarts/api-ref/ShowAutoSearchTrialEarlyStop.html new file mode 100644 index 00000000..3a03a06b --- /dev/null +++ b/docs/modelarts/api-ref/ShowAutoSearchTrialEarlyStop.html @@ -0,0 +1,105 @@ + + +

        Early Stopping a Trial of an Auto Search Job

        +

        Function

        This API is used to early stop a trial of an auto search job.

        +
        +

        URI

        POST /v2/{project_id}/training-jobs/{training_job_id}/autosearch-trial-earlystop/{trial_id}

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +

        training_job_id

        +

        Yes

        +

        String

        +

        ID of a training job.

        +

        trial_id

        +

        Yes

        +

        String

        +

        trial_id for hyperparameter search.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        earlystop_trial

        +

        String

        +

        trial_id of the trial that is early stopped.

        +
        +
        +
        +

        Example Requests

        The following shows how to early stop the trial whose trial_id is 50093e6c using the job whose training_job_id is e346206c-6fde-4c33-9dcd-55be17858ceb as an example.

        +
        POST https://endpoint/v2/{project_id}/training-jobs/e346206c-6fde-4c33-9dcd-55be17858ceb/autosearch-trial-earlystop/50093e6c
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "earlystop_trial" : "50093e6c"
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowAutoSearchTrials.html b/docs/modelarts/api-ref/ShowAutoSearchTrials.html new file mode 100644 index 00000000..e653629d --- /dev/null +++ b/docs/modelarts/api-ref/ShowAutoSearchTrials.html @@ -0,0 +1,195 @@ + + +

        Querying All Trials Using Hyperparameter Search

        +

        Function

        This API is used to query all trails using hyperparameter search.

        +
        +

        URI

        GET /v2/{project_id}/training-jobs/{training_job_id}/autosearch-trials

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +

        training_job_id

        +

        Yes

        +

        String

        +

        ID of a training job.

        +
        +
        + +
        + + + + + + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        limit

        +

        No

        +

        Integer

        +

        Maximum number of records returned on each page. The value ranges from 1 to 50. The default value is 50.

        +

        Minimum: 1

        +

        Maximum: 50

        +

        Default: 50

        +

        offset

        +

        No

        +

        Integer

        +

        Start page for pagination display. The default value is 0.

        +

        Minimum: 0

        +

        Default: 0

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        total

        +

        Integer

        +

        Total number of trials using the hyperparameter search.

        +

        count

        +

        Integer

        +

        Number of hyperparameter search trials displayed on the current page.

        +

        limit

        +

        Integer

        +

        Maximum number of hyperparameter search trials displayed on the current page.

        +

        offset

        +

        Integer

        +

        Current page for all trials searched using hyperparameters.

        +

        items

        +

        items object

        +

        Hyperparameter search items.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 4 items

        Parameter

        +

        Type

        +

        Description

        +

        header

        +

        Array of strings

        +

        Fields of all trials searched using hyperparameters.

        +

        data

        +

        Array<Array<String>>

        +

        Each data list of all trials searched using hyperparameters.

        +
        +
        +
        +

        Example Requests

        The following shows how to query all trial information about the job whose training_job_id is 5b60a667-1438-4eb5-9705-85b860e623dc.

        +
        GET https://endpoint/v2/{project_id}/training-jobs/5b60a667-1438-4eb5-9705-85b860e623dc/autosearch-trials
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "total" : 8,
        +  "count" : 8,
        +  "limit" : 50,
        +  "offset" : 0,
        +  "group_by" : "",
        +  "items" : {
        +    "header" : [ "", "done", "pid", "config", "trial_id", "training_iteration", "time_total_s", "worker_index", "reward_attr", "status", "acc", "loss", "best_reward" ],
        +    "data" : [ [ "0", "True", "314", "{'batch_size': 32, 'learning_rate': 0.05512301741232006, 'trial_index': 0, 'param/batch_size': 32, 'param/learning_rate': 0.05512301741232006}", "ae544174", "2", "19.477163314819336", "", "0.0625", "TERMINATED", "0.0625", "tensor(0.0754, device='cuda:0', requires_grad=True)", "0.0625" ], [ "1", "True", "315", "{'batch_size': 32, 'learning_rate': 0.0785570955603036, 'trial_index': 1, 'param/batch_size': 32, 'param/learning_rate': 0.0785570955603036}", "ae548666", "2", "3.601897954940796", "", "0.0", "TERMINATED", "0.0", "tensor(0.0760, device='cuda:0', requires_grad=True)", "0.0" ], [ "2", "True", "312", "{'batch_size': 16, 'learning_rate': 0.04015387428829642, 'trial_index': 2, 'param/batch_size': 16, 'param/learning_rate': 0.04015387428829642}", "ae54c0ea", "2", "3.5978384017944336", "", "0.1875", "TERMINATED", "0.1875", "tensor(0.1469, device='cuda:0', requires_grad=True)", "0.1875" ], [ "3", "True", "313", "{'batch_size': 32, 'learning_rate': 0.0340820322164706, 'trial_index': 3, 'param/batch_size': 32, 'param/learning_rate': 0.0340820322164706}", "ae5503c0", "2", "3.641200304031372", "", "0.25", "TERMINATED", "0.25", "tensor(0.0716, device='cuda:0', requires_grad=True)", "0.25" ], [ "4", "True", "470", "{'batch_size': 32, 'learning_rate': 0.03656488928171769, 'trial_index': 4, 'param/batch_size': 32, 'param/learning_rate': 0.03656488928171769}", "bef46590", "2", "3.6120550632476807", "", "0.09375", "TERMINATED", "0.09375", "tensor(0.0740, device='cuda:0', requires_grad=True)", "0.09375" ], [ "5", "True", "499", "{'batch_size': 32, 'learning_rate': 0.008413169003970163, 'trial_index': 5, 'param/batch_size': 32, 'param/learning_rate': 0.008413169003970163}", "bef578f4", "2", "3.6379287242889404", "", "0.1875", "TERMINATED", "0.1875", "tensor(0.0723, device='cuda:0', requires_grad=True)", "0.1875" ], [ "6", "True", "528", "{'batch_size': 64, 'learning_rate': 0.06297447200613912, 'trial_index': 6, 'param/batch_size': 64, 'param/learning_rate': 0.06297447200613912}", "bef5c584", "2", "3.711118221282959", "", "0.046875", "TERMINATED", "0.046875", "tensor(0.0381, device='cuda:0', requires_grad=True)", "0.046875" ], [ "7", "True", "557", "{'batch_size': 32, 'learning_rate': 0.04426479392014276, 'trial_index': 7, 'param/batch_size': 32, 'param/learning_rate': 0.04426479392014276}", "bef60684", "2", "3.6971280574798584", "", "0.0625", "TERMINATED", "0.0625", "tensor(0.0778, device='cuda:0', requires_grad=True)", "0.0625" ] ]
        +  }
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowAutoSearchYamlTemplateContent.html b/docs/modelarts/api-ref/ShowAutoSearchYamlTemplateContent.html new file mode 100644 index 00000000..d3fd76ec --- /dev/null +++ b/docs/modelarts/api-ref/ShowAutoSearchYamlTemplateContent.html @@ -0,0 +1,113 @@ + + +

        Obtaining the Content of the YAML Template of an Auto Search Job

        +

        Function

        This API is used to obtain the content of the YAML template of an auto search job.

        +
        +

        URI

        GET /v2/{project_id}/training-jobs/autosearch/yaml-templates/{algorithm_type}/{algorithm_name}

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        algorithm_type

        +

        Yes

        +

        String

        +

        Type of the search algorithm.

        +

        algorithm_name

        +

        Yes

        +

        String

        +

        Name of the search algorithm.

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        file_name

        +

        String

        +

        YAML file name.

        +

        content

        +

        String

        +

        YAML file content.

        +
        +
        +
        +

        Example Requests

        The following shows how to query the content of the YAML configuration file whose algorithm_type is hpo and algorithm_name is Bayes.

        +
        GET https://endpoint/v2/{project_id}/training-jobs/autosearch/yaml-templates/hpo/Bayes
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "file_name" : "Bayes.yaml",
        +  "content" : "general:\r\n  instance_per_trial: 1\r\n  gpu_per_instance: 1\r\n  cpu_per_instance: 1\r\n\r\nsearch_space:\r\n  - params:   # only support continuous params\r\n    - type: continuous_param\r\n      name : lr\r\n      start: 0.001\r\n      stop: 0.1\r\n\r\nsearch_algorithm:\r\n  type: bayes_opt_search\r\n  max_concurrent: 4\r\n  reward_attr: accuracy\r\n  num_samples: 8\r\n  kind : ucb\r\n  save_model_count : 3\r\n  mode: max\r\n\r\nscheduler:\r\n  type: FIFOScheduler"
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowAutoSearchYamlTemplatesInfo.html b/docs/modelarts/api-ref/ShowAutoSearchYamlTemplatesInfo.html new file mode 100644 index 00000000..9e5cf6ff --- /dev/null +++ b/docs/modelarts/api-ref/ShowAutoSearchYamlTemplatesInfo.html @@ -0,0 +1,129 @@ + + +

        Obtaining Information About the YAML Template of an Auto Search Job

        +

        Function

        This API is used to obtain information about the YAML template of an auto search job.

        +
        +

        URI

        GET /v2/{project_id}/training-jobs/autosearch/yaml-templates

        + +
        + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        yaml_templates

        +

        Array of YamlTemplate objects

        +

        Directories and file names of all YAML files.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 3 YamlTemplate

        Parameter

        +

        Type

        +

        Description

        +

        algorithm_type_en

        +

        String

        +

        AutoSearch algorithm type, which is described in English.

        +

        algorithm_names

        +

        Array of strings

        +

        Names of all algorithms of this type.

        +
        +
        +
        +

        Example Requests

        The following shows how to query information about the YAML configuration template of an auto search job.

        +
        GET https://endpoint/v2/{project_id}/training-jobs/autosearch/yaml-templates
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "yaml_templates" : [ {
        +    "algorithm_type_en" : "hpo",
        +    "algorithm_type_zh" : "algorithm_type_zh to translate",
        +    "algorithm_names" : [ "Anneal", "Bayes", "DragonFly", "FixNorm", "GridSearch", "TPE" ]
        +  }, {
        +    "algorithm_type_en" : "nas",
        +    "algorithm_type_zh" : "algorithm_type_zh to translate",
        +    "algorithm_names" : [ "AutoBSS", "AutoEvo", "AutoTopo", "MBNAS" ]
        +  }, {
        +    "algorithm_type_en" : "augment",
        +    "algorithm_type_zh" : "algorithm_type_zh to translate",
        +    "algorithm_names" : [ "AdvAutoAugment", "AutoAugment" ]
        +  }, {
        +    "algorithm_type_en" : "compression",
        +    "algorithm_type_zh" : "algorithm_type_zh to translate",
        +    "algorithm_names" : [ "AutoCompress" ]
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowLease.html b/docs/modelarts/api-ref/ShowLease.html new file mode 100644 index 00000000..36c9a8c0 --- /dev/null +++ b/docs/modelarts/api-ref/ShowLease.html @@ -0,0 +1,136 @@ + + +

        Querying the Available Duration of a Running Notebook Instance

        +

        Function

        This API is used to query the available duration of a running notebook instance.

        +
        +

        Constraints

        None

        +
        +

        URI

        GET /v1/{project_id}/notebooks/{id}/lease

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        id

        +

        Yes

        +

        String

        +

        Notebook instance ID.

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Time (UTC) when the instance is created, accurate to millisecond.

        +

        duration

        +

        Long

        +

        Instance running duration, which is calculated based on the instance creation time. If the instance creation time plus the duration is greater than the current time, the system automatically stops the instance.

        +

        enable

        +

        Boolean

        +

        Whether to enable auto stop of the instance.

        +

        update_time

        +

        Long

        +

        Time (UTC) when the instance is last updated (excluding the keepalive heartbeat time), accurate to millisecond.

        +
        +
        +
        +

        Example Requests

        None

        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "create_at" : 1638841744515,
        +  "duration" : 3600000,
        +  "enable" : true,
        +  "update_at" : 1638842905925
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowNotebook.html b/docs/modelarts/api-ref/ShowNotebook.html new file mode 100644 index 00000000..492e4865 --- /dev/null +++ b/docs/modelarts/api-ref/ShowNotebook.html @@ -0,0 +1,472 @@ + + +

        Querying Details of a Notebook Instance

        +

        Function

        This API is used to query details about a notebook instance, including its ID, name, flavor, image, status, and accessible URLs.

        +
        +

        Constraints

        None

        +
        +

        URI

        GET /v1/{project_id}/notebooks/{id}

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        id

        +

        Yes

        +

        String

        +

        Notebook instance ID.

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        action_progress

        +

        Array of JobProgress objects

        +

        Instance initialization progress.

        +

        description

        +

        String

        +

        Instance description

        +

        endpoints

        +

        Array of EndpointsRes objects

        +

        Local IDE (such as PyCharm and vsCode) or SSH client for remotely accessing a notebook instance through SSH.

        +

        fail_reason

        +

        String

        +

        Instance failure cause

        +

        feature

        +

        String

        +

        Instance type. Options: - DEFAULT: free CodeLab instance. You can create only one. - NOTEBOOK: billed instance.

        +

        flavor

        +

        String

        +

        Instance flavor

        +

        id

        +

        String

        +

        Instance ID.

        +

        image

        +

        Image object

        +

        Instance image

        +

        lease

        +

        Lease object

        +

        Countdown to automatic instance stop.

        +

        name

        +

        String

        +

        Instance name

        +

        pool

        +

        Pool object

        +

        Basic information about the dedicated pool, which is returned by the instance created in the dedicated pool.

        +

        status

        +

        String

        +

        Instance status Options: \r\n-INIT: The instance is being initialized. \r\n-CREATING: The instance is being created. \r\n-STARTING: The instance is starting. \r\n-STOPPING: The instance is stopping. \r\n-DELETING: The instance is being deleted.\r\n-RUNNING: The instance is running.\r\n-STOPPED: The instance is stopped.\r\n-SNAPSHOTTING: A snapshot is being taken for the instance (status when the image is being saved).\r\n-CREATE_FAILED: The instance fails to be created. \r\n-START_FAILED: The instance fails to be started. \r\n-DELETE_FAILED: The instance fails to be deleted.\r\n-ERROR: An error occurs. \r\n-DELETED: The instance is deleted. \r\n-FROZEN: The instance is frozen.

        +

        token

        +

        String

        +

        Token used for notebook authentication

        +

        url

        +

        String

        +

        URL for accessing the notebook instance

        +

        volume

        +

        VolumeRes object

        +

        Storage volume

        +

        workspace_id

        +

        String

        +

        Workspace ID. If no workspaces are available, the default value is 0.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 3 JobProgress

        Parameter

        +

        Type

        +

        Description

        +

        notebook_id

        +

        String

        +

        Instance ID.

        +

        status

        +

        String

        +

        Job status in a specified step. Options: - WAITING: The job is waiting to begin. - PROCESSING: The job is being processed. - FAILED: The job failed. - COMPLETED: The task is complete.

        +

        step

        +

        Integer

        +

        Job step. Options: - 1: Storage preparation. - 2: Computing resource preparation. - 3: Network configurations. - 4: Instance initialization.

        +

        step_description

        +

        String

        +

        Description of a step in a job.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 4 EndpointsRes

        Parameter

        +

        Type

        +

        Description

        +

        allowed_access_ips

        +

        Array of strings

        +

        Whitelist of public IP addresses that are allowed to access the notebook instance through SSH. By default, all public IP addresses can access the notebook instance. If this parameter is specified, only the clients with the specified IP addresses can access the notebook instance.

        +

        dev_service

        +

        String

        +

        Supported services. Options: - NOTEBOOK: You can access the notebook instance using HTTPS.- SSH: You can remotely access the notebook instance through SSH.

        +

        ssh_keys

        +

        Array of strings

        +

        List of SSH key pairs. You can set multiple key pairs to access an SSH instance at the same time.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 5 Image

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Image ID

        +

        name

        +

        String

        +

        Image name.

        +

        swr_path

        +

        String

        +

        SWR image address

        +

        type

        +

        String

        +

        Image type. Options: - BUILD_IN: built-in system image- DEDICATED: image saved by the user

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 6 Lease

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Time (UTC) when the instance is created, accurate to millisecond.

        +

        duration

        +

        Long

        +

        Instance running duration, which is calculated based on the instance creation time. If the instance creation time plus the duration is greater than the current time, the system automatically stops the instance.

        +

        enable

        +

        Boolean

        +

        Whether to enable auto stop of the instance.

        +

        update_time

        +

        Long

        +

        Time (UTC) when the instance is last updated (excluding the keepalive heartbeat time), accurate to millisecond.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 7 Pool

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        ID of a dedicated resource pool

        +

        name

        +

        String

        +

        Name of a dedicated resource pool

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 8 VolumeRes

        Parameter

        +

        Type

        +

        Description

        +

        capacity

        +

        Integer

        +

        Storage capacity. The default value is 5 GB for EVS and 50 GB for EFS. The maximum value is 4,096 GB.

        +

        category

        +

        String

        +

        Storage category. Options: \r\n-EFS: Scalable File Service (SFS), which is the default storage. \r\n-EVS: Elastic Volume Service (EVS). \r\n\r\n For details about the differences between the two types of storage, see Selecting a Storage Type in DevEnviron.\r\n.\r\n\r\n\r\n\r\n

        +

        mount_path

        +

        String

        +

        Directory of the notebook instance to which OBS storage is mounted. Currently, the directory is /home/ma-user/work/.

        +

        ownership

        +

        String

        +

        Owner to which the resource belongs. Options: - MANAGED: Resources are managed by services.- DEDICATED: Resources are managed by the user account. This mode is supported only when the instance category is EFS.

        +

        status

        +

        String

        +

        EVS disk capacity expansion status, which is RESIZING during capacity expansion and does not affect the instance.

        +
        +
        +
        +

        Example Requests

        None

        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "create_at" : 1638778344314,
        +  "description" : "api-test",
        +  "endpoints" : [ {
        +    "service" : "NOTEBOOK",
        +    "uri" : "https://authoring-modelarts-xxxx.xxxx.com/f9937afa-631e-4a8f-a8f7-3b6c800585f0/lab"
        +  } ],
        +  "feature" : "NOTEBOOK",
        +  "flavor" : "modelarts.vm.cpu.2u",
        +  "id" : "f9937afa-631e-4a8f-a8f7-3b6c800585f0",
        +  "image" : {
        +    "arch" : "X86_64",
        +    "currentTag" : "3.3.1.B007_V2",
        +    "feature" : "DEFAULT",
        +    "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54090",
        +    "name" : "notebook2.0-mul-kernel-cpu-cp36",
        +    "swr_path" : "swr.xxx.xxxx.com/atelier/notebook2.0-mul-kernel-cpu-cp36:3.3.1.B007_V2",
        +    "type" : "BUILD_IN"
        +  },
        +  "lease" : {
        +    "create_at" : 1638778344300,
        +    "duration" : 3600000,
        +    "enable" : true,
        +    "update_at" : 1638778344300
        +  },
        +  "name" : "notebooks_test",
        +  "status" : "CREATE_FAILED",
        +  "token" : "7b22482a-a4cb-4b46-e3b3-6a793a47967e",
        +  "update_at" : 1638778346131,
        +  "url" : "https://authoring-modelarts-xxxx.xxxx.com/f9937afa-631e-4a8f-a8f7-3b6c800585f0/lab",
        +  "workspace_id" : "0"
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowSwitchableFlavors.html b/docs/modelarts/api-ref/ShowSwitchableFlavors.html new file mode 100644 index 00000000..6bba3948 --- /dev/null +++ b/docs/modelarts/api-ref/ShowSwitchableFlavors.html @@ -0,0 +1,332 @@ + + +

        Querying Flavors Available for a Notebook Instance

        +

        Function

        This API is used to query the flavors available for a notebook instance.

        +
        +

        Constraints

        None

        +
        +

        URI

        GET /v1/{project_id}/notebooks/{id}/flavors

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        id

        +

        Yes

        +

        String

        +

        Notebook instance ID.

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        flavors

        +

        Array of NotebookFlavor objects

        +

        Flavor list

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 3 NotebookFlavor

        Parameter

        +

        Type

        +

        Description

        +

        arch

        +

        String

        +

        Architecture type. Options: - X86_64 - AARCH64

        +

        ascend

        +

        AscendInfo object

        +

        NPU information

        +

        billing

        +

        BillingInfo object

        +

        Billing information

        +

        category

        +

        String

        +

        Processor type. Options: - CPU - GPU - ASCEND

        +

        description

        +

        String

        +

        Instance flavor description

        +

        feature

        +

        String

        +

        Flavor category. Options: - DEFAULT: CodeLab - NOTEBOOK: Notebook

        +

        free

        +

        Boolean

        +

        Free flavor or not

        +

        gpu

        +

        GPUInfo object

        +

        GPU information

        +

        id

        +

        String

        +

        Flavor ID

        +

        memory

        +

        Long

        +

        Memory size

        +

        name

        +

        String

        +

        Flavor name

        +

        sold_out

        +

        Boolean

        +

        Whether the resources are sufficient. Options:

        +
        • true indicates that the resources are insufficient.
        • false indicates that the resources are sufficient.
        +

        storages

        +

        Array of strings

        +

        Storage type supported by the flavor. Options:

        +
        • EVS
        • EFS
        +

        vcpus

        +

        Integer

        +

        Number of vCPUs

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 4 AscendInfo

        Parameter

        +

        Type

        +

        Description

        +

        npu

        +

        Integer

        +

        Number of NPUs

        +

        npu_memory

        +

        String

        +

        NPU memory

        +

        type

        +

        String

        +

        NPU type

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 5 BillingInfo

        Parameter

        +

        Type

        +

        Description

        +

        code

        +

        String

        +

        Billing code

        +

        unit_num

        +

        Integer

        +

        Billing unit

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 6 GPUInfo

        Parameter

        +

        Type

        +

        Description

        +

        gpu

        +

        Integer

        +

        Number of GPUs

        +

        gpu_memory

        +

        String

        +

        GPU memory

        +

        type

        +

        String

        +

        GPU type

        +
        +
        +
        +

        Example Requests

        None

        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "flavors" : [ {
        +    "arch" : "X86_64",
        +    "feature" : "NOTEBOOK",
        +    "free" : false,
        +    "storages" : [ "EFS" ],
        +    "id" : "modelarts.vm.cpu.8u",
        +    "category" : "CPU",
        +    "vcpus" : 1,
        +    "memory" : 1048576,
        +    "name" : "CPU: 8vCPUs 32GB",
        +    "description" : "General computing-plus Intel CPU specifications, ideal for compute-intensive applications.",
        +    "billing" : {
        +      "code" : "modelarts.vm.cpu.2u",
        +      "unitNum" : 4
        +    },
        +    "sold_out" : false
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowTrainingJobInfomation.html b/docs/modelarts/api-ref/ShowTrainingJobInfomation.html new file mode 100644 index 00000000..748b5f9e --- /dev/null +++ b/docs/modelarts/api-ref/ShowTrainingJobInfomation.html @@ -0,0 +1,2090 @@ + + +

        Querying the Details About a Training Job

        +

        Function

        This API is used to query the details about a training job.

        +
        +

        URI

        GET /v2/{project_id}/training-jobs/{training_job_id}

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +

        training_job_id

        +

        Yes

        +

        String

        +

        ID of a training job.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        kind

        +

        String

        +

        Training job type, which is job by default. Options:

        +
        • job: Training job

          +
        • hetero_job: Heterogeneous job

          +
        • autosearch_job: Auto search job

          +
        • mrs_job: MRS job [- edge_job: Edge job] (tag:hk,hc,fcs,fcs-super)

          +
        +

        metadata

        +

        JobMetadata object

        +

        Metadata of a training job.

        +

        status

        +

        Status object

        +

        Status of a training job. You do not need to set this parameter when creating a job.

        +

        algorithm

        +

        JobAlgorithmResponse object

        +

        Algorithm for training jobs. The following formats are supported:

        +
        • id: Only the algorithm ID is used.

          +
        • subscription_id+item_version_id: The subscription ID and version ID of the algorithm are used.

          +
        • code_dir+boot_file: The code directory and boot file of a training job are used.

          +
        +

        tasks

        +

        Array of TaskResponse objects

        +

        List of tasks in heterogeneous training jobs.

        +

        spec

        +

        spec object

        +

        Specifications of a training job.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 3 JobMetadata

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Training job ID, which is generated and returned by ModelArts after the training job is created.

        +

        name

        +

        String

        +

        Name of a training job. The value must contain 1 to 64 characters consisting of only digits, letters, underscores (_), and hyphens (-).

        +

        workspace_id

        +

        String

        +

        Workspace where a job is located. The default value is 0.

        +

        description

        +

        String

        +

        Training job description. The value must contain 0 to 256 characters. The default value is NULL.

        +

        create_time

        +

        Long

        +

        Timestamp when a training job is created, in milliseconds. The value is generated and returned by ModelArts after the job is created.

        +

        user_name

        +

        String

        +

        Username for creating a training job. The username is generated and returned by ModelArts after the training job is created.

        +

        annotations

        +

        Map<String,String>

        +

        Declaration template of a training job. For heterogeneous jobs, the default value of job_template is Template RL. For other jobs, the default value is Template DL.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 Status

        Parameter

        +

        Type

        +

        Description

        +

        phase

        +

        String

        +

        Level-1 status of a training job. The value is stable. The options are as follows: Creating Pending Running Failed Completed, Terminating Terminated Abnormal

        +

        secondary_phase

        +

        String

        +

        Level-2 status of a training job. The value is unstable. The options are as follows: Creating Queuing Running Failed Completed Terminating Terminated CreateFailed TerminatedFailed Unknown Lost

        +

        duration

        +

        Long

        +

        Running duration of a training job, in milliseconds

        +

        node_count_metrics

        +

        Array<Array<Integer>>

        +

        Node count changes during the training job running period.

        +

        tasks

        +

        Array of strings

        +

        Tasks of a training job.

        +

        start_time

        +

        String

        +

        Start time of a training job. The value is in timestamp format.

        +

        task_statuses

        +

        Array of task_statuses objects

        +

        Status of a training job task.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 5 task_statuses

        Parameter

        +

        Type

        +

        Description

        +

        task

        +

        String

        +

        Name of a training job task.

        +

        exit_code

        +

        Integer

        +

        Exit code of a training job task.

        +

        message

        +

        String

        +

        Error message of a training job task.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 6 JobAlgorithmResponse

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Algorithm for training jobs. Options:

        +
        • id: Only the algorithm ID is used.

          +
        • subscription_id+item_version_id: The subscription ID and version ID of the algorithm are used.

          +
        • code_dir+boot_file: The code directory and boot file of a training job are used.

          +
        +

        name

        +

        String

        +

        Algorithm name.

        +

        subscription_id

        +

        String

        +

        Subscription ID of the subscription algorithm. This parameter must be used together with item_version_id.

        +

        item_version_id

        +

        String

        +

        Version ID of the subscription algorithm. This parameter must be used together with subscription_id.

        +

        code_dir

        +

        String

        +

        Code directory of a training job, for example, /usr/app/. This parameter must be used together with boot_file. If id or subscription_id+item_version_id is set, leave it blank.

        +

        boot_file

        +

        String

        +

        Boot file of a training job, which needs to be stored in the code directory, for example, /usr/app/boot.py. This parameter must be used together with code_dir. If id or subscription_id+item_version_id is set, leave it blank.

        +

        autosearch_config_path

        +

        String

        +

        YAML configuration path of auto search jobs. An OBS URL is required.

        +

        autosearch_framework_path

        +

        String

        +

        Framework code directory of auto search jobs. An OBS URL is required.

        +

        command

        +

        String

        +

        Boot command used to start the container of the custom image used by a training job. You can set this parameter to code_dir.

        +

        parameters

        +

        Array of Parameter objects

        +

        Running parameters of a training job.

        +

        policies

        +

        policies object

        +

        Policies supported by jobs.

        +

        inputs

        +

        Array of Input objects

        +

        Input of a training job.

        +

        outputs

        +

        Array of Output objects

        +

        Output of a training job.

        +

        engine

        +

        engine object

        +

        Engine of a training job. Leave this parameter blank if the job is created using id of the algorithm management API or subscription_id+item_version_id of the subscription algorithm API.

        +

        environments

        +

        Array of Map<String,String> objects

        +

        Environment variables of a training job. The format is key: value. Leave this parameter blank.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 7 Parameter

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Parameter name.

        +

        value

        +

        String

        +

        Parameter value.

        +

        description

        +

        String

        +

        Parameter description.

        +

        constraint

        +

        constraint object

        +

        Parameter constraint.

        +

        i18n_description

        +

        i18n_description object

        +

        Internationalization description.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 8 constraint

        Parameter

        +

        Type

        +

        Description

        +

        type

        +

        String

        +

        Parameter type.

        +

        editable

        +

        Boolean

        +

        Whether the parameter is editable.

        +

        required

        +

        Boolean

        +

        Whether the parameter is mandatory.

        +

        sensitive

        +

        Boolean

        +

        Whether the parameter is sensitive.

        +

        valid_type

        +

        String

        +

        Valid type.

        +

        valid_range

        +

        Array of strings

        +

        Valid range.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 9 i18n_description

        Parameter

        +

        Type

        +

        Description

        +

        language

        +

        String

        +

        Internationalization language.

        +

        description

        +

        String

        +

        Description.

        +
        +
        + +
        + + + + + + + + + +
        Table 10 policies

        Parameter

        +

        Type

        +

        Description

        +

        auto_search

        +

        auto_search object

        +

        Hyperparameter search configuration.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 12 reward_attrs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Metric name.

        +

        mode

        +

        String

        +

        Search direction.

        +
        • max: A larger metric value indicates better performance.

          +
        • min: A smaller metric value indicates better performance.

          +
        +

        regex

        +

        String

        +

        Regular expression of a metric.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 13 search_params

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Hyperparameter name.

        +

        param_type

        +

        String

        +

        Parameter type.

        +
        • continuous: The parameter is a continuous value.

          +
        • discreate: The parameter is a discrete value.

          +
        +

        lower_bound

        +

        String

        +

        Lower bound of the hyperparameter.

        +

        upper_bound

        +

        String

        +

        Upper bound of the hyperparameter.

        +

        discrete_points_num

        +

        String

        +

        Number of discrete points of a continuous hyperparameter.

        +

        discrete_values

        +

        Array of strings

        +

        List of discrete hyperparameter values.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 14 algo_configs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the search algorithm.

        +

        params

        +

        Array of AutoSearchAlgoConfigParameter objects

        +

        Search algorithm parameters.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 15 AutoSearchAlgoConfigParameter

        Parameter

        +

        Type

        +

        Description

        +

        key

        +

        String

        +

        Parameter key.

        +

        value

        +

        String

        +

        Parameter value.

        +

        type

        +

        String

        +

        Parameter type.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 16 Input

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data input channel.

        +

        description

        +

        String

        +

        Description of the data input channel.

        +

        local_dir

        +

        String

        +

        Local directory of the container to which the data input channel is mapped.

        +

        remote

        +

        InputDataInfo object

        +

        Data input. Options:

        +
        • dataset: Dataset as the data input

          +
        • obs: OBS path as the data input

          +
        +

        remote_constraint

        +

        Array of remote_constraint objects

        +

        Data input constraint.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 17 InputDataInfo

        Parameter

        +

        Type

        +

        Description

        +

        dataset

        +

        dataset object

        +

        Dataset as the data input.

        +

        obs

        +

        obs object

        +

        OBS in which data input and output stored.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 18 dataset

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Dataset ID of a training job.

        +

        version_id

        +

        String

        +

        Dataset version ID of a training job.

        +

        obs_url

        +

        String

        +

        OBS URL of the dataset required by a training job. ModelArts automatically parses and generates the URL based on the dataset and dataset version IDs. For example, /usr/data/.

        +
        +
        + +
        + + + + + + + + + +
        Table 19 obs

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        OBS URL of the dataset required by a training job. For example, /usr/data/.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 20 remote_constraint

        Parameter

        +

        Type

        +

        Description

        +

        data_type

        +

        String

        +

        Data input type, including the data storage location and dataset.

        +

        attributes

        +

        String

        +

        Attributes if a dataset is used as the data input. Options:

        +
        • data_format: Data format

          +
        • data_segmentation: Data segmentation

          +
        • dataset_type: Labeling type

          +
        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 21 Output

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data output channel.

        +

        description

        +

        String

        +

        Description of the data output channel.

        +

        local_dir

        +

        String

        +

        Local directory of the container to which the data output channel is mapped.

        +

        remote

        +

        remote object

        +

        Description of the actual data output.

        +
        +
        + +
        + + + + + + + + + +
        Table 22 remote

        Parameter

        +

        Type

        +

        Description

        +

        obs

        +

        obs object

        +

        OBS to which data is actually exported.

        +
        +
        + +
        + + + + + + + + + +
        Table 23 obs

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        OBS URL to which data is actually exported.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 24 engine

        Parameter

        +

        Type

        +

        Description

        +

        engine_id

        +

        String

        +

        Engine ID selected for a training job. You can set this parameter to engine_id, engine_name + engine_version, or image_url.

        +

        engine_name

        +

        String

        +

        Name of the engine selected for a training job. If engine_id is set, leave this parameter blank.

        +

        engine_version

        +

        String

        +

        Name of the engine version selected for a training job. If engine_id is set, leave this parameter blank.

        +

        image_url

        +

        String

        +

        Custom image URL selected for a training job.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 25 TaskResponse

        Parameter

        +

        Type

        +

        Description

        +

        role

        +

        String

        +

        Role of a heterogeneous training job. Options:

        +
        • learner: supports GPUs or CPUs.

          +
        • worker: supports CPUs.

          +
        +

        algorithm

        +

        algorithm object

        +

        Algorithm management and configuration.

        +

        task_resource

        +

        FlavorResponse object

        +

        Flavors of a training job or an algorithm.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 26 algorithm

        Parameter

        +

        Type

        +

        Description

        +

        code_dir

        +

        String

        +

        Absolute path of the directory where the algorithm boot file is stored.

        +

        boot_file

        +

        String

        +

        Absolute path of the algorithm boot file.

        +

        inputs

        +

        inputs object

        +

        Algorithm input channel.

        +

        outputs

        +

        outputs object

        +

        Algorithm output channel.

        +

        engine

        +

        engine object

        +

        Engine on which a heterogeneous job depends.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 27 inputs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data input channel.

        +

        local_dir

        +

        String

        +

        Local path of the container to which the data input and output channels are mapped.

        +

        remote

        +

        remote object

        +

        Actual data input. Heterogeneous jobs support only OBS.

        +
        +
        + +
        + + + + + + + + + +
        Table 28 remote

        Parameter

        +

        Type

        +

        Description

        +

        obs

        +

        obs object

        +

        OBS in which data input and output stored.

        +
        +
        + +
        + + + + + + + + + +
        Table 29 obs

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        OBS URL of the dataset required by a training job. For example, /usr/data/.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 30 outputs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data output channel.

        +

        local_dir

        +

        String

        +

        Local directory of the container to which the data output channel is mapped.

        +

        remote

        +

        remote object

        +

        Description of the actual data output.

        +

        mode

        +

        String

        +

        Data transmission mode. The default value is upload_periodically.

        +

        period

        +

        String

        +

        Data transmission period. The default value is 30s.

        +
        +
        + +
        + + + + + + + + + +
        Table 31 remote

        Parameter

        +

        Type

        +

        Description

        +

        obs

        +

        obs object

        +

        OBS to which data is actually exported.

        +
        +
        + +
        + + + + + + + + + +
        Table 32 obs

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        OBS URL to which data is actually exported.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 33 engine

        Parameter

        +

        Type

        +

        Description

        +

        engine_id

        +

        String

        +

        Engine ID of a heterogeneous job, for example, caffe-1.0.0-python2.7.

        +

        engine_name

        +

        String

        +

        Engine name of a heterogeneous job, for example, Caffe.

        +

        engine_version

        +

        String

        +

        Engine version of a heterogeneous job.

        +

        v1_compatible

        +

        Boolean

        +

        Whether the v1 compatibility mode is used.

        +

        run_user

        +

        String

        +

        User UID started by default by the engine.

        +

        image_url

        +

        String

        +

        Custom image URL selected by an algorithm.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 34 FlavorResponse

        Parameter

        +

        Type

        +

        Description

        +

        flavor_id

        +

        String

        +

        ID of the resource flavor.

        +

        flavor_name

        +

        String

        +

        Name of the resource flavor.

        +

        max_num

        +

        Integer

        +

        Maximum number of nodes in a resource flavor.

        +

        flavor_type

        +

        String

        +

        Resource flavor type. Options:

        +
        • CPU

          +
        • GPU

          +
        • Ascend

          +
        +

        billing

        +

        billing object

        +

        Billing information of a resource flavor.

        +

        flavor_info

        +

        flavor_info object

        +

        Resource flavor details.

        +

        attributes

        +

        Map<String,String>

        +

        Other specification attributes.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 35 billing

        Parameter

        +

        Type

        +

        Description

        +

        code

        +

        String

        +

        Billing code.

        +

        unit_num

        +

        Integer

        +

        Number of billing units.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 36 flavor_info

        Parameter

        +

        Type

        +

        Description

        +

        max_num

        +

        Integer

        +

        Maximum number of nodes that can be selected. The value 1 indicates that the distributed mode is not supported.

        +

        cpu

        +

        cpu object

        +

        CPU specifications.

        +

        gpu

        +

        gpu object

        +

        GPU specifications.

        +

        npu

        +

        npu object

        +

        Ascend flavors.

        +

        memory

        +

        memory object

        +

        Memory information.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 37 cpu

        Parameter

        +

        Type

        +

        Description

        +

        arch

        +

        String

        +

        CPU architecture.

        +

        core_num

        +

        Integer

        +

        Number of cores.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 38 gpu

        Parameter

        +

        Type

        +

        Description

        +

        unit_num

        +

        Integer

        +

        Number of GPUs.

        +

        product_nume

        +

        String

        +

        Product name.

        +

        memory

        +

        String

        +

        Memory.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 39 npu

        Parameter

        +

        Type

        +

        Description

        +

        unit_num

        +

        String

        +

        Number of NPUs.

        +

        product_name

        +

        String

        +

        Product name.

        +

        memory

        +

        String

        +

        Memory.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 40 memory

        Parameter

        +

        Type

        +

        Description

        +

        size

        +

        Integer

        +

        Memory size.

        +

        unit

        +

        String

        +

        Number of memory units.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 41 spec

        Parameter

        +

        Type

        +

        Description

        +

        resource

        +

        Resource object

        +

        Resource flavors of a training job. Select either flavor_id or pool_id+[flavor_id].

        +

        volumes

        +

        Array of volumes objects

        +

        Volumes attached to a training job.

        +

        log_export_path

        +

        log_export_path object

        +

        Export path of training job logs.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 42 Resource

        Parameter

        +

        Type

        +

        Description

        +

        policy

        +

        String

        +

        Resource flavor of a training job. Options: regular

        +

        flavor_id

        +

        String

        +

        Resource flavor ID of a training job.

        +

        flavor_name

        +

        String

        +

        Read-only flavor name returned by ModelArts when flavor_id is used.

        +

        node_count

        +

        Integer

        +

        Number of resource replicas selected for a training job.

        +

        Minimum: 1

        +

        pool_id

        +

        String

        +

        Resource pool ID selected for a training job.

        +

        flavor_detail

        +

        flavor_detail object

        +

        Flavors of a training job or an algorithm.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 43 flavor_detail

        Parameter

        +

        Type

        +

        Description

        +

        flavor_type

        +

        String

        +

        Resource flavor type. Options:

        +
        • CPU

          +
        • GPU

          +
        • Ascend

          +
        +

        billing

        +

        billing object

        +

        Billing information of a resource flavor.

        +

        flavor_info

        +

        flavor_info object

        +

        Resource flavor details.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 44 billing

        Parameter

        +

        Type

        +

        Description

        +

        code

        +

        String

        +

        Billing code.

        +

        unit_num

        +

        Integer

        +

        Number of billing units.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 45 flavor_info

        Parameter

        +

        Type

        +

        Description

        +

        max_num

        +

        Integer

        +

        Maximum number of nodes that can be selected. The value 1 indicates that the distributed mode is not supported.

        +

        cpu

        +

        cpu object

        +

        CPU specifications.

        +

        gpu

        +

        gpu object

        +

        GPU specifications.

        +

        npu

        +

        npu object

        +

        Ascend flavors.

        +

        memory

        +

        memory object

        +

        Memory information.

        +

        disk

        +

        disk object

        +

        Disk information.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 46 cpu

        Parameter

        +

        Type

        +

        Description

        +

        arch

        +

        String

        +

        CPU architecture.

        +

        core_num

        +

        Integer

        +

        Number of cores.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 47 gpu

        Parameter

        +

        Type

        +

        Description

        +

        unit_num

        +

        Integer

        +

        Number of GPUs.

        +

        product_nume

        +

        String

        +

        Product name.

        +

        memory

        +

        String

        +

        Memory.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 48 npu

        Parameter

        +

        Type

        +

        Description

        +

        unit_num

        +

        String

        +

        Number of NPUs.

        +

        product_name

        +

        String

        +

        Product name.

        +

        memory

        +

        String

        +

        Memory.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 49 memory

        Parameter

        +

        Type

        +

        Description

        +

        size

        +

        Integer

        +

        Memory size.

        +

        unit

        +

        String

        +

        Number of memory units.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 50 disk

        Parameter

        +

        Type

        +

        Description

        +

        size

        +

        String

        +

        Disk size.

        +

        unit

        +

        String

        +

        Unit of the disk size. Generally, the value is GB.

        +
        +
        + +
        + + + + + + + + + +
        Table 51 volumes

        Parameter

        +

        Type

        +

        Description

        +

        nfs

        +

        nfs object

        +

        Volumes attached in NFS mode.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 52 nfs

        Parameter

        +

        Type

        +

        Description

        +

        nfs_server_path

        +

        String

        +

        NFS server path.

        +

        local_path

        +

        String

        +

        Path for attaching volumes to the training container.

        +

        read_only

        +

        Boolean

        +

        Whether the volumes attached to the container in NFS mode are read-only.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 53 log_export_path

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        OBS URL for storing training job logs.

        +

        host_path

        +

        String

        +

        Path of the host where training job logs are stored.

        +
        +
        +
        +

        Example Requests

        The following shows how to query a training job whose UUID is 3faf5c03-aaa1-4cbe-879d-24b05d997347.

        +
        GET    https://endpoint/v2/{project_id}/training-jobs/3faf5c03-aaa1-4cbe-879d-24b05d997347
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "kind" : "job",
        +  "metadata" : {
        +    "id" : "3faf5c03-aaa1-4cbe-879d-24b05d997347",
        +    "name" : "trainjob--py14_mem06-108",
        +    "description" : "",
        +    "create_time" : 1636447346315,
        +    "workspace_id" : "0",
        +    "ai_project" : "default-ai-project",
        +    "user_name" : ""
        +  },
        +  "status" : {
        +    "phase" : "Abnormal",
        +    "secondary_phase" : "CreateFailed",
        +    "duration" : 0,
        +    "start_time" : 0,
        +    "node_count_metrics" : [ [ 1636447746000, 0 ], [ 1636447755000, 0 ], [ 1636447756000, 0 ] ],
        +    "tasks" : [ "worker-0" ]
        +  },
        +  "algorithm" : {
        +    "code_dir" : "obs://test/economic_test/py_minist/",
        +    "boot_file" : "obs://test/economic_test/py_minist/minist_common.py",
        +    "inputs" : [ {
        +      "name" : "data_url",
        +      "local_dir" : "/home/ma-user/modelarts/inputs/data_url_0",
        +      "remote" : {
        +        "obs" : {
        +          "obs_url" : "/test/data/py_minist/"
        +        }
        +      }
        +    } ],
        +    "outputs" : [ {
        +      "name" : "train_url",
        +      "local_dir" : "/home/ma-user/modelarts/outputs/train_url_0",
        +      "remote" : {
        +        "obs" : {
        +          "obs_url" : "/test/train_output/"
        +        }
        +      },
        +      "mode" : "upload_periodically",
        +      "period" : 30
        +    } ],
        +    "engine" : {
        +      "engine_id" : "pytorch-cp36-1.4.0-v2",
        +      "engine_name" : "PyTorch",
        +      "engine_version" : "PyTorch-1.4.0-python3.6-v2",
        +      "v1_compatible" : false,
        +      "run_user" : ""
        +    }
        +  },
        +  "spec" : {
        +    "resource" : {
        +      "policy" : "economic",
        +      "flavor_id" : "modelarts.vm.p100.large.eco",
        +      "flavor_name" : "Computing GPU(P100) instance",
        +      "node_count" : 1,
        +      "flavor_detail" : {
        +        "flavor_type" : "GPU",
        +        "billing" : {
        +          "code" : "modelarts.vm.gpu.p100.eco",
        +          "unit_num" : 1
        +        },
        +        "attributes" : {
        +          "is_economic_policy_supported" : "true",
        +          "is_multi_devices_supported" : "false",
        +          "is_multi_nodes_supported" : "true"
        +        },
        +        "flavor_info" : {
        +          "cpu" : {
        +            "arch" : "x86",
        +            "core_num" : 8
        +          },
        +          "gpu" : {
        +            "unit_num" : 1,
        +            "product_name" : "NVIDIA-P100",
        +            "memory" : "8GB"
        +          },
        +          "memory" : {
        +            "size" : 64,
        +            "unit" : "GB"
        +          }
        +        }
        +      }
        +    },
        +    "is_hosted_log" : false
        +  }
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowTrainingJobLogsFromObs.html b/docs/modelarts/api-ref/ShowTrainingJobLogsFromObs.html new file mode 100644 index 00000000..d1041928 --- /dev/null +++ b/docs/modelarts/api-ref/ShowTrainingJobLogsFromObs.html @@ -0,0 +1,127 @@ + + +

        Querying the Logs of a Specified Taks in a Given Training Job (OBS URL)

        +

        Function

        This API is used to query the logs of a specified task in a given training job (OBS URL). You can view or download all logs.

        +
        +

        URI

        GET /v2/{project_id}/training-jobs/{training_job_id}/tasks/{task_id}/logs/url

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +

        training_job_id

        +

        Yes

        +

        String

        +

        ID of a training job.

        +

        task_id

        +

        Yes

        +

        String

        +

        Name of a training job.

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + +
        Table 2 Request header parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        Content-Type

        +

        No

        +

        String

        +

        text/plain indicates that a temporary preview URL is returned. application/octet-stream indicates that a temporary download URL is returned.

        +
        +
        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        Temporary OBS URL of logs. You can copy the URL to the browser to view the current complete logs.

        +
        +
        +
        +

        Example Requests

        The following shows how to query the temporary OBS URL for the work-0 tasks of the training job whose UUID is 2cd88daa-31a4-40a8-a58f-d186b0e93e4f.

        +
        GET   https://endpoint/v2/{project_id}/training-jobs/2cd88daa-31a4-40a8-a58f-d186b0e93e4f/tasks/worker-0/logs/url?Content-Type=text/plain
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "obs_url" : "http://10.155.101.248:20000/cnnorth4-test/xk/00chess_test/test11/logs/modelarts-job-0f2ccdbb-4f34-4d53-afb9-d526f3be8c68-ma-platform-init-worker-0-172.16.24.51-01909681.log?AWSAccessKeyId=xxxxx"
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowTrainingJobLogsPreview.html b/docs/modelarts/api-ref/ShowTrainingJobLogsPreview.html new file mode 100644 index 00000000..0135f2eb --- /dev/null +++ b/docs/modelarts/api-ref/ShowTrainingJobLogsPreview.html @@ -0,0 +1,121 @@ + + +

        Querying the Logs of a Specified Task in a Given Training Job (Preview)

        +

        Function

        This API is used to query the logs of a specified task in a given training job (preview).

        +
        +

        URI

        GET /v2/{project_id}/training-jobs/{training_job_id}/tasks/{task_id}/logs/preview

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +

        training_job_id

        +

        Yes

        +

        String

        +

        ID of a training job.

        +

        task_id

        +

        Yes

        +

        String

        +

        Name of a training job.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        content

        +

        String

        +

        Logs. If the size of a log file does not exceed the upper limit (n MB), complete log content will be returned. Otherwise, the latest log content in n MB will be returned.

        +

        current_size

        +

        Integer

        +

        Size of the returned log content, in bytes. The maximum size is 5 MB.

        +

        full_size

        +

        Integer

        +

        Size of complete log content, in bytes

        +
        +
        +
        +

        Example Requests

        The following shows how to query the work-0 tasks of the training job whose UUID is 2cd88daa-31a4-40a8-a58f-d186b0e93e4f.

        +
        GET   https://endpoint/v2/{project_id}/training-jobs/2cd88daa-31a4-40a8-a58f-d186b0e93e4f/tasks/worker-0/logs/preview
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "content" : "[Modelarts Service Log]collect and upload ascend logs end at 2021-05-18-14:28:13[Modelarts Service Log]exiting...[Modelarts Service Log]exiting...[Modelarts Service Log]exit with 0[Modelarts Service Log]exit with 0[ModelArts Service Log][INFO][2021/05/18 14:28:14,207]: output-handler finalizing due to: [training finished][ModelArts Service Log][INFO][2021/05/18 14:28:14,207]: output-handler finalized[Modelarts Service Log][sidecar] exiting at 2021-05-18-14:28:14[Modelarts Service Log][sidecar] wait python processes exit...[Modelarts Service Log][sidecar] exit with 0",
        +  "current_size" : 126548,
        +  "full_size" : 5242880
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/ShowTrainingJobMetrics.html b/docs/modelarts/api-ref/ShowTrainingJobMetrics.html new file mode 100644 index 00000000..b9b8d97e --- /dev/null +++ b/docs/modelarts/api-ref/ShowTrainingJobMetrics.html @@ -0,0 +1,149 @@ + + +

        Querying the Running Metrics of a Specified Task in a Training Job

        +

        Function

        This API is used to query the running metrics of a specified task in a training job.

        +
        +

        URI

        GET /v2/{project_id}/training-jobs/{training_job_id}/metrics/{task_id}

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +

        training_job_id

        +

        Yes

        +

        String

        +

        ID of a training job.

        +

        task_id

        +

        Yes

        +

        String

        +

        Name of a training job.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        metrics

        +

        Array of metrics objects

        +

        Running metrics.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 3 metrics

        Parameter

        +

        Type

        +

        Description

        +

        metric

        +

        String

        +

        Running metric. The options are as follows: cpuUsage: CPU usage memUsage: physical memory usage gpuUtil: GPU utilization gpuMemUsage: GPU memory usage npuUtil: NPU utilization npuMemUsage: NPU memory usage

        +

        value

        +

        Array of numbers

        +

        Value of a running metric. An average value is collected every minute.

        +
        +
        +
        +

        Example Requests

        The following shows how to query the running metrics of the work-0 task of the training job whose UUID is 2cd88daa-31a4-40a8-a58f-d186b0e93e4f.

        +
        GET   https://endpoint/v2/{project_id}/training-jobs/2cd88daa-31a4-40a8-a58f-d186b0e93e4f/metrics/worker-0
        +
        +

        Example Responses

        Status code: 200

        +

        ok

        +
        {
        +  "metrics" : [ {
        +    "metric" : "cpuUsage",
        +    "value" : [ -1, -1, 2.43, 4.524, 6.714, 12.422, 9.214, 5.36, 7.5, 10.088, 8.975, 11.423, 11.548, 14.563, 16.833 ]
        +  }, {
        +    "metric" : "memUsage",
        +    "value" : [ -1, -1, 0.04, 0.521, 1.652, 4.252, 6.433, 7.384, 7.982, 8.718, 9.365, 9.881, 10.192, 9.994, 9.005 ]
        +  }, {
        +    "metric" : "gpuUtil",
        +    "value" : [ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ]
        +  }, {
        +    "metric" : "gpuMemUsage",
        +    "value" : [ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ]
        +  }, {
        +    "metric" : "npuUtil",
        +    "value" : [ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ]
        +  }, {
        +    "metric" : "npuMemUsage",
        +    "value" : [ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ]
        +  } ]
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/StartNotebook.html b/docs/modelarts/api-ref/StartNotebook.html new file mode 100644 index 00000000..e7e48bde --- /dev/null +++ b/docs/modelarts/api-ref/StartNotebook.html @@ -0,0 +1,530 @@ + + +

        Starting a Notebook Instance

        +

        Function

        This API is used to start a notebook instance.

        +
        +

        Constraints

        None

        +
        +

        URI

        POST /v1/{project_id}/notebooks/{id}/start

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        id

        +

        Yes

        +

        String

        +

        Notebook instance ID.

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        + +
        + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        duration

        +

        No

        +

        Long

        +

        Running duration after startup, in milliseconds

        +

        Default: 0

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + +
        Table 3 Request body parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        -

        +

        No

        +

        Object

        +

        notebookStartRequest

        +
        +
        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        action_progress

        +

        Array of JobProgress objects

        +

        Instance initialization progress.

        +

        description

        +

        String

        +

        Instance description

        +

        endpoints

        +

        Array of EndpointsRes objects

        +

        Local IDE (such as PyCharm and vsCode) or SSH client for remotely accessing a notebook instance through SSH.

        +

        fail_reason

        +

        String

        +

        Instance failure cause

        +

        feature

        +

        String

        +

        Instance type. Options: - DEFAULT: free CodeLab instance. You can create only one. - NOTEBOOK: billed instance.

        +

        flavor

        +

        String

        +

        Instance flavor

        +

        id

        +

        String

        +

        Instance ID.

        +

        image

        +

        Image object

        +

        Instance image

        +

        lease

        +

        Lease object

        +

        Countdown to automatic instance stop.

        +

        name

        +

        String

        +

        Instance name

        +

        pool

        +

        Pool object

        +

        Basic information about the dedicated pool, which is returned by the instance created in the dedicated pool.

        +

        status

        +

        String

        +

        Instance status Options: \r\n-INIT: The instance is being initialized. \r\n-CREATING: The instance is being created. \r\n-STARTING: The instance is starting. \r\n-STOPPING: The instance is stopping. \r\n-DELETING: The instance is being deleted.\r\n-RUNNING: The instance is running.\r\n-STOPPED: The instance is stopped.\r\n-SNAPSHOTTING: A snapshot is being taken for the instance (status when the image is being saved).\r\n-CREATE_FAILED: The instance fails to be created. \r\n-START_FAILED: The instance fails to be started. \r\n-DELETE_FAILED: The instance fails to be deleted.\r\n-ERROR: An error occurs. \r\n-DELETED: The instance is deleted. \r\n-FROZEN: The instance is frozen.

        +

        token

        +

        String

        +

        Token used for notebook authentication

        +

        url

        +

        String

        +

        URL for accessing the notebook instance

        +

        volume

        +

        VolumeRes object

        +

        Storage volume

        +

        workspace_id

        +

        String

        +

        Workspace ID. If no workspaces are available, the default value is 0.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 5 JobProgress

        Parameter

        +

        Type

        +

        Description

        +

        notebook_id

        +

        String

        +

        Instance ID.

        +

        status

        +

        String

        +

        Job status in a specified step. Options: - WAITING: The job is waiting to begin. - PROCESSING: The job is being processed. - FAILED: The job failed. - COMPLETED: The task is complete.

        +

        step

        +

        Integer

        +

        Job step. Options: - 1: Storage preparation. - 2: Computing resource preparation. - 3: Network configurations. - 4: Instance initialization.

        +

        step_description

        +

        String

        +

        Description of a step in a job.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 6 EndpointsRes

        Parameter

        +

        Type

        +

        Description

        +

        allowed_access_ips

        +

        Array of strings

        +

        Whitelist of public IP addresses that are allowed to access the notebook instance through SSH. By default, all public IP addresses can access the notebook instance. If this parameter is specified, only the clients with the specified IP addresses can access the notebook instance.

        +

        dev_service

        +

        String

        +

        Supported services. Options: - NOTEBOOK: You can access the notebook instance using HTTPS.- SSH: You can remotely access the notebook instance through SSH.

        +

        ssh_keys

        +

        Array of strings

        +

        List of SSH key pairs. You can set multiple key pairs to access an SSH instance at the same time.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 7 Image

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Image ID

        +

        name

        +

        String

        +

        Image name.

        +

        swr_path

        +

        String

        +

        SWR image address

        +

        type

        +

        String

        +

        Image type. Options: - BUILD_IN: built-in system image- DEDICATED: image saved by the user

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 8 Lease

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Time (UTC) when the instance is created, accurate to millisecond.

        +

        duration

        +

        Long

        +

        Instance running duration, which is calculated based on the instance creation time. If the instance creation time plus the duration is greater than the current time, the system automatically stops the instance.

        +

        enable

        +

        Boolean

        +

        Whether to enable auto stop of the instance.

        +

        update_time

        +

        Long

        +

        Time (UTC) when the instance is last updated (excluding the keepalive heartbeat time), accurate to millisecond.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 9 Pool

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        ID of a dedicated resource pool

        +

        name

        +

        String

        +

        Name of a dedicated resource pool

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 10 VolumeRes

        Parameter

        +

        Type

        +

        Description

        +

        capacity

        +

        Integer

        +

        Storage capacity. The default value is 5 GB for EVS and 50 GB for EFS. The maximum value is 4,096 GB.

        +

        category

        +

        String

        +

        Storage category. Options: \r\n-EFS: Scalable File Service (SFS), which is the default storage. \r\n-EVS: Elastic Volume Service (EVS). \r\n\r\n For details about the differences between the two types of storage, see Selecting a Storage Type in DevEnviron.\r\n.\r\n\r\n\r\n\r\n

        +

        mount_path

        +

        String

        +

        Directory of the notebook instance to which OBS storage is mounted. Currently, the directory is /home/ma-user/work/.

        +

        ownership

        +

        String

        +

        Owner to which the resource belongs. Options: - MANAGED: Resources are managed by services.- DEDICATED: Resources are managed by the user account. This mode is supported only when the instance category is EFS.

        +

        status

        +

        String

        +

        EVS disk capacity expansion status, which is RESIZING during capacity expansion and does not affect the instance.

        +
        +
        +
        +

        Example Requests

        None

        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "create_at" : 1638841744521,
        +  "data_volumes" : [ ],
        +  "description" : "api-test",
        +  "endpoints" : [ {
        +    "service" : "NOTEBOOK",
        +    "uri" : "https://authoring-modelarts-xxxx.xxxx.com/f9937afa-4451-42db-a76b-72d624749f66/lab"
        +  } ],
        +  "feature" : "NOTEBOOK",
        +  "flavor" : "modelarts.vm.cpu.2u",
        +  "id" : "f9937afa-4451-42db-a76b-72d624749f66",
        +  "image" : {
        +    "description" : "description",
        +    "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54090",
        +    "name" : "notebook2.0-mul-kernel-cpu-cp36",
        +    "swr_path" : "swr.xxx.xxxx.com/atelier/notebook2.0-mul-kernel-cpu-cp36:3.3.2-release_v1",
        +    "tag" : "3.3.2-release_v1",
        +    "type" : "BUILD_IN"
        +  },
        +  "lease" : {
        +    "create_at" : 1638841744515,
        +    "duration" : 6327212,
        +    "enable" : true,
        +    "update_at" : 1638844471727
        +  },
        +  "name" : "notebooks_test",
        +  "status" : "STARTING",
        +  "token" : "5cc60e8b-8772-7690-efd6-a5874ca387c0",
        +  "update_at" : 1638844454031,
        +  "url" : "https://authoring-modelarts-xxxx.xxxx.com/f9937afa-4451-42db-a76b-72d624749f66/lab",
        +  "volume" : {
        +    "category" : "EFS",
        +    "ownership" : "MANAGED",
        +    "mount_path" : "/home/ma-user/work/",
        +    "capacity" : 50,
        +    "usage" : -1
        +  },
        +  "workspace_id" : "0"
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        201

        +

        Created

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/StartWorkforceSamplingTask.html b/docs/modelarts/api-ref/StartWorkforceSamplingTask.html new file mode 100644 index 00000000..84b9980b --- /dev/null +++ b/docs/modelarts/api-ref/StartWorkforceSamplingTask.html @@ -0,0 +1,153 @@ + + +

        Creating a Team Labeling Acceptance Task

        +

        Function

        This API is used to create a team labeling acceptance task.

        +
        +

        URI

        POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/acceptance

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        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.

        +

        workforce_task_id

        +

        Yes

        +

        String

        +

        ID of a team labeling task.

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + + + + + + +
        Table 2 Request body parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        sampling_num

        +

        No

        +

        Integer

        +

        Number of samples for the acceptance task. Either this parameter or the sampling ratio is delivered.

        +

        sampling_rate

        +

        No

        +

        Double

        +

        Sampling ratio of the acceptance task. The value range is (0,1]. Either this parameter or the number of samples is delivered.

        +
        +
        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        task_id

        +

        String

        +

        ID of an asynchronous acceptance task.

        +
        +
        +
        +

        Example Requests

        Creating a Team Labeling Acceptance Task and Setting the Sampling Percentage to 20%

        +
        {
        +  "sampling_rate" : 0.2
        +}
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "task_id" : "nv6BbozxCJmZcHAE9hV"
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/StartWorkforceTask.html b/docs/modelarts/api-ref/StartWorkforceTask.html new file mode 100644 index 00000000..21e9b675 --- /dev/null +++ b/docs/modelarts/api-ref/StartWorkforceTask.html @@ -0,0 +1,319 @@ + + +

        Starting a Team Labeling Task

        +

        Function

        This API is used to start a team labeling task.

        +
        +

        URI

        POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        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.

        +

        workforce_task_id

        +

        Yes

        +

        String

        +

        ID of a team labeling task.

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Request body parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        dataset_id

        +

        No

        +

        String

        +

        Dataset ID.

        +

        task_id

        +

        No

        +

        String

        +

        ID of a team labeling task.

        +

        workforces_config

        +

        No

        +

        WorkforcesConfig object

        +

        Team labeling task information: Tasks can be assigned by the team administrator or a specified team.

        +
        +
        + +
        + + + + + + + + + + + + + + + + +
        Table 3 WorkforcesConfig

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        agency

        +

        No

        +

        String

        +

        Team administrator.

        +

        workforces

        +

        No

        +

        Array of WorkforceConfig objects

        +

        List of teams that execute labeling tasks.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 4 WorkforceConfig

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        workers

        +

        No

        +

        Array of Worker objects

        +

        List of labeling team members.

        +

        workforce_id

        +

        No

        +

        String

        +

        ID of a labeling team.

        +

        workforce_name

        +

        No

        +

        String

        +

        Name of a labeling team. The value contains 0 to 1024 characters and does not support the following special characters: !<>=&"'

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 5 Worker

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        create_time

        +

        No

        +

        Long

        +

        Creation time.

        +

        description

        +

        No

        +

        String

        +

        Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        +

        email

        +

        No

        +

        String

        +

        Email address of a labeling team member.

        +

        role

        +

        No

        +

        Integer

        +

        Role. The options are as follows:

        +
        • 0: labeling personnel

          +
        • 1: reviewer

          +
        • 2: team administrator

          +
        • 3: dataset owner

          +
        +

        status

        +

        No

        +

        Integer

        +

        Current login status of a labeling team member. The options are as follows:

        +
        • 0: The invitation email has not been sent.

          +
        • 1: The invitation email has been sent but the user has not logged in.

          +
        • 2: The user has logged in.

          +
        • 3: The labeling team member has been deleted.

          +
        +

        update_time

        +

        No

        +

        Long

        +

        Update time.

        +

        worker_id

        +

        No

        +

        String

        +

        ID of a labeling team member.

        +

        workforce_id

        +

        No

        +

        String

        +

        ID of a labeling team.

        +
        +
        +
        +

        Response Parameters

        None

        +
        +

        Example Requests

        Starting a Team Labeling Task

        +
        {
        +  "workforces_config" : {
        +    "workforces" : [ {
        +      "workforce_id" : "l4u9Hpz2JJ67DNN1Hg9",
        +      "workers" : [ {
        +        "email" : "xiaozhang@163.com"
        +      }, {
        +        "email" : "xiaoli@163.com"
        +      } ]
        +    } ]
        +  }
        +}
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        { }
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/StopAutoAnnotation.html b/docs/modelarts/api-ref/StopAutoAnnotation.html new file mode 100644 index 00000000..18cae0f0 --- /dev/null +++ b/docs/modelarts/api-ref/StopAutoAnnotation.html @@ -0,0 +1,99 @@ + + +

        Stopping an Intelligent Task

        +

        Function

        This API is used to stop intelligent tasks, including auto labeling, one-click model deployment, and auto grouping tasks. You can specify the task_id parameter to stop a specific task.

        +
        +

        URI

        POST /v2/{project_id}/datasets/{dataset_id}/tasks/{task_id}/stop

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        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.

        +

        task_id

        +

        Yes

        +

        String

        +

        Task ID.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        None

        +
        +

        Example Requests

        Stopping Auto Labeling, One-Click Model Deployment, or Auto Grouping Tasks

        +
        POST https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/tasks/{task_id}/stop
        +
        +

        Example Responses

        Status code: 204

        +

        No Content

        +
        { }
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        204

        +

        No Content

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/StopNotebook.html b/docs/modelarts/api-ref/StopNotebook.html new file mode 100644 index 00000000..87035e80 --- /dev/null +++ b/docs/modelarts/api-ref/StopNotebook.html @@ -0,0 +1,484 @@ + + +

        Stopping a Notebook Instance

        +

        Function

        This API is used to stop a notebook instance.

        +
        +

        Constraints

        None

        +
        +

        URI

        POST /v1/{project_id}/notebooks/{id}/stop

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        id

        +

        Yes

        +

        String

        +

        Notebook instance ID.

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        action_progress

        +

        Array of JobProgress objects

        +

        Instance initialization progress.

        +

        description

        +

        String

        +

        Instance description

        +

        endpoints

        +

        Array of EndpointsRes objects

        +

        Local IDE (such as PyCharm and vsCode) or SSH client for remotely accessing a notebook instance through SSH.

        +

        fail_reason

        +

        String

        +

        Instance failure cause

        +

        feature

        +

        String

        +

        Instance type. Options: - DEFAULT: free CodeLab instance. You can create only one. - NOTEBOOK: billed instance.

        +

        flavor

        +

        String

        +

        Instance flavor

        +

        id

        +

        String

        +

        Instance ID.

        +

        image

        +

        Image object

        +

        Instance image

        +

        lease

        +

        Lease object

        +

        Countdown to automatic instance stop.

        +

        name

        +

        String

        +

        Instance name

        +

        pool

        +

        Pool object

        +

        Basic information about the dedicated pool, which is returned by the instance created in the dedicated pool.

        +

        status

        +

        String

        +

        Instance status Options: \r\n-INIT: The instance is being initialized. \r\n-CREATING: The instance is being created. \r\n-STARTING: The instance is starting. \r\n-STOPPING: The instance is stopping. \r\n-DELETING: The instance is being deleted.\r\n-RUNNING: The instance is running.\r\n-STOPPED: The instance is stopped.\r\n-SNAPSHOTTING: A snapshot is being taken for the instance (status when the image is being saved).\r\n-CREATE_FAILED: The instance fails to be created. \r\n-START_FAILED: The instance fails to be started. \r\n-DELETE_FAILED: The instance fails to be deleted.\r\n-ERROR: An error occurs. \r\n-DELETED: The instance is deleted. \r\n-FROZEN: The instance is frozen.

        +

        token

        +

        String

        +

        Token used for notebook authentication

        +

        url

        +

        String

        +

        URL for accessing the notebook instance

        +

        volume

        +

        VolumeRes object

        +

        Storage volume

        +

        workspace_id

        +

        String

        +

        Workspace ID. If no workspaces are available, the default value is 0.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 3 JobProgress

        Parameter

        +

        Type

        +

        Description

        +

        notebook_id

        +

        String

        +

        Instance ID.

        +

        status

        +

        String

        +

        Job status in a specified step. Options: - WAITING: The job is waiting to begin. - PROCESSING: The job is being processed. - FAILED: The job failed. - COMPLETED: The task is complete.

        +

        step

        +

        Integer

        +

        Job step. Options: - 1: Storage preparation. - 2: Computing resource preparation. - 3: Network configurations. - 4: Instance initialization.

        +

        step_description

        +

        String

        +

        Description of a step in a job.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 4 EndpointsRes

        Parameter

        +

        Type

        +

        Description

        +

        allowed_access_ips

        +

        Array of strings

        +

        Whitelist of public IP addresses that are allowed to access the notebook instance through SSH. By default, all public IP addresses can access the notebook instance. If this parameter is specified, only the clients with the specified IP addresses can access the notebook instance.

        +

        dev_service

        +

        String

        +

        Supported services. Options: - NOTEBOOK: You can access the notebook instance using HTTPS.- SSH: You can remotely access the notebook instance through SSH.

        +

        ssh_keys

        +

        Array of strings

        +

        List of SSH key pairs. You can set multiple key pairs to access an SSH instance at the same time.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 5 Image

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Image ID

        +

        name

        +

        String

        +

        Image name.

        +

        swr_path

        +

        String

        +

        SWR image address

        +

        type

        +

        String

        +

        Image type. Options: - BUILD_IN: built-in system image- DEDICATED: image saved by the user

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 6 Lease

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Time (UTC) when the instance is created, accurate to millisecond.

        +

        duration

        +

        Long

        +

        Instance running duration, which is calculated based on the instance creation time. If the instance creation time plus the duration is greater than the current time, the system automatically stops the instance.

        +

        enable

        +

        Boolean

        +

        Whether to enable auto stop of the instance.

        +

        update_time

        +

        Long

        +

        Time (UTC) when the instance is last updated (excluding the keepalive heartbeat time), accurate to millisecond.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 7 Pool

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        ID of a dedicated resource pool

        +

        name

        +

        String

        +

        Name of a dedicated resource pool

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 8 VolumeRes

        Parameter

        +

        Type

        +

        Description

        +

        capacity

        +

        Integer

        +

        Storage capacity. The default value is 5 GB for EVS and 50 GB for EFS. The maximum value is 4,096 GB.

        +

        category

        +

        String

        +

        Storage category. Options: \r\n-EFS: Scalable File Service (SFS), which is the default storage. \r\n-EVS: Elastic Volume Service (EVS). \r\n\r\n For details about the differences between the two types of storage, see Selecting a Storage Type in DevEnviron.\r\n.\r\n\r\n\r\n\r\n

        +

        mount_path

        +

        String

        +

        Directory of the notebook instance to which OBS storage is mounted. Currently, the directory is /home/ma-user/work/.

        +

        ownership

        +

        String

        +

        Owner to which the resource belongs. Options: - MANAGED: Resources are managed by services.- DEDICATED: Resources are managed by the user account. This mode is supported only when the instance category is EFS.

        +

        status

        +

        String

        +

        EVS disk capacity expansion status, which is RESIZING during capacity expansion and does not affect the instance.

        +
        +
        +
        +

        Example Requests

        None

        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "create_at" : 1638841744521,
        +  "data_volumes" : [ ],
        +  "description" : "api-test",
        +  "endpoints" : [ {
        +    "service" : "NOTEBOOK",
        +    "uri" : "https://authoring-modelarts-xxxx.xxxx.com/f9937afa-4451-42db-a76b-72d624749f66/lab"
        +  } ],
        +  "feature" : "NOTEBOOK",
        +  "flavor" : "modelarts.vm.cpu.2u",
        +  "id" : "f9937afa-4451-42db-a76b-72d624749f66",
        +  "image" : {
        +    "description" : "description",
        +    "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54090",
        +    "name" : "notebook2.0-mul-kernel-cpu-cp36",
        +    "swr_path" : "swr.xxx.xxxx.com/atelier/notebook2.0-mul-kernel-cpu-cp36:3.3.2-release_v1",
        +    "tag" : "3.3.2-release_v1",
        +    "type" : "BUILD_IN"
        +  },
        +  "lease" : {
        +    "create_at" : 1638841744515,
        +    "duration" : 5313106,
        +    "enable" : true,
        +    "update_at" : 1638843457621
        +  },
        +  "name" : "notebooks_test",
        +  "status" : "STOPPING",
        +  "token" : "7bddd8ff-8a0d-e063-3107-c70a862832de",
        +  "update_at" : 1638843483309,
        +  "url" : "https://authoring-modelarts-xxxx.xxxx.com/f9937afa-4451-42db-a76b-72d624749f66/lab",
        +  "volume" : {
        +    "category" : "EFS",
        +    "ownership" : "MANAGED",
        +    "mount_path" : "/home/ma-user/work/",
        +    "capacity" : 50,
        +    "usage" : -1
        +  },
        +  "workspace_id" : "0"
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        201

        +

        Created

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/StopProcessorTaskVersion.html b/docs/modelarts/api-ref/StopProcessorTaskVersion.html new file mode 100644 index 00000000..ff448068 --- /dev/null +++ b/docs/modelarts/api-ref/StopProcessorTaskVersion.html @@ -0,0 +1,99 @@ + + +

        Stopping the Version of a Data Processing Task

        +

        Function

        This API is used to stop the version of a data processing task.

        +
        +

        URI

        POST /v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}/stop

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        task_id

        +

        Yes

        +

        String

        +

        ID of a data processing task.

        +

        version_id

        +

        Yes

        +

        String

        +

        Version ID of a data processing task.

        +
        +
        +
        +

        Request Parameters

        None

        +
        +

        Response Parameters

        None

        +
        +

        Example Requests

        This API is used to stop the version of a data processing task.

        +
        POST https://{endpoint}/v2/{project_id}/processor-tasks/{task_id}/versions/{version_id}/stop
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        { }
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/StopTrainingJob.html b/docs/modelarts/api-ref/StopTrainingJob.html new file mode 100644 index 00000000..642012f8 --- /dev/null +++ b/docs/modelarts/api-ref/StopTrainingJob.html @@ -0,0 +1,2116 @@ + + +

        Terminating a Training Job

        +

        Function

        This API is used to terminate a training job. Only jobs in the Creating, Waiting, or Running state can be terminated.

        +
        +

        URI

        POST /v2/{project_id}/training-jobs/{training_job_id}/actions

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +

        training_job_id

        +

        Yes

        +

        String

        +

        ID of a training job.

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + +
        Table 2 Request body parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        action_type

        +

        No

        +

        String

        +

        Operation performed on a training job. Select terminate to terminate a training job.

        +
        +
        +
        +

        Response Parameters

        Status code: 202

        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 3 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        kind

        +

        String

        +

        Training job type, which is job by default. Options:

        +
        • job: Training job

          +
        • hetero_job: Heterogeneous job

          +
        • autosearch_job: Auto search job

          +
        • mrs_job: MRS job [- edge_job: Edge job] (tag:hk,hc,fcs,fcs-super)

          +
        +

        metadata

        +

        JobMetadata object

        +

        Metadata of a training job.

        +

        status

        +

        Status object

        +

        Status of a training job. You do not need to set this parameter when creating a job.

        +

        algorithm

        +

        JobAlgorithmResponse object

        +

        Algorithm for training jobs. The following formats are supported:

        +
        • id: Only the algorithm ID is used.

          +
        • subscription_id+item_version_id: The subscription ID and version ID of the algorithm are used.

          +
        • code_dir+boot_file: The code directory and boot file of a training job are used.

          +
        +

        tasks

        +

        Array of TaskResponse objects

        +

        List of tasks in heterogeneous training jobs.

        +

        spec

        +

        spec object

        +

        Specifications of a training job.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 JobMetadata

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Training job ID, which is generated and returned by ModelArts after the training job is created.

        +

        name

        +

        String

        +

        Name of a training job. The value must contain 1 to 64 characters consisting of only digits, letters, underscores (_), and hyphens (-).

        +

        workspace_id

        +

        String

        +

        Workspace where a job is located. The default value is 0.

        +

        description

        +

        String

        +

        Training job description. The value must contain 0 to 256 characters. The default value is NULL.

        +

        create_time

        +

        Long

        +

        Timestamp when a training job is created, in milliseconds. The value is generated and returned by ModelArts after the job is created.

        +

        user_name

        +

        String

        +

        Username for creating a training job. The username is generated and returned by ModelArts after the training job is created.

        +

        annotations

        +

        Map<String,String>

        +

        Declaration template of a training job. For heterogeneous jobs, the default value of job_template is Template RL. For other jobs, the default value is Template DL.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 5 Status

        Parameter

        +

        Type

        +

        Description

        +

        phase

        +

        String

        +

        Level-1 status of a training job. The value is stable. The options are as follows: Creating Pending Running Failed Completed, Terminating Terminated Abnormal

        +

        secondary_phase

        +

        String

        +

        Level-2 status of a training job. The value is unstable. The options are as follows: Creating Queuing Running Failed Completed Terminating Terminated CreateFailed TerminatedFailed Unknown Lost

        +

        duration

        +

        Long

        +

        Running duration of a training job, in milliseconds

        +

        node_count_metrics

        +

        Array<Array<Integer>>

        +

        Node count changes during the training job running period.

        +

        tasks

        +

        Array of strings

        +

        Tasks of a training job.

        +

        start_time

        +

        String

        +

        Start time of a training job. The value is in timestamp format.

        +

        task_statuses

        +

        Array of task_statuses objects

        +

        Status of a training job task.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 6 task_statuses

        Parameter

        +

        Type

        +

        Description

        +

        task

        +

        String

        +

        Name of a training job task.

        +

        exit_code

        +

        Integer

        +

        Exit code of a training job task.

        +

        message

        +

        String

        +

        Error message of a training job task.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 7 JobAlgorithmResponse

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Algorithm for training jobs. Options:

        +
        • id: Only the algorithm ID is used.

          +
        • subscription_id+item_version_id: The subscription ID and version ID of the algorithm are used.

          +
        • code_dir+boot_file: The code directory and boot file of a training job are used.

          +
        +

        name

        +

        String

        +

        Algorithm name.

        +

        subscription_id

        +

        String

        +

        Subscription ID of the subscription algorithm. This parameter must be used together with item_version_id.

        +

        item_version_id

        +

        String

        +

        Version ID of the subscription algorithm. This parameter must be used together with subscription_id.

        +

        code_dir

        +

        String

        +

        Code directory of a training job, for example, /usr/app/. This parameter must be used together with boot_file. If id or subscription_id+item_version_id is set, leave it blank.

        +

        boot_file

        +

        String

        +

        Boot file of a training job, which needs to be stored in the code directory, for example, /usr/app/boot.py. This parameter must be used together with code_dir. If id or subscription_id+item_version_id is set, leave it blank.

        +

        autosearch_config_path

        +

        String

        +

        YAML configuration path of auto search jobs. An OBS URL is required.

        +

        autosearch_framework_path

        +

        String

        +

        Framework code directory of auto search jobs. An OBS URL is required.

        +

        command

        +

        String

        +

        Boot command used to start the container of the custom image used by a training job. You can set this parameter to code_dir.

        +

        parameters

        +

        Array of Parameter objects

        +

        Running parameters of a training job.

        +

        policies

        +

        policies object

        +

        Policies supported by jobs.

        +

        inputs

        +

        Array of Input objects

        +

        Input of a training job.

        +

        outputs

        +

        Array of Output objects

        +

        Output of a training job.

        +

        engine

        +

        engine object

        +

        Engine of a training job. Leave this parameter blank if the job is created using id of the algorithm management API or subscription_id+item_version_id of the subscription algorithm API.

        +

        environments

        +

        Array of Map<String,String> objects

        +

        Environment variables of a training job. The format is key: value. Leave this parameter blank.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 8 Parameter

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Parameter name.

        +

        value

        +

        String

        +

        Parameter value.

        +

        description

        +

        String

        +

        Parameter description.

        +

        constraint

        +

        constraint object

        +

        Parameter constraint.

        +

        i18n_description

        +

        i18n_description object

        +

        Internationalization description.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 9 constraint

        Parameter

        +

        Type

        +

        Description

        +

        type

        +

        String

        +

        Parameter type.

        +

        editable

        +

        Boolean

        +

        Whether the parameter is editable.

        +

        required

        +

        Boolean

        +

        Whether the parameter is mandatory.

        +

        sensitive

        +

        Boolean

        +

        Whether the parameter is sensitive.

        +

        valid_type

        +

        String

        +

        Valid type.

        +

        valid_range

        +

        Array of strings

        +

        Valid range.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 10 i18n_description

        Parameter

        +

        Type

        +

        Description

        +

        language

        +

        String

        +

        Internationalization language.

        +

        description

        +

        String

        +

        Description.

        +
        +
        + +
        + + + + + + + + + +
        Table 11 policies

        Parameter

        +

        Type

        +

        Description

        +

        auto_search

        +

        auto_search object

        +

        Hyperparameter search configuration.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 13 reward_attrs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Metric name.

        +

        mode

        +

        String

        +

        Search direction.

        +
        • max: A larger metric value indicates better performance.

          +
        • min: A smaller metric value indicates better performance.

          +
        +

        regex

        +

        String

        +

        Regular expression of a metric.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 14 search_params

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Hyperparameter name.

        +

        param_type

        +

        String

        +

        Parameter type.

        +
        • continuous: The parameter is a continuous value.

          +
        • discreate: The parameter is a discrete value.

          +
        +

        lower_bound

        +

        String

        +

        Lower bound of the hyperparameter.

        +

        upper_bound

        +

        String

        +

        Upper bound of the hyperparameter.

        +

        discrete_points_num

        +

        String

        +

        Number of discrete points of a continuous hyperparameter.

        +

        discrete_values

        +

        Array of strings

        +

        List of discrete hyperparameter values.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 15 algo_configs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the search algorithm.

        +

        params

        +

        Array of AutoSearchAlgoConfigParameter objects

        +

        Search algorithm parameters.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 16 AutoSearchAlgoConfigParameter

        Parameter

        +

        Type

        +

        Description

        +

        key

        +

        String

        +

        Parameter key.

        +

        value

        +

        String

        +

        Parameter value.

        +

        type

        +

        String

        +

        Parameter type.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 17 Input

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data input channel.

        +

        description

        +

        String

        +

        Description of the data input channel.

        +

        local_dir

        +

        String

        +

        Local directory of the container to which the data input channel is mapped.

        +

        remote

        +

        InputDataInfo object

        +

        Data input. Options:

        +
        • dataset: Dataset as the data input

          +
        • obs: OBS path as the data input

          +
        +

        remote_constraint

        +

        Array of remote_constraint objects

        +

        Data input constraint.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 18 InputDataInfo

        Parameter

        +

        Type

        +

        Description

        +

        dataset

        +

        dataset object

        +

        Dataset as the data input.

        +

        obs

        +

        obs object

        +

        OBS in which data input and output stored.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 19 dataset

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Dataset ID of a training job.

        +

        version_id

        +

        String

        +

        Dataset version ID of a training job.

        +

        obs_url

        +

        String

        +

        OBS URL of the dataset required by a training job. ModelArts automatically parses and generates the URL based on the dataset and dataset version IDs. For example, /usr/data/.

        +
        +
        + +
        + + + + + + + + + +
        Table 20 obs

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        OBS URL of the dataset required by a training job. For example, /usr/data/.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 21 remote_constraint

        Parameter

        +

        Type

        +

        Description

        +

        data_type

        +

        String

        +

        Data input type, including the data storage location and dataset.

        +

        attributes

        +

        String

        +

        Attributes if a dataset is used as the data input. Options:

        +
        • data_format: Data format

          +
        • data_segmentation: Data segmentation

          +
        • dataset_type: Labeling type

          +
        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 22 Output

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data output channel.

        +

        description

        +

        String

        +

        Description of the data output channel.

        +

        local_dir

        +

        String

        +

        Local directory of the container to which the data output channel is mapped.

        +

        remote

        +

        remote object

        +

        Description of the actual data output.

        +
        +
        + +
        + + + + + + + + + +
        Table 23 remote

        Parameter

        +

        Type

        +

        Description

        +

        obs

        +

        obs object

        +

        OBS to which data is actually exported.

        +
        +
        + +
        + + + + + + + + + +
        Table 24 obs

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        OBS URL to which data is actually exported.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 25 engine

        Parameter

        +

        Type

        +

        Description

        +

        engine_id

        +

        String

        +

        Engine ID selected for a training job. You can set this parameter to engine_id, engine_name + engine_version, or image_url.

        +

        engine_name

        +

        String

        +

        Name of the engine selected for a training job. If engine_id is set, leave this parameter blank.

        +

        engine_version

        +

        String

        +

        Name of the engine version selected for a training job. If engine_id is set, leave this parameter blank.

        +

        image_url

        +

        String

        +

        Custom image URL selected for a training job.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 26 TaskResponse

        Parameter

        +

        Type

        +

        Description

        +

        role

        +

        String

        +

        Role of a heterogeneous training job. Options:

        +
        • learner: supports GPUs or CPUs.

          +
        • worker: supports CPUs.

          +
        +

        algorithm

        +

        algorithm object

        +

        Algorithm management and configuration.

        +

        task_resource

        +

        FlavorResponse object

        +

        Flavors of a training job or an algorithm.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 27 algorithm

        Parameter

        +

        Type

        +

        Description

        +

        code_dir

        +

        String

        +

        Absolute path of the directory where the algorithm boot file is stored.

        +

        boot_file

        +

        String

        +

        Absolute path of the algorithm boot file.

        +

        inputs

        +

        inputs object

        +

        Algorithm input channel.

        +

        outputs

        +

        outputs object

        +

        Algorithm output channel.

        +

        engine

        +

        engine object

        +

        Engine on which a heterogeneous job depends.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 28 inputs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data input channel.

        +

        local_dir

        +

        String

        +

        Local path of the container to which the data input and output channels are mapped.

        +

        remote

        +

        remote object

        +

        Actual data input. Heterogeneous jobs support only OBS.

        +
        +
        + +
        + + + + + + + + + +
        Table 29 remote

        Parameter

        +

        Type

        +

        Description

        +

        obs

        +

        obs object

        +

        OBS in which data input and output stored.

        +
        +
        + +
        + + + + + + + + + +
        Table 30 obs

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        OBS URL of the dataset required by a training job. For example, /usr/data/.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 31 outputs

        Parameter

        +

        Type

        +

        Description

        +

        name

        +

        String

        +

        Name of the data output channel.

        +

        local_dir

        +

        String

        +

        Local directory of the container to which the data output channel is mapped.

        +

        remote

        +

        remote object

        +

        Description of the actual data output.

        +

        mode

        +

        String

        +

        Data transmission mode. The default value is upload_periodically.

        +

        period

        +

        String

        +

        Data transmission period. The default value is 30s.

        +
        +
        + +
        + + + + + + + + + +
        Table 32 remote

        Parameter

        +

        Type

        +

        Description

        +

        obs

        +

        obs object

        +

        OBS to which data is actually exported.

        +
        +
        + +
        + + + + + + + + + +
        Table 33 obs

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        OBS URL to which data is actually exported.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 34 engine

        Parameter

        +

        Type

        +

        Description

        +

        engine_id

        +

        String

        +

        Engine ID of a heterogeneous job, for example, caffe-1.0.0-python2.7.

        +

        engine_name

        +

        String

        +

        Engine name of a heterogeneous job, for example, Caffe.

        +

        engine_version

        +

        String

        +

        Engine version of a heterogeneous job.

        +

        v1_compatible

        +

        Boolean

        +

        Whether the v1 compatibility mode is used.

        +

        run_user

        +

        String

        +

        User UID started by default by the engine.

        +

        image_url

        +

        String

        +

        Custom image URL selected by an algorithm.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 35 FlavorResponse

        Parameter

        +

        Type

        +

        Description

        +

        flavor_id

        +

        String

        +

        ID of the resource flavor.

        +

        flavor_name

        +

        String

        +

        Name of the resource flavor.

        +

        max_num

        +

        Integer

        +

        Maximum number of nodes in a resource flavor.

        +

        flavor_type

        +

        String

        +

        Resource flavor type. Options:

        +
        • CPU

          +
        • GPU

          +
        • Ascend

          +
        +

        billing

        +

        billing object

        +

        Billing information of a resource flavor.

        +

        flavor_info

        +

        flavor_info object

        +

        Resource flavor details.

        +

        attributes

        +

        Map<String,String>

        +

        Other specification attributes.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 36 billing

        Parameter

        +

        Type

        +

        Description

        +

        code

        +

        String

        +

        Billing code.

        +

        unit_num

        +

        Integer

        +

        Number of billing units.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 37 flavor_info

        Parameter

        +

        Type

        +

        Description

        +

        max_num

        +

        Integer

        +

        Maximum number of nodes that can be selected. The value 1 indicates that the distributed mode is not supported.

        +

        cpu

        +

        cpu object

        +

        CPU specifications.

        +

        gpu

        +

        gpu object

        +

        GPU specifications.

        +

        npu

        +

        npu object

        +

        Ascend flavors.

        +

        memory

        +

        memory object

        +

        Memory information.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 38 cpu

        Parameter

        +

        Type

        +

        Description

        +

        arch

        +

        String

        +

        CPU architecture.

        +

        core_num

        +

        Integer

        +

        Number of cores.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 39 gpu

        Parameter

        +

        Type

        +

        Description

        +

        unit_num

        +

        Integer

        +

        Number of GPUs.

        +

        product_nume

        +

        String

        +

        Product name.

        +

        memory

        +

        String

        +

        Memory.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 40 npu

        Parameter

        +

        Type

        +

        Description

        +

        unit_num

        +

        String

        +

        Number of NPUs.

        +

        product_name

        +

        String

        +

        Product name.

        +

        memory

        +

        String

        +

        Memory.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 41 memory

        Parameter

        +

        Type

        +

        Description

        +

        size

        +

        Integer

        +

        Memory size.

        +

        unit

        +

        String

        +

        Number of memory units.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 42 spec

        Parameter

        +

        Type

        +

        Description

        +

        resource

        +

        Resource object

        +

        Resource flavors of a training job. Select either flavor_id or pool_id+[flavor_id].

        +

        volumes

        +

        Array of volumes objects

        +

        Volumes attached to a training job.

        +

        log_export_path

        +

        log_export_path object

        +

        Export path of training job logs.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 43 Resource

        Parameter

        +

        Type

        +

        Description

        +

        policy

        +

        String

        +

        Resource flavor of a training job. Options: regular

        +

        flavor_id

        +

        String

        +

        Resource flavor ID of a training job.

        +

        flavor_name

        +

        String

        +

        Read-only flavor name returned by ModelArts when flavor_id is used.

        +

        node_count

        +

        Integer

        +

        Number of resource replicas selected for a training job.

        +

        Minimum: 1

        +

        pool_id

        +

        String

        +

        Resource pool ID selected for a training job.

        +

        flavor_detail

        +

        flavor_detail object

        +

        Flavors of a training job or an algorithm.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 44 flavor_detail

        Parameter

        +

        Type

        +

        Description

        +

        flavor_type

        +

        String

        +

        Resource flavor type. Options:

        +
        • CPU

          +
        • GPU

          +
        • Ascend

          +
        +

        billing

        +

        billing object

        +

        Billing information of a resource flavor.

        +

        flavor_info

        +

        flavor_info object

        +

        Resource flavor details.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 45 billing

        Parameter

        +

        Type

        +

        Description

        +

        code

        +

        String

        +

        Billing code.

        +

        unit_num

        +

        Integer

        +

        Number of billing units.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 46 flavor_info

        Parameter

        +

        Type

        +

        Description

        +

        max_num

        +

        Integer

        +

        Maximum number of nodes that can be selected. The value 1 indicates that the distributed mode is not supported.

        +

        cpu

        +

        cpu object

        +

        CPU specifications.

        +

        gpu

        +

        gpu object

        +

        GPU specifications.

        +

        npu

        +

        npu object

        +

        Ascend flavors.

        +

        memory

        +

        memory object

        +

        Memory information.

        +

        disk

        +

        disk object

        +

        Disk information.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 47 cpu

        Parameter

        +

        Type

        +

        Description

        +

        arch

        +

        String

        +

        CPU architecture.

        +

        core_num

        +

        Integer

        +

        Number of cores.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 48 gpu

        Parameter

        +

        Type

        +

        Description

        +

        unit_num

        +

        Integer

        +

        Number of GPUs.

        +

        product_nume

        +

        String

        +

        Product name.

        +

        memory

        +

        String

        +

        Memory.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 49 npu

        Parameter

        +

        Type

        +

        Description

        +

        unit_num

        +

        String

        +

        Number of NPUs.

        +

        product_name

        +

        String

        +

        Product name.

        +

        memory

        +

        String

        +

        Memory.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 50 memory

        Parameter

        +

        Type

        +

        Description

        +

        size

        +

        Integer

        +

        Memory size.

        +

        unit

        +

        String

        +

        Number of memory units.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 51 disk

        Parameter

        +

        Type

        +

        Description

        +

        size

        +

        String

        +

        Disk size.

        +

        unit

        +

        String

        +

        Unit of the disk size. Generally, the value is GB.

        +
        +
        + +
        + + + + + + + + + +
        Table 52 volumes

        Parameter

        +

        Type

        +

        Description

        +

        nfs

        +

        nfs object

        +

        Volumes attached in NFS mode.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 53 nfs

        Parameter

        +

        Type

        +

        Description

        +

        nfs_server_path

        +

        String

        +

        NFS server path.

        +

        local_path

        +

        String

        +

        Path for attaching volumes to the training container.

        +

        read_only

        +

        Boolean

        +

        Whether the volumes attached to the container in NFS mode are read-only.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 54 log_export_path

        Parameter

        +

        Type

        +

        Description

        +

        obs_url

        +

        String

        +

        OBS URL for storing training job logs.

        +

        host_path

        +

        String

        +

        Path of the host where training job logs are stored.

        +
        +
        +
        +

        Example Requests

        The following shows how to stop the training job whose UUID is 3faf5c03-aaa1-4cbe-879d-24b05d997347.

        +
        POST   https://endpoint/v2/{project_id}/training-jobs/cf63aba9-63b1-4219-b717-708a2665100b/actions
        +
        +{
        +  "action_type" : "terminate"
        +}
        +
        +

        Example Responses

        Status code: 202

        +

        ok

        +
        {
        +  "kind" : "job",
        +  "metadata" : {
        +    "id" : "cf63aba9-63b1-4219-b717-708a2665100b",
        +    "name" : "trainjob--py14_mem06-110",
        +    "description" : "",
        +    "create_time" : 1636515222282,
        +    "workspace_id" : "0",
        +    "ai_project" : "default-ai-project",
        +    "user_name" : "ei_modelarts_z00424192_01"
        +  },
        +  "status" : {
        +    "phase" : "Terminating",
        +    "secondary_phase" : "Terminating",
        +    "duration" : 0,
        +    "start_time" : 0,
        +    "node_count_metrics" : null,
        +    "tasks" : [ "worker-0" ]
        +  },
        +  "algorithm" : {
        +    "code_dir" : "obs://test/economic_test/py_minist/",
        +    "boot_file" : "obs://test/economic_test/py_minist/minist_common.py",
        +    "inputs" : [ {
        +      "name" : "data_url",
        +      "local_dir" : "/home/ma-user/modelarts/inputs/data_url_0",
        +      "remote" : {
        +        "obs" : {
        +          "obs_url" : "/test/data/py_minist/"
        +        }
        +      }
        +    } ],
        +    "outputs" : [ {
        +      "name" : "train_url",
        +      "local_dir" : "/home/ma-user/modelarts/outputs/train_url_0",
        +      "remote" : {
        +        "obs" : {
        +          "obs_url" : "/test/train_output/"
        +        }
        +      },
        +      "mode" : "upload_periodically",
        +      "period" : 30
        +    } ],
        +    "engine" : {
        +      "engine_id" : "pytorch-cp36-1.4.0-v2",
        +      "engine_name" : "PyTorch",
        +      "engine_version" : "PyTorch-1.4.0-python3.6-v2",
        +      "v1_compatible" : false,
        +      "run_user" : ""
        +    }
        +  },
        +  "spec" : {
        +    "resource" : {
        +      "policy" : "economic",
        +      "flavor_id" : "modelarts.vm.p100.large.eco",
        +      "flavor_name" : "Computing GPU(P100) instance",
        +      "node_count" : 1,
        +      "flavor_detail" : {
        +        "flavor_type" : "GPU",
        +        "billing" : {
        +          "code" : "modelarts.vm.gpu.p100.eco",
        +          "unit_num" : 1
        +        },
        +        "attributes" : {
        +          "is_economic_policy_supported" : "true",
        +          "is_multi_devices_supported" : "false",
        +          "is_multi_nodes_supported" : "true"
        +        },
        +        "flavor_info" : {
        +          "cpu" : {
        +            "arch" : "x86",
        +            "core_num" : 8
        +          },
        +          "gpu" : {
        +            "unit_num" : 1,
        +            "product_name" : "NVIDIA-P100",
        +            "memory" : "8GB"
        +          },
        +          "memory" : {
        +            "size" : 64,
        +            "unit" : "GB"
        +          }
        +        }
        +      }
        +    },
        +    "is_hosted_log" : false
        +  }
        +}
        +
        +

        Status Codes

        +
        + + + + + + + +

        Status Code

        +

        Description

        +

        202

        +

        ok

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/SyncDataSource.html b/docs/modelarts/api-ref/SyncDataSource.html index 7ae87b7e..94ee7a8f 100644 --- a/docs/modelarts/api-ref/SyncDataSource.html +++ b/docs/modelarts/api-ref/SyncDataSource.html @@ -1,7 +1,7 @@

        Synchronizing a Dataset

        -

        Function

        This API is used to synchronize samples and labeling information from the input dataset path to the dataset.

        +

        Function

        This API is used to synchronize samples and labeling information from the input dataset path to the dataset.

        URI

        POST /v2/{project_id}/datasets/{dataset_id}/sync-data

        diff --git a/docs/modelarts/api-ref/SyncDataSourceState.html b/docs/modelarts/api-ref/SyncDataSourceState.html index 0cc9e589..832af05e 100644 --- a/docs/modelarts/api-ref/SyncDataSourceState.html +++ b/docs/modelarts/api-ref/SyncDataSourceState.html @@ -1,7 +1,7 @@

        Querying the Status of a Dataset Synchronization Task

        -

        Function

        This API is used to query the status of a dataset synchronization task.

        +

        Function

        This API is used to query the status of a dataset synchronization task.

        URI

        GET /v2/{project_id}/datasets/{dataset_id}/sync-data/status

        diff --git a/docs/modelarts/api-ref/UpdateDataset.html b/docs/modelarts/api-ref/UpdateDataset.html index b77221c4..c045e2d4 100644 --- a/docs/modelarts/api-ref/UpdateDataset.html +++ b/docs/modelarts/api-ref/UpdateDataset.html @@ -1,350 +1,350 @@

        Modifying a Dataset

        -

        Function

        This API is used to modify basic information about a dataset, such as the dataset name, description, current version, and labels.

        +

        Function

        This API is used to modify basic information about a dataset, such as the dataset name, description, current version, and labels.

        -

        URI

        PUT /v2/{project_id}/datasets/{dataset_id}

        +

        URI

        PUT /v2/{project_id}/datasets/{dataset_id}

        -
        Table 1 Path Parameters

        Parameter

        +
        - - - - - - - - - - -
        Table 1 Path Parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        dataset_id

        +

        dataset_id

        Yes

        +

        Yes

        String

        +

        String

        Dataset ID.

        +

        Dataset ID.

        project_id

        +

        project_id

        Yes

        +

        Yes

        String

        +

        String

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        -

        Request Parameters

        -
        Table 2 Request body parameters

        Parameter

        +

        Request Parameters

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 2 Request body parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        add_labels

        +

        add_labels

        No

        +

        No

        Array of Label objects

        +

        Array of Label objects

        List of added labels.

        +

        List of added labels.

        current_version_id

        +

        current_version_id

        No

        +

        No

        String

        +

        String

        ID of current dataset version.

        +

        ID of current dataset version.

        dataset_name

        +

        dataset_name

        No

        +

        No

        String

        +

        String

        Dataset name.

        +

        Dataset name.

        delete_labels

        +

        delete_labels

        No

        +

        No

        Array of Label objects

        +

        Array of Label objects

        List of deleted labels.

        +

        List of deleted labels.

        description

        +

        description

        No

        +

        No

        String

        +

        String

        Dataset description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        +

        Dataset description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        update_labels

        +

        update_labels

        No

        +

        No

        Array of Label objects

        +

        Array of Label objects

        List of updated labels.

        +

        List of updated labels.

        -
        Table 3 Label

        Parameter

        +
        - - - - - - - - - - - - - - - - - - -
        Table 3 Label

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        attributes

        +

        attributes

        No

        +

        No

        Array of LabelAttribute objects

        +

        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.

        +

        Multi-dimensional attribute of a label. For example, if the label is music, attributes such as style and artist may be included.

        name

        +

        name

        No

        +

        No

        String

        +

        String

        Label name.

        +

        Label name.

        property

        +

        property

        No

        +

        No

        LabelProperty object

        +

        LabelProperty object

        Basic attribute key-value pair of a label, such as color and shortcut keys.

        +

        Basic attribute key-value pair of a label, such as color and shortcut keys.

        type

        +

        type

        No

        +

        No

        Integer

        +

        Integer

        Label type. The options are as follows:

        -
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        +

        Label type. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        -
        Table 4 LabelAttribute

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - -
        Table 4 LabelAttribute

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        default_value

        +

        default_value

        No

        +

        No

        String

        +

        String

        Default value of a label attribute.

        +

        Default value of a label attribute.

        id

        +

        id

        No

        +

        No

        String

        +

        String

        Label attribute ID.

        +

        Label attribute ID.

        name

        +

        name

        No

        +

        No

        String

        +

        String

        Label attribute name.

        +

        Label attribute name.

        type

        +

        type

        No

        +

        No

        String

        +

        String

        Label attribute type. The options are as follows:

        -
        • text: text
        • select: single-choice drop-down list
        +

        Label attribute type. The options are as follows:

        +
        • text: text
        • select: single-choice drop-down list

        values

        +

        values

        No

        +

        No

        Array of LabelAttributeValue objects

        +

        Array of LabelAttributeValue objects

        List of label attribute values.

        +

        List of label attribute values.

        -
        Table 5 LabelAttributeValue

        Parameter

        +
        - - - - - - - - - - -
        Table 5 LabelAttributeValue

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        id

        +

        id

        No

        +

        No

        String

        +

        String

        Label attribute value ID.

        +

        Label attribute value ID.

        value

        +

        value

        No

        +

        No

        String

        +

        String

        Label attribute value.

        +

        Label attribute value.

        -
        Table 6 LabelProperty

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 6 LabelProperty

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        @modelarts:color

        +

        @modelarts:color

        No

        +

        No

        String

        +

        String

        Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

        +

        Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.

        @modelarts:default_shape

        +

        @modelarts:default_shape

        No

        +

        No

        String

        +

        String

        Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

        -
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline
        +

        Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:

        +
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline

        @modelarts:from_type

        +

        @modelarts:from_type

        No

        +

        No

        String

        +

        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.

        +

        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

        +

        @modelarts:rename_to

        No

        +

        No

        String

        +

        String

        Default attribute: The new name of the label.

        +

        Default attribute: The new name of the label.

        @modelarts:shortcut

        +

        @modelarts:shortcut

        No

        +

        No

        String

        +

        String

        Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

        +

        Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.

        @modelarts:to_type

        +

        @modelarts:to_type

        No

        +

        No

        String

        +

        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.

        +

        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.

        -

        Response Parameters

        Status code: 200

        +

        Response Parameters

        Status code: 200

        -
        Table 7 Response body parameters

        Parameter

        +
        - - - - -
        Table 7 Response body parameters

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        dataset_id

        +

        dataset_id

        String

        +

        String

        Dataset ID.

        +

        Dataset ID.

        -

        Example Requests

        Modifying a Dataset

        -
        {
        +

        Example Requests

        Modifying a Dataset

        +
        {
           "dataset_id" : "gfghHSokody6AJigS5A",
           "description" : "just a test",
           "add_tags" : [ {
        -    "name" : "Bee",
        +    "name" : "Rabbit",
             "type" : 0,
             "property" : {
               "@modelarts:color" : "#3399ff"
        @@ -352,44 +352,44 @@
           } ]
         }
        -

        Example Responses

        Status code: 200

        -

        OK

        -
        {
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
           "dataset_id" : "gfghHSokody6AJigS5A"
         }
        -

        Status Codes

        -

        Status Code

        +

        Status Codes

        +
        - - - - - - - - -

        Status Code

        Description

        +

        Description

        200

        +

        200

        OK

        +

        OK

        401

        +

        401

        Unauthorized

        +

        Unauthorized

        403

        +

        403

        Forbidden

        +

        Forbidden

        404

        +

        404

        Not Found

        +

        Not Found

        -

        Error Codes

        See Error Codes.

        +

        Error Codes

        See Error Codes.

        diff --git a/docs/modelarts/api-ref/UpdateLabel.html b/docs/modelarts/api-ref/UpdateLabel.html index 694929b9..29d0d500 100644 --- a/docs/modelarts/api-ref/UpdateLabel.html +++ b/docs/modelarts/api-ref/UpdateLabel.html @@ -1,7 +1,7 @@

        Updating a Label by Label Names

        -

        Function

        This API is used to update a label by label names.

        +

        Function

        This API is used to update a label by label names.

        URI

        PUT /v2/{project_id}/datasets/{dataset_id}/data-annotations/labels/{label_name}

        @@ -240,7 +240,7 @@
        diff --git a/docs/modelarts/api-ref/UpdateLabels.html b/docs/modelarts/api-ref/UpdateLabels.html index 1107d4ef..1c0659a5 100644 --- a/docs/modelarts/api-ref/UpdateLabels.html +++ b/docs/modelarts/api-ref/UpdateLabels.html @@ -1,7 +1,7 @@

        Modifying Labels in Batches

        -

        Function

        This API is used to modify labels in batches.

        +

        Function

        This API is used to modify labels in batches.

        URI

        PUT /v2/{project_id}/datasets/{dataset_id}/data-annotations/labels

        @@ -426,7 +426,7 @@
        diff --git a/docs/modelarts/api-ref/UpdateNotebook.html b/docs/modelarts/api-ref/UpdateNotebook.html new file mode 100644 index 00000000..ca8c8501 --- /dev/null +++ b/docs/modelarts/api-ref/UpdateNotebook.html @@ -0,0 +1,594 @@ + + +

        Updating a Notebook Instance

        +

        Function

        This API is used to update the name, description, flavor, and image ID of a stopped notebook instance.

        +
        +

        Constraints

        None

        +
        +

        URI

        PUT /v1/{project_id}/notebooks/{id}

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        id

        +

        Yes

        +

        String

        +

        Notebook instance ID.

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details, see Obtaining a Project ID.

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Request body parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        description

        +

        No

        +

        String

        +

        Instance description. The value can contain a maximum of 512 characters and cannot contain the following special characters: &<>"/.

        +

        endpoints

        +

        No

        +

        Array of EndpointsReq objects

        +

        Local IDE (such as PyCharm and vsCode) or SSH client for remotely accessing a notebook instance through SSH.

        +

        flavor

        +

        No

        +

        String

        +

        Instance flavor. For details, see Querying Flavors Available for a Notebook Instance.

        +

        image_id

        +

        No

        +

        String

        +

        Image ID. For details, see Querying Supported Images.

        +

        name

        +

        No

        +

        String

        +

        Instance name, which contains a maximum of 64 characters and can contain letters, digits, hyphens (-), and underscores (_).

        +

        storage_new_size

        +

        No

        +

        Integer

        +

        EVS instance capacity that can be expanded, in GB. The maximum value is 4,096 GB.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 3 EndpointsReq

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        allowed_access_ips

        +

        No

        +

        Array of strings

        +

        Public IP addresses that can remotely access the notebook instance. A maximum of five public IP addresses are supported.

        +

        dev_service

        +

        No

        +

        String

        +

        Supported services. Options: - NOTEBOOK: You can access the notebook instance using HTTPS.- SSH: You can remotely access the notebook instance through SSH.

        +

        ssh_keys

        +

        No

        +

        Array of strings

        +

        Name of the SSH key pair, which can be created and viewed on the Key Pair page of the Elastic Cloud Server (ECS) console.

        +
        +
        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        action_progress

        +

        Array of JobProgress objects

        +

        Instance initialization progress.

        +

        description

        +

        String

        +

        Instance description

        +

        endpoints

        +

        Array of EndpointsRes objects

        +

        Local IDE (such as PyCharm and vsCode) or SSH client for remotely accessing a notebook instance through SSH.

        +

        fail_reason

        +

        String

        +

        Instance failure cause

        +

        feature

        +

        String

        +

        Instance type. Options: - DEFAULT: free CodeLab instance. You can create only one. - NOTEBOOK: billed instance.

        +

        flavor

        +

        String

        +

        Instance flavor

        +

        id

        +

        String

        +

        Instance ID.

        +

        image

        +

        Image object

        +

        Instance image

        +

        lease

        +

        Lease object

        +

        Countdown to automatic instance stop.

        +

        name

        +

        String

        +

        Instance name

        +

        pool

        +

        Pool object

        +

        Basic information about the dedicated pool, which is returned by the instance created in the dedicated pool.

        +

        status

        +

        String

        +

        Instance status Options: \r\n-INIT: The instance is being initialized. \r\n-CREATING: The instance is being created. \r\n-STARTING: The instance is starting. \r\n-STOPPING: The instance is stopping. \r\n-DELETING: The instance is being deleted.\r\n-RUNNING: The instance is running.\r\n-STOPPED: The instance is stopped.\r\n-SNAPSHOTTING: A snapshot is being taken for the instance (status when the image is being saved).\r\n-CREATE_FAILED: The instance fails to be created. \r\n-START_FAILED: The instance fails to be started. \r\n-DELETE_FAILED: The instance fails to be deleted.\r\n-ERROR: An error occurs. \r\n-DELETED: The instance is deleted. \r\n-FROZEN: The instance is frozen.

        +

        token

        +

        String

        +

        Token used for notebook authentication

        +

        url

        +

        String

        +

        URL for accessing the notebook instance

        +

        volume

        +

        VolumeRes object

        +

        Storage volume

        +

        workspace_id

        +

        String

        +

        Workspace ID. If no workspaces are available, the default value is 0.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 5 JobProgress

        Parameter

        +

        Type

        +

        Description

        +

        notebook_id

        +

        String

        +

        Instance ID.

        +

        status

        +

        String

        +

        Job status in a specified step. Options: - WAITING: The job is waiting to begin. - PROCESSING: The job is being processed. - FAILED: The job failed. - COMPLETED: The task is complete.

        +

        step

        +

        Integer

        +

        Job step. Options: - 1: Storage preparation. - 2: Computing resource preparation. - 3: Network configurations. - 4: Instance initialization.

        +

        step_description

        +

        String

        +

        Description of a step in a job.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 6 EndpointsRes

        Parameter

        +

        Type

        +

        Description

        +

        allowed_access_ips

        +

        Array of strings

        +

        Whitelist of public IP addresses that are allowed to access the notebook instance through SSH. By default, all public IP addresses can access the notebook instance. If this parameter is specified, only the clients with the specified IP addresses can access the notebook instance.

        +

        dev_service

        +

        String

        +

        Supported services. Options: - NOTEBOOK: You can access the notebook instance using HTTPS.- SSH: You can remotely access the notebook instance through SSH.

        +

        ssh_keys

        +

        Array of strings

        +

        List of SSH key pairs. You can set multiple key pairs to access an SSH instance at the same time.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 7 Image

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        Image ID

        +

        name

        +

        String

        +

        Image name.

        +

        swr_path

        +

        String

        +

        SWR image address

        +

        type

        +

        String

        +

        Image type. Options: - BUILD_IN: built-in system image- DEDICATED: image saved by the user

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 8 Lease

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Time (UTC) when the instance is created, accurate to millisecond.

        +

        duration

        +

        Long

        +

        Instance running duration, which is calculated based on the instance creation time. If the instance creation time plus the duration is greater than the current time, the system automatically stops the instance.

        +

        enable

        +

        Boolean

        +

        Whether to enable auto stop of the instance.

        +

        update_time

        +

        Long

        +

        Time (UTC) when the instance is last updated (excluding the keepalive heartbeat time), accurate to millisecond.

        +
        +
        + +
        + + + + + + + + + + + + + +
        Table 9 Pool

        Parameter

        +

        Type

        +

        Description

        +

        id

        +

        String

        +

        ID of a dedicated resource pool

        +

        name

        +

        String

        +

        Name of a dedicated resource pool

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 10 VolumeRes

        Parameter

        +

        Type

        +

        Description

        +

        capacity

        +

        Integer

        +

        Storage capacity. The default value is 5 GB for EVS and 50 GB for EFS. The maximum value is 4,096 GB.

        +

        category

        +

        String

        +

        Storage category. Options: \r\n-EFS: Scalable File Service (SFS), which is the default storage. \r\n-EVS: Elastic Volume Service (EVS). \r\n\r\n For details about the differences between the two types of storage, see Selecting a Storage Type in DevEnviron.\r\n.\r\n\r\n\r\n\r\n

        +

        mount_path

        +

        String

        +

        Directory of the notebook instance to which OBS storage is mounted. Currently, the directory is /home/ma-user/work/.

        +

        ownership

        +

        String

        +

        Owner to which the resource belongs. Options: - MANAGED: Resources are managed by services.- DEDICATED: Resources are managed by the user account. This mode is supported only when the instance category is EFS.

        +

        status

        +

        String

        +

        EVS disk capacity expansion status, which is RESIZING during capacity expansion and does not affect the instance.

        +
        +
        +
        +

        Example Requests

        {
        +  "description" : "update"
        +}
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "create_at" : 1638841805440,
        +  "data_volumes" : [ ],
        +  "description" : "update",
        +  "endpoints" : [ {
        +    "service" : "NOTEBOOK",
        +    "uri" : "https://authoring-modelarts-xxxx.xxxx.com/f9937afa-ca78-45b6-bc12-7ecf42553c48/lab"
        +  } ],
        +  "feature" : "DEFAULT",
        +  "flavor" : "modelarts.vm.cpu.free",
        +  "id" : "f9937afa-ca78-45b6-bc12-7ecf42553c48",
        +  "image" : {
        +    "description" : "description",
        +    "id" : "e1a07296-22a8-4f05-8bc8-e936c8e54090",
        +    "name" : "notebook2.0-mul-kernel-cpu-cp36",
        +    "swr_path" : "swr.xxx.xxxx.com/atelier/notebook2.0-mul-kernel-cpu-cp36:3.3.2-release_v1",
        +    "tag" : "3.3.2-release_v1",
        +    "type" : "BUILD_IN"
        +  },
        +  "lease" : {
        +    "create_at" : 1638841805439,
        +    "duration" : 3600000,
        +    "enable" : true,
        +    "update_at" : 1638841805439
        +  },
        +  "name" : "notebook_5ee4bf0e",
        +  "status" : "STOPPED",
        +  "token" : "58ba50c6-e8ff-245c-4840-49e51aa70737",
        +  "update_at" : 1638842445117,
        +  "url" : "https://authoring-modelarts-xxxx.xxxx.com/f9937afa-ca78-45b6-bc12-7ecf42553c48/lab",
        +  "volume" : {
        +    "category" : "EFS",
        +    "ownership" : "MANAGED",
        +    "mount_path" : "/home/ma-user/work/",
        +    "capacity" : 50,
        +    "usage" : -1
        +  },
        +  "workspace_id" : "0"
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        201

        +

        Created

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/UpdateProcessorTask.html b/docs/modelarts/api-ref/UpdateProcessorTask.html new file mode 100644 index 00000000..b4bb2e19 --- /dev/null +++ b/docs/modelarts/api-ref/UpdateProcessorTask.html @@ -0,0 +1,114 @@ + + +

        Updating a Processing Task

        +

        Function

        This API is used to update a processing task. You can update feature analysis tasks and data processing tasks. Only the description of updated tasks is supported. You can specify the task_id path parameter to update a specific task.

        +
        +

        URI

        PUT /v2/{project_id}/processor-tasks/{task_id}

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        task_id

        +

        Yes

        +

        String

        +

        ID of a data processing task.

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + +
        Table 2 Request body parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        description

        +

        No

        +

        String

        +

        Description of a data processing task. The description contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        +
        +
        +
        +

        Response Parameters

        None

        +
        +

        Example Requests

        Updating a Data Processing Task

        +
        {
        +  "description" : "test"
        +}
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        { }
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/UpdateSamples.html b/docs/modelarts/api-ref/UpdateSamples.html index d1c2c340..935c3e16 100644 --- a/docs/modelarts/api-ref/UpdateSamples.html +++ b/docs/modelarts/api-ref/UpdateSamples.html @@ -1,542 +1,540 @@

        Updating Sample Labels in Batches

        -

        Function

        This API is used to update sample labels in batches, including adding, modifying, and deleting sample labels. If the parameter Labels of a sample in the request body is not specified, the label of the sample is deleted.

        +

        Function

        This API is used to update sample labels in batches, including adding, modifying, and deleting sample labels. If the parameter Labels of a sample in the request body is not specified, the label of the sample is deleted.

        -

        URI

        PUT /v2/{project_id}/datasets/{dataset_id}/data-annotations/samples

        +

        URI

        PUT /v2/{project_id}/datasets/{dataset_id}/data-annotations/samples

        -
        Table 1 Path Parameters

        Parameter

        +
        - - - - - - - - - - -
        Table 1 Path Parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        dataset_id

        +

        dataset_id

        Yes

        +

        Yes

        String

        +

        String

        Dataset ID.

        +

        Dataset ID.

        project_id

        +

        project_id

        Yes

        +

        Yes

        String

        +

        String

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        -

        Request Parameters

        -
        Table 2 Request body parameters

        Parameter

        +

        Request Parameters

        +
        - - - - - - - - - - -
        Table 2 Request body parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        email

        +

        email

        No

        +

        No

        String

        +

        String

        Email address of a labeling team member.

        +

        Email address of a labeling team member.

        samples

        +

        samples

        No

        +

        No

        Array of SampleLabels objects

        +

        Array of SampleLabels objects

        Updated sample list.

        +

        Updated sample list.

        -
        Table 3 SampleLabels

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 3 SampleLabels

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        labels

        +

        labels

        No

        +

        No

        Array of SampleLabel objects

        +

        Array of SampleLabel objects

        Sample label list. If this parameter is left blank, all sample labels are deleted.

        +

        Sample label list. If this parameter is left blank, all sample labels are deleted.

        metadata

        +

        metadata

        No

        +

        No

        SampleMetadata object

        +

        SampleMetadata object

        Key-value pair of the sample metadata attribute.

        +

        Key-value pair of the sample metadata attribute.

        sample_id

        +

        sample_id

        No

        +

        No

        String

        +

        String

        Sample ID.

        +

        Sample ID.

        sample_type

        +

        sample_type

        No

        +

        No

        Integer

        +

        Integer

        Sample type. The options are as follows:

        -
        • 0: image
        • 1: text
        • 2: speech
        • 4: table
        • 6: video
        • 9: custom format
        +

        Sample type. The options are as follows:

        +
        • 0: image
        • 1: text
        • 2: speech
        • 4: table
        • 6: video
        • 9: custom format

        sample_usage

        +

        sample_usage

        No

        +

        No

        String

        +

        String

        Sample usage. The options are as follows:

        -
        • TRAIN: training
        • EVAL: evaluation
        • TEST: test
        • INFERENCE: inference
        +

        Sample usage. The options are as follows:

        +
        • TRAIN: training
        • EVAL: evaluation
        • TEST: test
        • INFERENCE: inference

        source

        +

        source

        No

        +

        No

        String

        +

        String

        Source address of sample data.

        +

        Source address of sample data.

        worker_id

        +

        worker_id

        No

        +

        No

        String

        +

        String

        ID of a labeling team member.

        +

        ID of a labeling team member.

        -
        Table 4 SampleLabel

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 4 SampleLabel

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        annotated_by

        +

        annotated_by

        No

        +

        No

        String

        +

        String

        Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

        -
        • human: manual labeling
        • auto: automatic labeling
        +

        Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

        +
        • human: manual labeling
        • auto: automatic labeling

        id

        +

        id

        No

        +

        No

        String

        +

        String

        Label ID.

        +

        Label ID.

        name

        +

        name

        No

        +

        No

        String

        +

        String

        Label name.

        +

        Label name.

        property

        +

        property

        No

        +

        No

        SampleLabelProperty object

        +

        SampleLabelProperty object

        Attribute key-value pair of the sample label, such as the object shape and shape feature.

        +

        Attribute key-value pair of the sample label, such as the object shape and shape feature.

        score

        +

        score

        No

        +

        No

        Float

        +

        Float

        Confidence.

        +

        Confidence.

        type

        +

        type

        No

        +

        No

        Integer

        +

        Integer

        Label type. The options are as follows:

        -
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        +

        Label type. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        -
        Table 5 SampleLabelProperty

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 5 SampleLabelProperty

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        @modelarts:content

        +

        @modelarts:content

        No

        +

        No

        String

        +

        String

        Speech text content, which is a default attribute dedicated to the speech label (including the speech content and speech start and end points).

        +

        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

        +

        @modelarts:end_index

        No

        +

        No

        Integer

        +

        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. Examples are as follows.

        -
        • If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.
        • If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.
        +

        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. Examples are as follows.- If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.- If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.

        @modelarts:end_time

        +

        @modelarts:end_time

        No

        +

        No

        String

        +

        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.)

        +

        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

        +

        @modelarts:feature

        No

        +

        No

        Object

        +

        Object

        Shape feature, which is a default attribute dedicated to the object detection label, with type of List. The upper left corner of an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:

        -
        • bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.
        • polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].
        • circle: consists of the center point and radius, for example, [[100,100],[50]].
        • line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.
        • dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.
        • point: consists of one point, for example, [[0,100]].
        • polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].
        +

        Shape feature, which is a default attribute dedicated to the object detection label, with type of List. The upper left corner of an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:- bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.- polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].- circle: consists of the center point and radius, for example, [[100,100],[50]].- line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- point: consists of one point, for example, [[0,100]].- polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].

        @modelarts:from

        +

        @modelarts:from

        No

        +

        No

        String

        +

        String

        ID of the head entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

        +

        ID of the head entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

        @modelarts:hard

        +

        @modelarts:hard

        No

        +

        No

        String

        +

        String

        Sample labeled as a hard sample or not, which is a default attribute. Options:

        -
        • 0/false: not a hard example
        • 1/true: hard example
        +

        Sample labeled as a hard sample or not, which is a default attribute. Options:

        +
        • 0/false: not a hard example
        • 1/true: hard example

        @modelarts:hard_coefficient

        +

        @modelarts:hard_coefficient

        No

        +

        No

        String

        +

        String

        Coefficient of difficulty of each label level, which is a default attribute. The value range is [0,1].

        +

        Coefficient of difficulty of each label level, which is a default attribute. The value range is [0,1].

        @modelarts:hard_reasons

        +

        @modelarts:hard_reasons

        No

        +

        No

        String

        +

        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. The options are as follows:

        -
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.
        +

        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. The options are as follows:

        +
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.

        @modelarts:shape

        +

        @modelarts:shape

        No

        +

        No

        String

        +

        String

        Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

        -
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline
        +

        Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

        +
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline

        @modelarts:source

        +

        @modelarts:source

        No

        +

        No

        String

        +

        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.

        +

        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

        +

        @modelarts:start_index

        No

        +

        No

        Integer

        +

        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.

        +

        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

        +

        @modelarts:start_time

        No

        +

        No

        String

        +

        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.)

        +

        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

        +

        @modelarts:to

        No

        +

        No

        String

        +

        String

        ID of the tail entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

        +

        ID of the tail entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

        -
        Table 6 SampleMetadata

        Parameter

        +
        - - - - - - - - - - - - - - - - - - -
        Table 6 SampleMetadata

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        @modelarts:hard

        +

        @modelarts:hard

        No

        +

        No

        Double

        +

        Double

        Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

        -
        • 0: non-hard sample
        • 1: hard sample
        +

        Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

        +
        • 0: non-hard sample
        • 1: hard sample

        @modelarts:hard_coefficient

        +

        @modelarts:hard_coefficient

        No

        +

        No

        Double

        +

        Double

        Coefficient of difficulty of each sample level, which is a default attribute. The value range is [0,1].

        +

        Coefficient of difficulty of each sample level, which is a default attribute. The value range is [0,1].

        @modelarts:hard_reasons

        +

        @modelarts:hard_reasons

        No

        +

        No

        Array of integers

        +

        Array of integers

        ID of a hard sample reason, which is a default attribute. The options are as follows:

        -
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.
        +

        ID of a hard sample reason, which is a default attribute. The options are as follows:

        +
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.

        @modelarts:size

        +

        @modelarts:size

        No

        +

        No

        Array of objects

        +

        Array of objects

        Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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.

        +

        Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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.

        -

        Response Parameters

        Status code: 200

        +

        Response Parameters

        Status code: 200

        -
        Table 7 Response body parameters

        Parameter

        +
        - - - - - - - - - - - - - -
        Table 7 Response body parameters

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        error_code

        +

        error_code

        String

        +

        String

        Error code.

        +

        Error code.

        error_msg

        +

        error_msg

        String

        +

        String

        Error message.

        +

        Error message.

        results

        +

        results

        Array of BatchResponse objects

        +

        Array of BatchResponse objects

        Response list for updating sample labels in batches.

        +

        Response list for updating sample labels in batches.

        success

        +

        success

        Boolean

        +

        Boolean

        Whether the operation is successful. The options are as follows:

        -
        • true: successful
        • false: failed
        +

        Whether the operation is successful. The options are as follows:

        +
        • true: successful
        • false: failed
        -
        Table 8 BatchResponse

        Parameter

        +
        - - - - - - - - - - -
        Table 8 BatchResponse

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        error_code

        +

        error_code

        String

        +

        String

        Error code.

        +

        Error code.

        error_msg

        +

        error_msg

        String

        +

        String

        Error message.

        +

        Error message.

        success

        +

        success

        Boolean

        +

        Boolean

        Check whether the operation is successful. The options are as follows:

        -
        • true: The operation is successful.
        • false: The operation is failed.
        +

        Check whether the operation is successful. The options are as follows:

        +
        • true: The operation is successful.
        • false: The operation is failed.
        -

        Example Requests

        Updating Sample Labels in Batches

        -
        {
        +

        Example Requests

        Updating Sample Labels in Batches

        +
        {
           "samples" : [ {
             "sample_id" : "8b583c44bf249f8ba43ea42c92920221",
             "labels" : [ {
        -      "name" : "yunbao"
        +      "name" : "apple"
             } ]
           }, {
             "sample_id" : "b5fe3039879660a2e6bf18166e247f68",
             "labels" : [ {
        -      "name" : "yunbao"
        +      "name" : "apple"
             } ]
           } ]
         }
        -

        Example Responses

        Status code: 200

        -

        OK

        -
        {
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
           "success" : true
         }
        -

        Status Codes

        -

        Status Code

        +

        Status Codes

        +
        - - - - - - - - -

        Status Code

        Description

        +

        Description

        200

        +

        200

        OK

        +

        OK

        401

        +

        401

        Unauthorized

        +

        Unauthorized

        403

        +

        403

        Forbidden

        +

        Forbidden

        404

        +

        404

        Not Found

        +

        Not Found

        -

        Error Codes

        See Error Codes.

        +

        Error Codes

        See Error Codes.

        diff --git a/docs/modelarts/api-ref/UpdateWorker.html b/docs/modelarts/api-ref/UpdateWorker.html new file mode 100644 index 00000000..79941f34 --- /dev/null +++ b/docs/modelarts/api-ref/UpdateWorker.html @@ -0,0 +1,138 @@ + + +

        Updating a Labeling Team Member

        +

        Function

        This API is used to update a labeling team member.

        +
        +

        URI

        PUT /v2/{project_id}/workforces/{workforce_id}/workers/{worker_id}

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        worker_id

        +

        Yes

        +

        String

        +

        ID of a labeling team member.

        +

        workforce_id

        +

        Yes

        +

        String

        +

        ID of a labeling team.

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + + + + + + +
        Table 2 Request body parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        description

        +

        No

        +

        String

        +

        Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        +

        role

        +

        No

        +

        Integer

        +

        Role. The options are as follows:

        +
        • 0: labeling personnel

          +
        • 1: reviewer

          +
        • 2: team administrator

          +
        • 3: dataset owner

          +
        +
        +
        +
        +

        Response Parameters

        None

        +
        +

        Example Requests

        Updating a Labeling Team Member

        +
        {
        +  "description" : "My name is Tom",
        +  "role" : 2
        +}
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        { }
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/UpdateWorkforce.html b/docs/modelarts/api-ref/UpdateWorkforce.html new file mode 100644 index 00000000..be1798f5 --- /dev/null +++ b/docs/modelarts/api-ref/UpdateWorkforce.html @@ -0,0 +1,123 @@ + + +

        Updating a Labeling Team

        +

        Function

        This API is used to update a labeling team.

        +
        +

        URI

        PUT /v2/{project_id}/workforces/{workforce_id}

        + +
        + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        project_id

        +

        Yes

        +

        String

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        workforce_id

        +

        Yes

        +

        String

        +

        ID of a labeling team.

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + + + + + + +
        Table 2 Request body parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        description

        +

        No

        +

        String

        +

        Labeling team description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        +

        workforce_name

        +

        No

        +

        String

        +

        Name of a labeling team. The value contains 1 to 64 characters and only letters, digits, hyphens (-), and underscores (_) are allowed.

        +
        +
        +
        +

        Response Parameters

        None

        +
        +

        Example Requests

        Updating a Labeling Team

        +
        {
        +  "description" : "my team"
        +}
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        { }
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/UpdateWorkforceSamplingTask.html b/docs/modelarts/api-ref/UpdateWorkforceSamplingTask.html new file mode 100644 index 00000000..f7c8c182 --- /dev/null +++ b/docs/modelarts/api-ref/UpdateWorkforceSamplingTask.html @@ -0,0 +1,685 @@ + + +

        Updating the Status of a Team Labeling Acceptance Task

        +

        Function

        This API is used to update the sample status by confirming the acceptance scope and whether the labeled data is overwritten before the acceptance of the team labeling task is completed.

        +
        +

        URI

        PUT /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/acceptance/status

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        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.

        +

        workforce_task_id

        +

        Yes

        +

        String

        +

        ID of a team labeling task.

        +
        +
        + +
        + + + + + + + + + + + +
        Table 2 Query Parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        locale

        +

        Yes

        +

        String

        +

        Language. The options are as follows:

        +

        en-us: English (default value)

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 3 Request body parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        action

        +

        No

        +

        Integer

        +

        Acceptance action. The options are as follows:

        +
        • 0: Pass all samples.
        • 1: Reject all samples.
        • 2: Cancel acceptance.
        • 3: View the list of conflicted samples.
        • 4: Pass single-accepted samples and unaccepted samples.
        • 5: Pass only single-accepted samples.
        +

        locale

        +

        No

        +

        String

        +

        Language. The options are as follows:

        +

        en-us: English (default value)

        +

        overwrite_last_result

        +

        No

        +

        Boolean

        +

        Whether to overwrite labeled data. The options are as follows:

        +
        • true: Overwrite labeled data.
        • false: Do not overwrite labeled data. (Default value)
        +
        +
        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + +
        Table 4 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        sample_count

        +

        Integer

        +

        Total number of accepted samples.

        +

        samples

        +

        Array of DescribeSampleResp objects

        +

        List of accepted samples.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 5 DescribeSampleResp

        Parameter

        +

        Type

        +

        Description

        +

        check_accept

        +

        Boolean

        +

        Whether the acceptance is passed, which is used for team labeling. The options are as follows:

        +
        • true: The acceptance is passed.
        • false: The acceptance is not passed.
        +

        check_comment

        +

        String

        +

        Acceptance comment, which is used for team labeling.

        +

        check_score

        +

        String

        +

        Acceptance score, which is used for team labeling.

        +

        deletion_reasons

        +

        Array of strings

        +

        Reason for deleting a sample, which is used for healthcare.

        +

        hard_details

        +

        Map<String,HardDetail>

        +

        Details about difficulties, including description, causes, and suggestions of difficult problems.

        +

        labelers

        +

        Array of Worker objects

        +

        Labeling personnel list of sample assignment. The labelers record the team members to which the sample is allocated for team labeling.

        +

        labels

        +

        Array of SampleLabel objects

        +

        Sample label list.

        +

        metadata

        +

        SampleMetadata object

        +

        Key-value pair of the sample metadata attribute.

        +

        review_accept

        +

        Boolean

        +

        Whether to accept the review, which is used for team labeling. The options are as follows:

        +
        • true: accepted
        • false: rejected
        +

        review_comment

        +

        String

        +

        Review comment, which is used for team labeling.

        +

        review_score

        +

        String

        +

        Review score, which is used for team labeling.

        +

        sample_data

        +

        Array of strings

        +

        Sample data list.

        +

        sample_dir

        +

        String

        +

        Sample path.

        +

        sample_id

        +

        String

        +

        Sample ID.

        +

        sample_name

        +

        String

        +

        Sample name.

        +

        sample_size

        +

        Long

        +

        Sample size or text length, in bytes.

        +

        sample_status

        +

        String

        +

        Sample status. The options are as follows:

        +
        • ALL: labeled
        • NONE: unlabeled
        • UNCHECK: pending acceptance
        • ACCEPTED: accepted
        • REJECTED: rejected
        • UNREVIEWED: pending review
        • REVIEWED: reviewed
        • WORKFORCE_SAMPLED: sampled
        • WORKFORCE_SAMPLED_UNCHECK: sampling unchecked
        • WORKFORCE_SAMPLED_CHECKED: sampling checked
        • WORKFORCE_SAMPLED_ACCEPTED: sampling accepted
        • WORKFORCE_SAMPLED_REJECTED: sampling rejected
        • AUTO_ANNOTATION: to be confirmed
        +

        sample_time

        +

        Long

        +

        Sample time, when OBS is last modified.

        +

        sample_type

        +

        Integer

        +

        Sample type. The options are as follows:

        +
        • 0: image
        • 1: text
        • 2: speech
        • 4: table
        • 6: video
        • 9: custom format
        +

        score

        +

        String

        +

        Comprehensive score, which is used for team labeling.

        +

        source

        +

        String

        +

        Source address of sample data.

        +

        sub_sample_url

        +

        String

        +

        Subsample URL, which is used for healthcare.

        +

        worker_id

        +

        String

        +

        ID of a labeling team member, which is used for team labeling.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 6 HardDetail

        Parameter

        +

        Type

        +

        Description

        +

        alo_name

        +

        String

        +

        Alias.

        +

        id

        +

        Integer

        +

        Reason ID.

        +

        reason

        +

        String

        +

        Reason description.

        +

        suggestion

        +

        String

        +

        Handling suggestion.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 7 Worker

        Parameter

        +

        Type

        +

        Description

        +

        create_time

        +

        Long

        +

        Creation time.

        +

        description

        +

        String

        +

        Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        +

        email

        +

        String

        +

        Email address of a labeling team member.

        +

        role

        +

        Integer

        +

        Role. The options are as follows:

        +
        • 0: labeling personnel
        • 1: reviewer
        • 2: team administrator
        • 3: dataset owner
        +

        status

        +

        Integer

        +

        Current login status of a labeling team member. The options are as follows:

        +
        • 0: The invitation email has not been sent.
        • 1: The invitation email has been sent but the user has not logged in.
        • 2: The user has logged in.
        • 3: The labeling team member has been deleted.
        +

        update_time

        +

        Long

        +

        Update time.

        +

        worker_id

        +

        String

        +

        ID of a labeling team member.

        +

        workforce_id

        +

        String

        +

        ID of a labeling team.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 8 SampleLabel

        Parameter

        +

        Type

        +

        Description

        +

        annotated_by

        +

        String

        +

        Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

        +
        • human: manual labeling
        • auto: automatic labeling
        +

        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. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 9 SampleLabelProperty

        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. Examples are as follows.- If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.- If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.

        +

        @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 an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:- bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.- polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].- circle: consists of the center point and radius, for example, [[100,100],[50]].- line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- point: consists of one point, for example, [[0,100]].- polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].

        +

        @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:

        +
        • 0/false: not a hard example
        • 1/true: hard example
        +

        @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. The options are as follows:

        +
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.
        +

        @modelarts:shape

        +

        String

        +

        Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

        +
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline
        +

        @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.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 10 SampleMetadata

        Parameter

        +

        Type

        +

        Description

        +

        @modelarts:hard

        +

        Double

        +

        Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

        +
        • 0: non-hard sample
        • 1: hard sample
        +

        @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. The options are as follows:

        +
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.
        +

        @modelarts:size

        +

        Array of objects

        +

        Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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

        All Tasks Are Accepted.

        +
        {
        +  "action" : 0
        +}
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        { }
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/UpdateWorkforceTask.html b/docs/modelarts/api-ref/UpdateWorkforceTask.html new file mode 100644 index 00000000..d0b41aed --- /dev/null +++ b/docs/modelarts/api-ref/UpdateWorkforceTask.html @@ -0,0 +1,337 @@ + + +

        Updating a Team Labeling Task

        +

        Function

        This API is used to update a team labeling task.

        +
        +

        URI

        PUT /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        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.

        +

        workforce_task_id

        +

        Yes

        +

        String

        +

        ID of a team labeling task.

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 2 Request body parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        dataset_id

        +

        No

        +

        String

        +

        Dataset ID.

        +

        description

        +

        No

        +

        String

        +

        Team labeling task description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        +

        task_id

        +

        No

        +

        String

        +

        ID of a team labeling task.

        +

        task_name

        +

        No

        +

        String

        +

        Team labeling task name. The value contains 1 to 64 characters and only letters, digits, underscores (_), and hyphens (-) are allowed.

        +

        workforces_config

        +

        No

        +

        WorkforcesConfig object

        +

        Team labeling task information: Tasks can be assigned by the team administrator or a specified team.

        +
        +
        + +
        + + + + + + + + + + + + + + + + +
        Table 3 WorkforcesConfig

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        agency

        +

        No

        +

        String

        +

        Team administrator.

        +

        workforces

        +

        No

        +

        Array of WorkforceConfig objects

        +

        List of teams that execute labeling tasks.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 4 WorkforceConfig

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        workers

        +

        No

        +

        Array of Worker objects

        +

        List of labeling team members.

        +

        workforce_id

        +

        No

        +

        String

        +

        ID of a labeling team.

        +

        workforce_name

        +

        No

        +

        String

        +

        Name of a labeling team. The value contains 0 to 1024 characters and does not support the following special characters: !<>=&"'

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 5 Worker

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        create_time

        +

        No

        +

        Long

        +

        Creation time.

        +

        description

        +

        No

        +

        String

        +

        Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'

        +

        email

        +

        No

        +

        String

        +

        Email address of a labeling team member.

        +

        role

        +

        No

        +

        Integer

        +

        Role. The options are as follows:

        +
        • 0: labeling personnel

          +
        • 1: reviewer

          +
        • 2: team administrator

          +
        • 3: dataset owner

          +
        +

        status

        +

        No

        +

        Integer

        +

        Current login status of a labeling team member. The options are as follows:

        +
        • 0: The invitation email has not been sent.

          +
        • 1: The invitation email has been sent but the user has not logged in.

          +
        • 2: The user has logged in.

          +
        • 3: The labeling team member has been deleted.

          +
        +

        update_time

        +

        No

        +

        Long

        +

        Update time.

        +

        worker_id

        +

        No

        +

        String

        +

        ID of a labeling team member.

        +

        workforce_id

        +

        No

        +

        String

        +

        ID of a labeling team.

        +
        +
        +
        +

        Response Parameters

        None

        +
        +

        Example Requests

        Updating a Team Labeling Task

        +
        {
        +  "workforces_config" : {
        +    "workforces" : [ {
        +      "workforce_id" : "3frbQ90hb8ZKksAhyR8",
        +      "workers" : [ {
        +        "email" : "xxx@xxx.com"
        +      }, {
        +        "email" : "xxx@xxx.com"
        +      } ]
        +    } ]
        +  }
        +}
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        { }
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/UpdateWorkforceTaskSamples.html b/docs/modelarts/api-ref/UpdateWorkforceTaskSamples.html new file mode 100644 index 00000000..ed30cccb --- /dev/null +++ b/docs/modelarts/api-ref/UpdateWorkforceTaskSamples.html @@ -0,0 +1,655 @@ + + +

        Updating Labels of Team Labeling Samples in Batches

        +

        Function

        This API is used to update labels of team labeling samples in batches.

        +
        +

        URI

        PUT /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/data-annotations/samples

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 1 Path Parameters

        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.

        +

        workforce_task_id

        +

        Yes

        +

        String

        +

        ID of a labeling task.

        +
        +
        +
        +

        Request Parameters

        +
        + + + + + + + + + + + + + + + + +
        Table 2 Request body parameters

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        email

        +

        No

        +

        String

        +

        Email address of a labeling team member.

        +

        samples

        +

        No

        +

        Array of SampleLabels objects

        +

        Updated sample list.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 3 SampleLabels

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        labels

        +

        No

        +

        Array of SampleLabel objects

        +

        Sample label list. If this parameter is left blank, all sample labels are deleted.

        +

        metadata

        +

        No

        +

        SampleMetadata object

        +

        Key-value pair of the sample metadata attribute.

        +

        sample_id

        +

        No

        +

        String

        +

        Sample ID.

        +

        sample_type

        +

        No

        +

        Integer

        +

        Sample type. The options are as follows:

        +
        • 0: image

          +
        • 1: text

          +
        • 2: speech

          +
        • 4: table

          +
        • 6: video

          +
        • 9: custom format

          +
        +

        sample_usage

        +

        No

        +

        String

        +

        Sample usage. The options are as follows:

        +
        • TRAIN: training

          +
        • EVAL: evaluation

          +
        • TEST: test

          +
        • INFERENCE: inference

          +
        +

        source

        +

        No

        +

        String

        +

        Source address of sample data.

        +

        worker_id

        +

        No

        +

        String

        +

        ID of a labeling team member.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 4 SampleLabel

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        annotated_by

        +

        No

        +

        String

        +

        Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

        +
        • human: manual labeling

          +
        • auto: automatic labeling

          +
        +

        id

        +

        No

        +

        String

        +

        Label ID.

        +

        name

        +

        No

        +

        String

        +

        Label name.

        +

        property

        +

        No

        +

        SampleLabelProperty object

        +

        Attribute key-value pair of the sample label, such as the object shape and shape feature.

        +

        score

        +

        No

        +

        Float

        +

        Confidence.

        +

        type

        +

        No

        +

        Integer

        +

        Label type. The options are as follows:

        +
        • 0: image classification

          +
        • 1: object detection

          +
        • 100: text classification

          +
        • 101: named entity recognition

          +
        • 102: text triplet relationship

          +
        • 103: text triplet entity

          +
        • 200: speech classification

          +
        • 201: speech content

          +
        • 202: speech paragraph labeling

          +
        • 600: video classification

          +
        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 5 SampleLabelProperty

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        @modelarts:content

        +

        No

        +

        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

        +

        No

        +

        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. Examples are as follows.- If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.- If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.

        +

        @modelarts:end_time

        +

        No

        +

        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

        +

        No

        +

        Object

        +

        Shape feature, which is a default attribute dedicated to the object detection label, with type of List. The upper left corner of an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:- bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.- polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].- circle: consists of the center point and radius, for example, [[100,100],[50]].- line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- point: consists of one point, for example, [[0,100]].- polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].

        +

        @modelarts:from

        +

        No

        +

        String

        +

        ID of the head entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

        +

        @modelarts:hard

        +

        No

        +

        String

        +

        Sample labeled as a hard sample or not, which is a default attribute. Options:

        +
        • 0/false: not a hard example

          +
        • 1/true: hard example

          +
        +

        @modelarts:hard_coefficient

        +

        No

        +

        String

        +

        Coefficient of difficulty of each label level, which is a default attribute. The value range is [0,1].

        +

        @modelarts:hard_reasons

        +

        No

        +

        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. The options are as follows:

        +
        • 0: No target objects are identified.

          +
        • 1: The confidence is low.

          +
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.

          +
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.

          +
        • 4: The prediction results of multiple consecutive similar images are inconsistent.

          +
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.

          +
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.

          +
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.

          +
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.

          +
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.

          +
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.

          +
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.

          +
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.

          +
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.

          +
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.

          +
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.

          +
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.

          +
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.

          +
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.

          +
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.

          +
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.

          +
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.

          +
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.

          +
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.

          +
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.

          +
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.

          +
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.

          +
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.

          +
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.

          +
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.

          +
        • 30: The data is predicted to be abnormal.

          +
        +

        @modelarts:shape

        +

        No

        +

        String

        +

        Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

        +
        • bndbox: rectangle

          +
        • polygon: polygon

          +
        • circle: circle

          +
        • line: straight line

          +
        • dashed: dotted line

          +
        • point: point

          +
        • polyline: polyline

          +
        +

        @modelarts:source

        +

        No

        +

        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

        +

        No

        +

        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

        +

        No

        +

        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

        +

        No

        +

        String

        +

        ID of the tail entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

        +
        +
        + +
        + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Table 6 SampleMetadata

        Parameter

        +

        Mandatory

        +

        Type

        +

        Description

        +

        @modelarts:hard

        +

        No

        +

        Double

        +

        Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

        +
        • 0: non-hard sample

          +
        • 1: hard sample

          +
        +

        @modelarts:hard_coefficient

        +

        No

        +

        Double

        +

        Coefficient of difficulty of each sample level, which is a default attribute. The value range is [0,1].

        +

        @modelarts:hard_reasons

        +

        No

        +

        Array of integers

        +

        ID of a hard sample reason, which is a default attribute. The options are as follows:

        +
        • 0: No target objects are identified.

          +
        • 1: The confidence is low.

          +
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.

          +
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.

          +
        • 4: The prediction results of multiple consecutive similar images are inconsistent.

          +
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.

          +
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.

          +
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.

          +
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.

          +
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.

          +
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.

          +
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.

          +
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.

          +
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.

          +
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.

          +
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.

          +
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.

          +
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.

          +
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.

          +
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.

          +
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.

          +
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.

          +
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.

          +
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.

          +
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.

          +
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.

          +
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.

          +
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.

          +
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.

          +
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.

          +
        • 30: The data is predicted to be abnormal.

          +
        +

        @modelarts:size

        +

        No

        +

        Array of objects

        +

        Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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.

        +
        +
        +
        +

        Response Parameters

        Status code: 200

        + +
        + + + + + + + + + + + + + + + + + + + + + +
        Table 7 Response body parameters

        Parameter

        +

        Type

        +

        Description

        +

        error_code

        +

        String

        +

        Error code.

        +

        error_msg

        +

        String

        +

        Error message.

        +

        results

        +

        Array of BatchResponse objects

        +

        Response list for updating sample labels in batches.

        +

        success

        +

        Boolean

        +

        Whether the operation is successful. The options are as follows:

        +
        • true: successful

          +
        • false: failed

          +
        +
        +
        + +
        + + + + + + + + + + + + + + + + + +
        Table 8 BatchResponse

        Parameter

        +

        Type

        +

        Description

        +

        error_code

        +

        String

        +

        Error code.

        +

        error_msg

        +

        String

        +

        Error message.

        +

        success

        +

        Boolean

        +

        Check whether the operation is successful. The options are as follows:

        +
        • true: The operation is successful.

          +
        • false: The operation is failed.

          +
        +
        +
        +
        +

        Example Requests

        Updating Labels of Team Labeling Samples in Batches

        +
        {
        +  "samples" : [ {
        +    "sample_id" : "0a0939d6d3c48a3d2a2619245943ac21",
        +    "worker_id" : "8c15ad080d3eabad14037b4eb00d6a6f",
        +    "labels" : [ {
        +      "name" : "tulips"
        +    } ]
        +  }, {
        +    "sample_id" : "0e1b5a16a5a577ee53aeb34278a4b3e7",
        +    "worker_id" : "8c15ad080d3eabad14037b4eb00d6a6f",
        +    "labels" : [ {
        +      "name" : "tulips"
        +    } ]
        +  } ]
        +}
        +
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
        +  "success" : true
        +}
        +
        +

        Status Codes

        +
        + + + + + + + + + + + + + + + + +

        Status Code

        +

        Description

        +

        200

        +

        OK

        +

        401

        +

        Unauthorized

        +

        403

        +

        Forbidden

        +

        404

        +

        Not Found

        +
        +
        +
        +

        Error Codes

        See Error Codes.

        +
        +
        +
        + +
        + diff --git a/docs/modelarts/api-ref/UploadSamplesJson.html b/docs/modelarts/api-ref/UploadSamplesJson.html index 744b659b..56a56ad4 100644 --- a/docs/modelarts/api-ref/UploadSamplesJson.html +++ b/docs/modelarts/api-ref/UploadSamplesJson.html @@ -1,790 +1,787 @@

        Adding Samples in Batches

        -

        Function

        This API is used to add samples in batches.

        +

        Function

        This API is used to add samples in batches.

        -

        URI

        POST /v2/{project_id}/datasets/{dataset_id}/data-annotations/samples

        +

        URI

        POST /v2/{project_id}/datasets/{dataset_id}/data-annotations/samples

        -
        Table 1 Path Parameters

        Parameter

        +
        - - - - - - - - - - -
        Table 1 Path Parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        dataset_id

        +

        dataset_id

        Yes

        +

        Yes

        String

        +

        String

        Dataset ID.

        +

        Dataset ID.

        project_id

        +

        project_id

        Yes

        +

        Yes

        String

        +

        String

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        +

        Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

        -

        Request Parameters

        -
        Table 2 Request body parameters

        Parameter

        +

        Request Parameters

        +
        - - - - - - - - - - - - - - -
        Table 2 Request body parameters

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        final_annotation

        +

        final_annotation

        No

        +

        No

        Boolean

        +

        Boolean

        Whether to directly import to the final result. The options are as follows:

        -
        • true: Import labels to the labeled dataset. (Default value).
        • false: Import labels to the to-be-confirmed dataset. Currently, to-be-confirmed datasets only support categories of image classification and object detection.
        +

        Whether to directly import to the final result. The options are as follows:

        +
        • true: Import labels to the labeled dataset. (Default value).
        • false: Import labels to the to-be-confirmed dataset. Currently, to-be-confirmed datasets only support categories of image classification and object detection.

        label_format

        +

        label_format

        No

        +

        No

        LabelFormat object

        +

        LabelFormat object

        Label format. This parameter is used only for text datasets.

        +

        Label format. This parameter is used only for text datasets.

        samples

        +

        samples

        No

        +

        No

        Array of Sample objects

        +

        Array of Sample objects

        Sample list.

        +

        Sample list.

        -
        Table 3 LabelFormat

        Parameter

        +
        - - - - - - - - - - - - - - -
        Table 3 LabelFormat

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        label_type

        +

        label_type

        No

        +

        No

        String

        +

        String

        Label type of text classification. The options are as follows:

        -
        • 0: The label is separated from the text, and they are distinguished by the fixed suffix _result. For example, the text file is abc.txt, and the label file is abc_result.txt.
        • 1: Default value. Labels and texts are stored in the same file and separated by separators. You can use text_sample_separator to specify the separator between the text and label and text_label_separator to specify the separator between labels.
        +

        Label type of text classification. The options are as follows:- 0: The label is separated from the text, and they are distinguished by the fixed suffix _result. For example, the text file is abc.txt, and the label file is abc_result.txt.- 1: Default value. Labels and texts are stored in the same file and separated by separators. You can use text_sample_separator to specify the separator between the text and label and text_label_separator to specify the separator between labels.

        text_label_separator

        +

        text_label_separator

        No

        +

        No

        String

        +

        String

        Separator between labels. By default, a comma (,) is used as the separator. The separator needs to be escaped. The separator can contain only one character, such as a letter, a digit, or any of the following special characters: !@#$%^&*_=|?/':.;,

        +

        Separator between labels. By default, a comma (,) is used as the separator. The separator needs to be escaped. The separator can contain only one character, such as a letter, a digit, or any of the following special characters: !@#$%^&*_=|?/':.;,

        text_sample_separator

        +

        text_sample_separator

        No

        +

        No

        String

        +

        String

        Separator between the text and label. By default, the Tab key is used as the separator. The separator needs to be escaped. The separator can contain only one character, such as a letter, a digit, or any of the following special characters: !@#$%^&*_=|?/':.;,

        +

        Separator between the text and label. By default, the Tab key is used as the separator. The separator needs to be escaped. The separator can contain only one character, such as a letter, a digit, or any of the following special characters: !@#$%^&*_=|?/':.;,

        -
        Table 4 Sample

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 4 Sample

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        data

        +

        data

        No

        +

        No

        Object

        +

        Object

        Byte data of sample files. The type is java.nio.ByteBuffer. When this parameter is called, the string converted from the byte data is uploaded.

        +

        Byte data of sample files. The type is java.nio.ByteBuffer. When this parameter is called, the string converted from the byte data is uploaded.

        data_source

        +

        data_source

        No

        +

        No

        DataSource object

        +

        DataSource object

        Data source.

        +

        Data source.

        encoding

        +

        encoding

        No

        +

        No

        String

        +

        String

        Encoding type of sample files, which is used to upload .txt or .csv files. The value can be UTF-8, GBK, or GB2312. The default value is UTF-8.

        +

        Encoding type of sample files, which is used to upload .txt or .csv files. The value can be UTF-8, GBK, or GB2312. The default value is UTF-8.

        labels

        +

        labels

        No

        +

        No

        Array of SampleLabel objects

        +

        Array of SampleLabel objects

        Sample label list.

        +

        Sample label list.

        metadata

        +

        metadata

        No

        +

        No

        SampleMetadata object

        +

        SampleMetadata object

        Key-value pair of the sample metadata attribute.

        +

        Key-value pair of the sample metadata attribute.

        name

        +

        name

        No

        +

        No

        String

        +

        String

        Name of sample files. The value contains 0 to 1,024 characters and cannot contain special characters (!<>=&"').

        +

        Name of sample files. The value contains 0 to 1,024 characters and cannot contain special characters (!<>=&"').

        sample_type

        +

        sample_type

        No

        +

        No

        Integer

        +

        Integer

        Sample type. The options are as follows:

        -
        • 0: image
        • 1: text
        • 2: speech
        • 4: table
        • 6: video
        • 9: custom format
        +

        Sample type. The options are as follows:

        +
        • 0: image
        • 1: text
        • 2: speech
        • 4: table
        • 6: video
        • 9: custom format
        -
        Table 5 DataSource

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - -
        Table 5 DataSource

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        data_path

        +

        data_path

        No

        +

        No

        String

        +

        String

        Data source path.

        +

        Data source path.

        data_type

        +

        data_type

        No

        +

        No

        Integer

        +

        Integer

        Data type. The options are as follows:

        -
        • 0: OBS bucket (default value)
        • 1: GaussDB(DWS)
        • 2: DLI
        • 3: RDS
        • 4: MRS
        • 5: AI Gallery
        • 6: Inference service
        +

        Data type. The options are as follows:

        +
        • 0: OBS bucket (default value)
        • 1: GaussDB(DWS)
        • 2: DLI
        • 3: RDS
        • 4: MRS
        • 5: AI Gallery
        • 6: Inference service

        schema_maps

        +

        schema_maps

        No

        +

        No

        Array of SchemaMap objects

        +

        Array of SchemaMap objects

        Schema mapping information corresponding to the table data.

        +

        Schema mapping information corresponding to the table data.

        source_info

        +

        source_info

        No

        +

        No

        SourceInfo object

        +

        SourceInfo object

        Information required for importing a table data source.

        +

        Information required for importing a table data source.

        with_column_header

        +

        with_column_header

        No

        +

        No

        Boolean

        +

        Boolean

        Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

        -
        • true: The first row in the file is the column name.
        • false: The first row in the file is not the column name.
        +

        Whether the first row in the file is a column name. This field is valid for the table dataset. The options are as follows:

        +
        • true: The first row in the file is the column name.
        • false: The first row in the file is not the column name.
        -
        Table 6 SchemaMap

        Parameter

        +
        - - - - - - - - - - -
        Table 6 SchemaMap

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        dest_name

        +

        dest_name

        No

        +

        No

        String

        +

        String

        Name of the destination column.

        +

        Name of the destination column.

        src_name

        +

        src_name

        No

        +

        No

        String

        +

        String

        Name of the source column.

        +

        Name of the source column.

        -
        Table 7 SourceInfo

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 7 SourceInfo

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        cluster_id

        +

        cluster_id

        No

        +

        No

        String

        +

        String

        ID of an MRS cluster.

        +

        ID of an MRS cluster.

        cluster_mode

        +

        cluster_mode

        No

        +

        No

        String

        +

        String

        Running mode of an MRS cluster. The options are as follows:

        -
        • 0: normal cluster
        • 1: security cluster
        +

        Running mode of an MRS cluster. The options are as follows:

        +
        • 0: normal cluster
        • 1: security cluster

        cluster_name

        +

        cluster_name

        No

        +

        No

        String

        +

        String

        Name of an MRS cluster.

        +

        Name of an MRS cluster.

        database_name

        +

        database_name

        No

        +

        No

        String

        +

        String

        Name of the database to which the table dataset is imported.

        +

        Name of the database to which the table dataset is imported.

        input

        +

        input

        No

        +

        No

        String

        +

        String

        HDFS path of a table dataset.

        +

        HDFS path of a table dataset.

        ip

        +

        ip

        No

        +

        No

        String

        +

        String

        IP address of your GaussDB(DWS) cluster.

        +

        IP address of your GaussDB(DWS) cluster.

        port

        +

        port

        No

        +

        No

        String

        +

        String

        Port number of your GaussDB(DWS) cluster.

        +

        Port number of your GaussDB(DWS) cluster.

        queue_name

        +

        queue_name

        No

        +

        No

        String

        +

        String

        DLI queue name of a table dataset.

        +

        DLI queue name of a table dataset.

        subnet_id

        +

        subnet_id

        No

        +

        No

        String

        +

        String

        Subnet ID of an MRS cluster.

        +

        Subnet ID of an MRS cluster.

        table_name

        +

        table_name

        No

        +

        No

        String

        +

        String

        Name of the table to which a table dataset is imported.

        +

        Name of the table to which a table dataset is imported.

        user_name

        +

        user_name

        No

        +

        No

        String

        +

        String

        Username, which is mandatory for GaussDB(DWS) data.

        +

        Username, which is mandatory for GaussDB(DWS) data.

        user_password

        +

        user_password

        No

        +

        No

        String

        +

        String

        User password, which is mandatory for GaussDB(DWS) data.

        +

        User password, which is mandatory for GaussDB(DWS) data.

        vpc_id

        +

        vpc_id

        No

        +

        No

        String

        +

        String

        ID of the VPC where an MRS cluster resides.

        +

        ID of the VPC where an MRS cluster resides.

        -
        Table 8 SampleLabel

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 8 SampleLabel

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        annotated_by

        +

        annotated_by

        No

        +

        No

        String

        +

        String

        Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

        -
        • human: manual labeling
        • auto: automatic labeling
        +

        Video labeling method, which is used to distinguish whether a video is labeled manually or automatically. The options are as follows:

        +
        • human: manual labeling
        • auto: automatic labeling

        id

        +

        id

        No

        +

        No

        String

        +

        String

        Label ID.

        +

        Label ID.

        name

        +

        name

        No

        +

        No

        String

        +

        String

        Label name.

        +

        Label name.

        property

        +

        property

        No

        +

        No

        SampleLabelProperty object

        +

        SampleLabelProperty object

        Attribute key-value pair of the sample label, such as the object shape and shape feature.

        +

        Attribute key-value pair of the sample label, such as the object shape and shape feature.

        score

        +

        score

        No

        +

        No

        Float

        +

        Float

        Confidence.

        +

        Confidence.

        type

        +

        type

        No

        +

        No

        Integer

        +

        Integer

        Label type. The options are as follows:

        -
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        +

        Label type. The options are as follows:

        +
        • 0: image classification
        • 1: object detection
        • 100: text classification
        • 101: named entity recognition
        • 102: text triplet relationship
        • 103: text triplet entity
        • 200: speech classification
        • 201: speech content
        • 202: speech paragraph labeling
        • 600: video classification
        -
        Table 9 SampleLabelProperty

        Parameter

        +
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Table 9 SampleLabelProperty

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        @modelarts:content

        +

        @modelarts:content

        No

        +

        No

        String

        +

        String

        Speech text content, which is a default attribute dedicated to the speech label (including the speech content and speech start and end points).

        +

        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

        +

        @modelarts:end_index

        No

        +

        No

        Integer

        +

        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. Examples are as follows.

        -
        • If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.
        • If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.
        +

        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. Examples are as follows.- If the text content is "Barack Hussein Obama II (born August 4, 1961) is an American attorney and politician.", the start_index and end_index values of "Barack Hussein Obama II" are 0 and 23, respectively.- If the text content is "By the end of 2018, the company has more than 100 employees.", the start_index and end_index values of "By the end of 2018" are 0 and 18, respectively.

        @modelarts:end_time

        +

        @modelarts:end_time

        No

        +

        No

        String

        +

        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.)

        +

        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

        +

        @modelarts:feature

        No

        +

        No

        Object

        +

        Object

        Shape feature, which is a default attribute dedicated to the object detection label, with type of List. The upper left corner of an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:

        -
        • bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.
        • polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].
        • circle: consists of the center point and radius, for example, [[100,100],[50]].
        • line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.
        • dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.
        • point: consists of one point, for example, [[0,100]].
        • polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].
        +

        Shape feature, which is a default attribute dedicated to the object detection label, with type of List. The upper left corner of an image is used as the coordinate origin [0,0]. Each coordinate point is represented by [x, y]. x indicates the horizontal coordinate, and y indicates the vertical coordinate (both x and y are greater than or equal to 0). The format of each shape is as follows:- bndbox: consists of two points, for example, [[0,10],[50,95]]. The first point is located at the upper left corner of the rectangle and the second point is located at the lower right corner of the rectangle. That is, the X coordinate of the first point must be smaller than that of the second point, and the Y coordinate of the second point must be smaller than that of the first point.- polygon: consists of multiple points that are connected in sequence to form a polygon, for example, [[0,100],[50,95],[10,60],[500,400]].- circle: consists of the center point and radius, for example, [[100,100],[50]].- line: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- dashed: consists of two points, for example, [[0,100],[50,95]]. The first point is the start point, and the second point is the end point.- point: consists of one point, for example, [[0,100]].- polyline: consists of multiple points, for example, [[0,100],[50,95],[10,60],[500,400]].

        @modelarts:from

        +

        @modelarts:from

        No

        +

        No

        String

        +

        String

        ID of the head entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

        +

        ID of the head entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

        @modelarts:hard

        +

        @modelarts:hard

        No

        +

        No

        String

        +

        String

        Sample labeled as a hard sample or not, which is a default attribute. Options:

        -
        • 0/false: not a hard example
        • 1/true: hard example
        +

        Sample labeled as a hard sample or not, which is a default attribute. Options:

        +
        • 0/false: not a hard example
        • 1/true: hard example

        @modelarts:hard_coefficient

        +

        @modelarts:hard_coefficient

        No

        +

        No

        String

        +

        String

        Coefficient of difficulty of each label level, which is a default attribute. The value range is [0,1].

        +

        Coefficient of difficulty of each label level, which is a default attribute. The value range is [0,1].

        @modelarts:hard_reasons

        +

        @modelarts:hard_reasons

        No

        +

        No

        String

        +

        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. The options are as follows:

        -
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.
        +

        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. The options are as follows:

        +
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.

        @modelarts:shape

        +

        @modelarts:shape

        No

        +

        No

        String

        +

        String

        Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

        -
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline
        +

        Object shape, which is a default attribute dedicated to the object detection label and is left empty by default. The options are as follows:

        +
        • bndbox: rectangle
        • polygon: polygon
        • circle: circle
        • line: straight line
        • dashed: dotted line
        • point: point
        • polyline: polyline

        @modelarts:source

        +

        @modelarts:source

        No

        +

        No

        String

        +

        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.

        +

        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

        +

        @modelarts:start_index

        No

        +

        No

        Integer

        +

        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.

        +

        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

        +

        @modelarts:start_time

        No

        +

        No

        String

        +

        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.)

        +

        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

        +

        @modelarts:to

        No

        +

        No

        String

        +

        String

        ID of the tail entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

        +

        ID of the tail entity in the triplet relationship label, which is a default attribute dedicated to the triplet relationship label.

        -
        Table 10 SampleMetadata

        Parameter

        +
        - - - - - - - - - - - - - - - - - - -
        Table 10 SampleMetadata

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        @modelarts:hard

        +

        @modelarts:hard

        No

        +

        No

        Double

        +

        Double

        Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

        -
        • 0: non-hard sample
        • 1: hard sample
        +

        Whether the sample is labeled as a hard sample, which is a default attribute. The options are as follows:

        +
        • 0: non-hard sample
        • 1: hard sample

        @modelarts:hard_coefficient

        +

        @modelarts:hard_coefficient

        No

        +

        No

        Double

        +

        Double

        Coefficient of difficulty of each sample level, which is a default attribute. The value range is [0,1].

        +

        Coefficient of difficulty of each sample level, which is a default attribute. The value range is [0,1].

        @modelarts:hard_reasons

        +

        @modelarts:hard_reasons

        No

        +

        No

        Array of integers

        +

        Array of integers

        ID of a hard sample reason, which is a default attribute. The options are as follows:

        -
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.
        +

        ID of a hard sample reason, which is a default attribute. The options are as follows:

        +
        • 0: No target objects are identified.
        • 1: The confidence is low.
        • 2: The clustering result based on the training dataset is inconsistent with the prediction result.
        • 3: The prediction result is greatly different from the data of the same type in the training dataset.
        • 4: The prediction results of multiple consecutive similar images are inconsistent.
        • 5: There is a large offset between the image resolution and the feature distribution of the training dataset.
        • 6: There is a large offset between the aspect ratio of the image and the feature distribution of the training dataset.
        • 7: There is a large offset between the brightness of the image and the feature distribution of the training dataset.
        • 8: There is a large offset between the saturation of the image and the feature distribution of the training dataset.
        • 9: There is a large offset between the color richness of the image and the feature distribution of the training dataset.
        • 10: There is a large offset between the definition of the image and the feature distribution of the training dataset.
        • 11: There is a large offset between the number of frames of the image and the feature distribution of the training dataset.
        • 12: There is a large offset between the standard deviation of area of image frames and the feature distribution of the training dataset.
        • 13: There is a large offset between the aspect ratio of image frames and the feature distribution of the training dataset.
        • 14: There is a large offset between the area portion of image frames and the feature distribution of the training dataset.
        • 15: There is a large offset between the edge of image frames and the feature distribution of the training dataset.
        • 16: There is a large offset between the brightness of image frames and the feature distribution of the training dataset.
        • 17: There is a large offset between the definition of image frames and the feature distribution of the training dataset.
        • 18: There is a large offset between the stack of image frames and the feature distribution of the training dataset.
        • 19: The data enhancement result based on GaussianBlur is inconsistent with the prediction result of the original image.
        • 20: The data enhancement result based on fliplr is inconsistent with the prediction result of the original image.
        • 21: The data enhancement result based on Crop is inconsistent with the prediction result of the original image.
        • 22: The data enhancement result based on flipud is inconsistent with the prediction result of the original image.
        • 23: The data enhancement result based on scale is inconsistent with the prediction result of the original image.
        • 24: The data enhancement result based on translate is inconsistent with the prediction result of the original image.
        • 25: The data enhancement result based on shear is inconsistent with the prediction result of the original image.
        • 26: The data enhancement result based on superpixels is inconsistent with the prediction result of the original image.
        • 27: The data enhancement result based on sharpen is inconsistent with the prediction result of the original image.
        • 28: The data enhancement result based on add is inconsistent with the prediction result of the original image.
        • 29: The data enhancement result based on invert is inconsistent with the prediction result of the original image.
        • 30: The data is predicted to be abnormal.

        @modelarts:size

        +

        @modelarts:size

        No

        +

        No

        Array of objects

        +

        Array of objects

        Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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.

        +

        Image size (width, height, and depth of the image), which is a default attribute, with type of List. 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.

        -

        Response Parameters

        Status code: 200

        +

        Response Parameters

        Status code: 200

        -
        Table 11 Response body parameters

        Parameter

        +
        - - - - - - - - - - - - - -
        Table 11 Response body parameters

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        error_code

        +

        error_code

        String

        +

        String

        Error code.

        +

        Error code.

        error_msg

        +

        error_msg

        String

        +

        String

        Error message.

        +

        Error message.

        results

        +

        results

        Array of UploadSampleResp objects

        +

        Array of UploadSampleResp objects

        Response list for adding samples in batches.

        +

        Response list for adding samples in batches.

        success

        +

        success

        Boolean

        +

        Boolean

        Whether the operation is successful. The options are as follows:

        -
        • true: successful
        • false: failed
        +

        Whether the operation is successful. The options are as follows:

        +
        • true: successful
        • false: failed
        -
        Table 12 UploadSampleResp

        Parameter

        +
        - - - - - - - - - - - - - - - - -
        Table 12 UploadSampleResp

        Parameter

        Type

        +

        Type

        Description

        +

        Description

        error_code

        +

        error_code

        String

        +

        String

        Error code.

        +

        Error code.

        error_msg

        +

        error_msg

        String

        +

        String

        Error message.

        +

        Error message.

        info

        +

        info

        String

        +

        String

        Description.

        +

        Description.

        name

        +

        name

        String

        +

        String

        Name of a sample file.

        +

        Name of a sample file.

        success

        +

        success

        Boolean

        +

        Boolean

        Whether the operation is successful. The options are as follows:

        -
        • true: successful
        • false: failed
        +

        Whether the operation is successful. The options are as follows:

        +
        • true: successful
        • false: failed
        -

        Example Requests

        Adding Samples in Batches

        -
        {
        +

        Example Requests

        Adding Samples in Batches

        +
        {
           "samples" : [ {
             "name" : "2.jpg",
             "data" : "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAA1AJUDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL"
           } ]
         }
        -

        Example Responses

        Status code: 200

        -

        OK

        -
        {
        +

        Example Responses

        Status code: 200

        +

        OK

        +
        {
           "success" : true,
           "results" : [ {
             "success" : true,
        @@ -793,38 +790,38 @@
           } ]
         }
        -

        Status Codes

        -

        Status Code

        +

        Status Codes

        +
        - - - - - - - - -

        Status Code

        Description

        +

        Description

        200

        +

        200

        OK

        +

        OK

        401

        +

        401

        Unauthorized

        +

        Unauthorized

        403

        +

        403

        Forbidden

        +

        Forbidden

        404

        +

        404

        Not Found

        +

        Not Found

        -

        Error Codes

        See Error Codes.

        +

        Error Codes

        See Error Codes.

        diff --git a/docs/modelarts/api-ref/algorithms.html b/docs/modelarts/api-ref/algorithms.html new file mode 100644 index 00000000..89048d39 --- /dev/null +++ b/docs/modelarts/api-ref/algorithms.html @@ -0,0 +1,26 @@ + + +

        Algorithm Management

        +

        +
        + + diff --git a/docs/modelarts/api-ref/authorization.html b/docs/modelarts/api-ref/authorization.html new file mode 100644 index 00000000..288c05fc --- /dev/null +++ b/docs/modelarts/api-ref/authorization.html @@ -0,0 +1,18 @@ + + +

        Authorization Management

        +

        +
        + + diff --git a/docs/modelarts/api-ref/auto_task.html b/docs/modelarts/api-ref/auto_task.html new file mode 100644 index 00000000..6bfbc3e1 --- /dev/null +++ b/docs/modelarts/api-ref/auto_task.html @@ -0,0 +1,26 @@ + + +

        Intelligent Task

        +

        +
        + + diff --git a/docs/modelarts/api-ref/data_export.html b/docs/modelarts/api-ref/data_export.html index 78f81658..2b8c3332 100644 --- a/docs/modelarts/api-ref/data_export.html +++ b/docs/modelarts/api-ref/data_export.html @@ -1,7 +1,7 @@

        Data Export Task

        -

        +