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 scatter plot points of a dataset version.
Resource Path/api/datasets/versions/{versionsetId}/scatter
HTTP MethodPOST
Request/Response Formatapplication/json

Parameter description

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

Sample cURL command

curl -X POST -d @<JSON_PAYLOAD> -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/datasets/versions/1/scatter -k

<JSON_PAYLOAD>
{
"tenantId" : -1234,
"user" : "admin",
"versionsetId" : 1,
"xAxisFeature" : "Age",
"yAxisFeature" : "NumPregnancies",
"groupByFeature" : "Class"
}

Example

POST https://localhost:9443/datasets/versions/{versionsetId}/scatter
{
"tenantId" : -1234,
"user" : "admin",
"versionsetId" : 1,
"xAxisFeature" : "Age",
"yAxisFeature" : "NumPregnancies",
"groupByFeature" : "Class"
}

Sample output

[
{
"44.0":{"12.0":"0"}
},
{
"47.0":{"5.0":"0"}
},
{
"21.0":{"2.0":"0"}
}
]

REST API response

HTTP status code

200, 404 or 500

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

  • No labels