Features Visualization

This endpoint is to display the 2d histogram of selected features (normally 2 features).

x: list of m elements (represented as lower and higher ranges of x)

y: list of n elements (represented as lower and higher ranges of y)

hist: array of m x n elements

Request Body

NameDataTypeDescriptionMandatorySample ValueList of possible valuesNotes
clientIdStringIt is meant for identification purpose as information are stored under unique id valueYes
featuresOfInterestArray of stringsMerging 2 numerical features to find and understand the relationship between 2 selected featuresYes.["personalIncome", "savingsRatio"]Length of array must be 2. Depends on the values derived from /data_retrieval endpoint based on the client_id value. The values must fall under numerical featuresThe value in the array must match with the set key-value pair found in /data_retrieval endpoint based on the client_id value. The values must fall under numerical features

Response Body

NameDatatypeDescriptionSample ValueNo. of decimalsNotes
correlationArray of dictionariesContains correlation of items in “featuresOfInterest” inputShows the correlation between 2 variables"correlation": [ { "feature1": "personalIncome", "feature2": "personalIncome", "value": 1 }, { "feature1": "personalIncome", "feature2": "age", "value": 0.06482 }, { "feature1": "age", "feature2": "personalIncome", "value": 0.06482 }, { "feature1": "age", "feature2": "age", "value": 1 } ]5
feature1, feature2StringFeatures in featuresOfInterest input"feature1": “age”"feature2": “personalIncome”
valueNumbercorrelation between the 2 features5
hist2dArray of dictionariesUsed to create the histogramContains "value", "xHighValue", "xLowValue", "xValue", "yHighValue", "yLowValue", "yValue"."hist2d": [ { "value": 39, "xHighValue": 3517.3, "xLowValue": 8, "xValue": 296, "yHighValue": 23.05, "yLowValue": 19, "yValue": 103 },, ... ]
valueNumber"value": 625
xHighValueNumber"xHighValue": 3714.15
xLowValueNumber"xLowValue": 5595
xValueNumber"xValue": 9005
yHighValueNumber"yHighValue": 0.049555
yLowValueNumber"yLowValue": 0.000215
yValueNumber"yValue": 1195
Language
Authorization
Bearer
Click Try It! to start a request and see the response here!