I am trying to tune the HDSBCAN model with Scikit-Learn\'s GridsearchCV. I want to use purity as my scorer so I defined it like this:
from sklearn.metrics imp