Similarity

This endpoint maps the clusters with different persona based on euclidean distance, and returns probability of how similar the cluster to the chosen persona.

Request Body

NameDatatypeDescriptionMandatorySample ValueNotes
clusterInfoDictionaryInformation of each cluster: their respective count, as well as 25th, 50th, and 75th percentile values for numerical features.Yes{ "clusterInfo": [ { "clusterNumber": 0, "count": 106, "numericFeaturesInfo": { "percentile": [ { "features": [ { "name": "age", "value": 28 }, { "name": "savingsRatio", "value": 0.41228 }, { "name": "personalIncome", "value": 5172 } ], "percentileValue": 25 }, … ] }, { "clusterNumber": 1, "count": 367, "numericFeaturesInfo": { "percentile": [ { "features": [ { "name": "age", "value": 31 }, { "name": "savingsRatio", "value": 0.46241 }, { "name": "personalIncome", "value": 5038 } ], "percentileValue": 25 }, … ] }, … ]}Input structure template:{ "clusterInfo": [ { "clusterNumber": 0, "count": 106, "numericFeaturesInfo": { "percentile": [ { "features": [ … ], “percentialeValue”: 25 }, { "features": [ … ], “percentialeValue”: 50 }, { "features": [ … ], “percentialeValue”: 75 }, ] }, { … }, { … } ]}

Response Body

NameDatatypeDescriptionSample ValueNo. of decimalsNotes
clusterNumberIntegerNumber of groups to segment the dataset“clusterNumber”: 00
outputArray of DictionaryContain 4 information: distance, id, persona and probability"output": [ { "distance": 0.18727, "id": 4, "persona": "Pragmatist", "probability": 0.28509 }, { "distance": 0.19418349582716743, "id": 6, "persona": "Sophisticated Opportunist", "probability": 0.2792360861544882 } ]
distanceNumberMetric used to calculate the similarity of the cluster to persona"distance": 0.177025
idIntegerID of the clusters persona(s), valid values are: 1, 2, 3, 4, 5, 6"id": 30
personaStringDescribe the cluster’s attributes and traits based on the chosen persona"persona": "Adventurer"6 possible personaAdventurer, Skeptic, Sophisticated Opportunist, Traditionalist, Pragmatist, Hunter
probabilityNumberProbability of how similar the cluster to the chosen persona"probability": 0.587985
Language
Authentication
Bearer
Click Try It! to start a request and see the response here!