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 sample points of a given dataset version.
Resource Path

/api/datasets/versions/{versionsetId}/sample

HTTP MethodGET
Response Formatapplication/json

Parameter description

Parameter
Description
{versionset_id}ID of the dataset version of which you need to retrieve sample points.

Sample cURL command

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

Example

GET https://localhost:9443/api/datasets/versions/{versionsetId}/sample

Sample output

{
"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",...],
["0.137","0.190","0.637","0.439","0.218",...],
["44","47","21","43","65",...],
["0","0","0","1","0",...]
],
"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
}
}

REST API response

HTTP status code

200, 400 or 500

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

  • No labels