@Override
	public Label predict(Instance instance) {
		int i = 0;
		double y = 0.0;
		for (Instance ins : instances) {
//			System.out.println("i is:" + i);
			y += dualParam[i] * labels[i] * kernel.value(ins, instance);
			i++;
		}
		if (y > 0) {
			return new ClassificationLabel(1);
		}
		return new ClassificationLabel(0);
	}