relevanceai.operations.cluster.groupby#

Module Contents#

class relevanceai.operations.cluster.groupby.ClusterGroupby(credentials: relevanceai.client.helpers.Credentials, dataset_id: str, alias: str, vector_fields: Optional[list] = None, _pre_groupby=None)#

Batch API client

mean(self, field: str)#

Convenience method to call avg metric on groupby.

Parameters

field (str) – The field name to apply the mean aggregation.

class relevanceai.operations.cluster.groupby.ClusterAgg(credentials: relevanceai.client.helpers.Credentials, dataset_id: str, vector_fields: list, alias: str, groupby_call: Optional[list] = None)#

Batch API client