public void train(Matrix features, Matrix labels) throws Exception {
		m_labels = new double[labels.cols()];
		for(int i = 0; i < labels.cols(); i++) {
			if(labels.valueCount(i) == 0)
				m_labels[i] = labels.columnMean(i); // continuous
			else
				m_labels[i] = labels.mostCommonValue(i); // nominal
		}
	}