@Test
public void testMSCanopyClassification() {
List<Model<VectorWritable>> models = new ArrayList<Model<VectorWritable>>();
DistanceMeasure measure = new ManhattanDistanceMeasure();
models.add(new MeanShiftCanopy(new DenseVector(2).assign(1), 0, measure));
models.add(new MeanShiftCanopy(new DenseVector(2), 1, measure));
models.add(new MeanShiftCanopy(new DenseVector(2).assign(-1), 2, measure));
AbstractVectorClassifier classifier = new VectorModelClassifier(models);
try {
classifier.classify(new DenseVector(2));
fail("Expected NotImplementedException");
} catch (NotImplementedException e) {