private double calcErrorRate() {
		int error = 0;
		for (Tea tea : teaClassifier.getTrainingSet()) {
			int intResult = queryTea(tea.getTeaType(), tea.getAddition(), tea.getSugar());
			boolean result = false;
			if(intResult == 1 
					&& tea.isDrinkable()) {
				result = true;
			} else if (intResult == 0
					&& !tea.isDrinkable()) {
				result = true;
			} else {
				error++;
			}
		}
		
		return (double)error/(double)teaClassifier.getTrainingSet().size();
	}