If you want to use the code then please reference the following paper:
M. Z. Jan and B. Verma, "A Novel Diversity Measure and Classifier Selection Approach for Generating Ensemble Classifiers," in IEEE Access, vol. 7, pp. 156360-156373, 2019, doi: 10.1109/ACCESS.2019.2949059.