if (att_counter != classIndex){
// Remove all attributes but the current attribute and the class variable
rm.setAttributeIndicesArray(new int[] {att_counter,classIndex});
rm.setInputFormat(data);
setOf2 = rm.useFilter(data, rm);
bnCopy = Classifier.makeCopy(bn);
ev = new Evaluation(setOf2);