// TODO - add fuller set
@Test
    public void testGetVotesForInstance() {
        System.out.println("getVotesForInstance");
        FeS2 classifier = new FeS2();
        Instance x = trainingSet.instance(0);
        classifier.subspaceStrategyOption.setChosenIndex(0);
        classifier.distanceStrategyOption.setChosenIndex(2);
        classifier.initialClusterWeightOption.setValue(0.1);
        classifier.learningRateAlphaOption.setValue(0.95);
        classifier.minimumClusterSizeOption.setValue(3);
        classifier.outlierDefinitionStrategyOption.setChosenIndex(0);
       // classifier.pruneThresholdOption.setValue(0.00001);
        classifier.updateStrategyOption.setChosenIndex(1);
        classifier.trainOnInstance(trainingSet.instance(0));
        double[] result = classifier.getVotesForInstance(x);
        int h = (int) result[weka.core.Utils.maxIndex(result)];
        int y = 1;
        assertEquals(y,h);
        // TODO - add fuller set
    }
int y = 1;
assertEquals(y,h);
// TODO - add fuller set
}
classifier.learningRateAlphaOption.setValue(0.95);
classifier.minimumClusterSizeOption.setValue(3);
classifier.outlierDefinitionStrategyOption.setChosenIndex(0);
// classifier.pruneThresholdOption.setValue(0.00001);
classifier.updateStrategyOption.setChosenIndex(1);
classifier.trainOnInstance(trainingSet.instance(0));
double[] result = classifier.getVotesForInstance(x);
int h = (int) result[weka.core.Utils.maxIndex(result)];
int y = 1;
assertEquals(y,h);
// TODO - add fuller set
}
@Test
public void testGetVotesForInstance() {
System.out.println("getVotesForInstance");
FeS2 classifier = new FeS2();
Instance x = trainingSet.instance(0);
classifier.subspaceStrategyOption.setChosenIndex(0);
classifier.distanceStrategyOption.setChosenIndex(2);
classifier.initialClusterWeightOption.setValue(0.1);
classifier.learningRateAlphaOption.setValue(0.95);
classifier.minimumClusterSizeOption.setValue(3);
classifier.outlierDefinitionStrategyOption.setChosenIndex(0);
// classifier.pruneThresholdOption.setValue(0.00001);
classifier.updateStrategyOption.setChosenIndex(1);
classifier.trainOnInstance(trainingSet.instance(0));
double[] result = classifier.getVotesForInstance(x);
int h = (int) result[weka.core.Utils.maxIndex(result)];
int y = 1;
assertEquals(y,h);
// TODO - add fuller set
}