explainby(data: DataFrame, by: Union[str, Sequence[str]], target: Union[str, Mapping[str]], method: Union[str, 'domino.Slicer'] = 'MixtureSlicer', encoder: str = 'clip', modality: str = None, scores: bool = False, use_cache: bool = True, output_col: str = None, **kwargs) ExplainBy[source]

Perform a clusterby operation on a DataFrame.

  • data (DataFrame) – The dataframe to cluster.

  • by (Union[str, Sequence[str]]) – The column(s) to cluster by. These columns will be embedded using the encoder and the resulting embedding will be used.

  • method (Union[str, domino.Slicer]) – The clustering method to use.

  • encoder (str) – The encoder to use for the embedding. Defaults to clip.

  • modality (Union[str, Sequence[str])) – The modality to of the

  • **kwargs – Additional keyword arguments to pass to the clustering method.


A ExplainBy object.

Return type