post https://api-lib.bambu.life/api/autoMl/v2/featuresVisualization
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
Name | DataType | Description | Mandatory | Sample Value | List of possible values | Notes |
---|---|---|---|---|---|---|
clientId | String | It is meant for identification purpose as information are stored under unique id value | Yes | |||
featuresOfInterest | Array of strings | Merging 2 numerical features to find and understand the relationship between 2 selected features | Yes. | ["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 features | The 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
Name | Datatype | Description | Sample Value | No. of decimals | Notes |
---|---|---|---|---|---|
correlation | Array of dictionaries | Contains 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, feature2 | String | Features in featuresOfInterest input | "feature1": “age”"feature2": “personalIncome” | ||
value | Number | correlation between the 2 features | 5 | ||
hist2d | Array of dictionaries | Used 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 },, ... ] | ||
value | Number | "value": 62 | 5 | ||
xHighValue | Number | "xHighValue": 3714.1 | 5 | ||
xLowValue | Number | "xLowValue": 559 | 5 | ||
xValue | Number | "xValue": 900 | 5 | ||
yHighValue | Number | "yHighValue": 0.04955 | 5 | ||
yLowValue | Number | "yLowValue": 0.00021 | 5 | ||
yValue | Number | "yValue": 119 | 5 |