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 a dataset version.
Resource Path

/api/datasets/versions/{versionset_id}

HTTP MethodGET
Request/Response Formatapplication/json

Parameter description

Parameter
Description
{versionset_id}ID of the version set which you need to retrieve.

Sample cURL command

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

Example

GET https://localhost:9443/api/datasets/versions/{versionset_id}

Sample output

{
    "name": "diabetes-1.0",
    "id": 1,
    "targetPath": "/tmp/diabetes.-1234.1426824112106",
    "tenantId": -1234,
    "userName": "admin",
    "version": null,
    "datasetId": 0,
    "samplePoints": {
        "header": {
            "NumPregnancies": 0,
            "PG2": 1,
            "DBP": 2,
            "TSFT": 3,
            "SI2": 4,
            "BMI": 5,
            "DPF": 6,
            "Age": 7,
            "Class": 8
        },
        "stringCellCount": [
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
        ],
        "samplePoints": [
            [
                "6",
                "1",
                "8"
            ]
        ]
    }
}

REST API response

HTTP status code

200, 404 or 500.

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

  • No labels