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

DescriptionRetrieving summarized statistics of a feature in a dataset
Resource Path/api/datasets/{dataset_id}/stats/?feature={feature_name}
HTTP MethodGET
Request/Response Formatapplication/json

Parameter description

Parameter
Description
{dataset_id}ID of the dataset of which you need to retrieve summarized statistics of a feature.
{feature_name}Name of the feature which you need to retrieve summarized statistics.

Sample cURL command

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

Example

GET https://localhost:9443/api/datasets/{dataset_id}/stats/?feature={feature_name} 

Sample output

[
{
"missing":0,
"median":"29",
"values":[["0",219],["1",113],["2",85],["3",57],["4",40],["5",47],["6",53],["7",36],["8",24],["9",21],["10",19],["11",12],["12",15],["13",10],["14",8],["15",6],["16",2],["17",0],["18",0],["19",1]],
"unique":52,
"std":"11.76",
"mean":"33.241",
"skewness":"1.13",
"bar":true,
"key":"Frequency"
}
]

REST API response

HTTP status code

200

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

  • No labels