boolean correctClassifier(double[] x, String y)
	{
		double classifier = 0.0;	// A temporary variable to store the classifier label.
		//  Use implicit classifier to calculate (dot(w, phi(x)) - theta)
		for (int j = 0; j < trainingSetSize; j++)
		{
			classifier += c[j]*(Math.pow((1 + dotProduct(x, data.storage[trainingIndices[j]])), d));
		}

		// Return true if sign(classifier) == y, return false if sign(classifier) != y;
		if (classifier < 0)	{
			if (y.equals("-1.0")) {
				return true;
			}
			else {
				return false;
			}
		}
		else
		{
			if (y.equals("1.0")) {
				return true;
			}
			else {
				return false;
			}
		}
	}