Grouping module
Classes for computing cluster groups. Note: use classes rather than nested functions because nested functions cannot be pickled (source: https://stackoverflow.com/a/12022055/17333120).
- class bipartitepandas.grouping.grouping.KMeans(**kwargs)
Bases:
object
Compute KMeans groups for data. Used for clustering.
- Parameters
**kwargs – parameters for KMeans estimation (for more information on what parameters can be used, visit https://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html); note that key ‘random_state’ will be overwritten
- class bipartitepandas.grouping.grouping.Quantiles(n_quantiles=4)
Bases:
object
Compute quantile groups for data. Used for clustering.
- Parameters
n_quantiles (int) – number of quantiles to compute for groups