OpenEnsembles is a Python library that is dedicated to ensemble methods for clustering. In this section, we will present its usage and utilize it in order to cluster some of our example datasets. In order to install the library, the pip install openensembles command must be executed in the Terminal. Although it leverages scikit-learn, its interface is different. One major difference is that data must be passed as a data class, implemented by OpenEnsembles. The constructor has two input parameters: a pandas DataFrame which contains the data, and a list which contains the feature names:
# --- SECTION 1 ---
# Libraries and data loading
import openensembles as oe
import pandas as pd
import sklearn.metrics
from sklearn.datasets import load_breast_cancer
bc = load_breast_cancer()
# --- SECTION 2 ---
# Create the data object
cluster_data = oe.data(pd.DataFrame(bc.data), bc...