This documentation is for Machine Learner 1.0.0. View documentation for the latest release.
||
Skip to end of metadata
Go to start of metadata

Overview

DescriptionRetrieve version set ID of a given dataset version.
Resource Path

/api/datasets/{datasetId}/versions/{version}

HTTP MethodGET
Response Formatapplication/json

Parameter description

Parameter
Description
{dataset_id}ID of the dataset which you need to retrieve.
{version}Version of the dataset which you need to retrieve.

Sample cURL command

curl -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/datasets/1/versions/1.0.0 -k

Example cURL command

curl -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/datasets/1/versions/1.0.0 -k

Example

GET https://localhost:9443/api/datasets/versions

Sample output

 {  
   "datasetId":0,
   "samplePoints":{  
      "samplePoints":[  
         [  "12","5","2","7","5"],
         [  "106","143","99","129","147"],
         [  "80","78","52","68","78"],
         [  "0","0","15","49","0"],
         [  "0","0","94","125","0",],
         [  "23.6","45.0","24.6","38.5","33.7"],    
      ],
      "generated":true,
      "missing":[0,0,0,0,0,0,0,0,0],
      "stringCellCount":[0,0,0,0,0,0,0,0,0],
      "decimalCellCount":[0,0,0,0,0,768,768,0,0],
      "header":{"SI2":4,"PG2":1,"Age":7,"DBP":2,"Class":8,"BMI":5,"DPF":6,"TSFT":3,"NumPregnancies":0}
   },
   "targetPath":"{ML_HOME}/datasets/Pima Indians Diabetes.-1234.1441079931058",
   "tenantId":-1234,
   "name":"Pima Indians Diabetes-1.0.0",
   "id":1,
   "version":"1.0.0",
   "userName":"admin",
   "status":null
} 

REST API response

HTTP status code

200, 400 or 500

For descriptions of the HTTP status codes, see HTTP Status Codes.

  • No labels