---
description: >-
  AffinityPropagation/AgglomerativeClustering/Birch/DBSCAN/KMeans/MiniBatchKMeans/MeanShift/
  OPTICS/SpectralClustering/SpectralBiclustering/SpectralCoclustering
---

# Clustering

## Common

### Input Data

|                      | Inputs                                                                                       |
| -------------------- | -------------------------------------------------------------------------------------------- |
| **\*Target Data(X)** | Data Input                                                                                   |
| **\*Model Name**     | Name of the user-defined cluster model                                                       |
| **\*Predict Output** | Name of the output data                                                                      |
| **Merge Data**       | **Predict Output** will be created with predicted labels concatenated to **Merge Data**.     |
| **x (numeric)**      | <p>User-selected columns to be X. <br>If none is selected, All columns will be selected.</p> |



![\[Task information of AffinityPropagation\]](https://3929524962-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGaxNdSdRN_L_WNiX4I%2F-MKYkiOangBVVzkhL3d_%2F-MKYl0RrMrmJQ7_Qcd_Z%2Fimage.png?alt=media\&token=ded9cac7-3064-433a-a0c5-2428b8f1b35c)

## Workflow Example

![](https://3929524962-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGaxNdSdRN_L_WNiX4I%2F-MLNdo9nyFt98RNovlT8%2F-MLNeQ4sddQY6KhXe4x4%2Fimage.png?alt=media\&token=e4da1e76-98d8-4ea1-90f1-60881f41efb2)

## Python Package

**AffinityPropagation**: [https://scikit-learn.org/stable/modules/generated/sklearn.cluster.AffinityPropagation.html#](https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.CondensedNearestNeighbour.html)

**AgglomerativeClustering**: [https://scikit-learn.org/stable/modules/generated/sklearn.cluster.](https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.CondensedNearestNeighbour.html)AgglomerativeClustering.html

**Birch**: [https://scikit-learn.org/stable/modules/generated/sklearn.cluster.](https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.CondensedNearestNeighbour.html)Birch.html

**DBSCAN**: [https://scikit-learn.org/stable/modules/generated/sklearn.cluster.](https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.CondensedNearestNeighbour.html)DBSCAN.html

**KMeans**: [https://scikit-learn.org/stable/modules/generated/sklearn.cluster.](https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.CondensedNearestNeighbour.html)KMeans.html

**MiniBatchKMean**s: [https://scikit-learn.org/stable/modules/generated/sklearn.cluster.](https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.CondensedNearestNeighbour.html)MiniBatchKMeans.html

**MeanShift**: [https://scikit-learn.org/stable/modules/generated/sklearn.cluster.](https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.CondensedNearestNeighbour.html)MeanShift.html

**OPTICS**: [https://scikit-learn.org/stable/modules/generated/sklearn.cluster.](https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.CondensedNearestNeighbour.html)OPTICS.html

**SpectralClustering**: [https://scikit-learn.org/stable/modules/generated/sklearn.cluster.](https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.CondensedNearestNeighbour.html)SpectralClustering.html

**SpectralBiclustering**: [https://scikit-learn.org/stable/modules/generated/sklearn.cluster.](https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.CondensedNearestNeighbour.html)SpectralBiclustering.html

**SpectralCoclustering**: [https://scikit-learn.org/stable/modules/generated/sklearn.cluster.](https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.CondensedNearestNeighbour.html)SpectralCoclustering.html

