A designated cohort is assigned to a user depending of the features that you have defined to characterize your users. Once you have selected features, you need to format them in a JSON object.
For instance, let's imagine that you want to create cohorts based on os_family, form_factor & code_geo. The first 2 features are defined on UserAgentInfo (nested in UserAgent) and the 3rd one on UserEvent object. You will then define the following JSON:
Contact your CSM to learn more about available types and how to build an efficient cohort features system.
A ML function requires a query to fetch data used in its configuration. In the case of the simhash ML function, it requires the appropriate query to fetch fields used as features and specified in the JSON Features.
Following our previous example, the graphQL query will be :