public int[] predict(Model model, double x[][]) {
		int y[] = new int[x.length];
		for (int i = 0; i < x.length; i++) {
			int len = model.getY().length;
			double sum = 0;
			for (int j = 0; j < len; j++) {
				sum += model.getY()[j] * model.getA()[j] * k(j, i);
			}
			sum += model.getB();
			if (sum > 0)
				y[i] = 1;
			else if (sum < 0)
				y[i] = -1;
			else
				y[i] = 0;//y[i]=0,表示处于超平面上;
		}
		return y;
	}