code: public void doInference(List data) {
  	if (lambda == null) {
  	    lambda = new double[feaGen.numFeatures()];
  	    
  	    // reading feature weights from the feature list
  	    for (int i = 0; i < feaGen.features.size(); i++) {
  		Feature f = (Feature)feaGen.features.get(i);
  		lambda[f.idx] = f.wgt;    
  	    }	    
  	}
  	
  	inference.doInference(data);	
      }
docs: Do inference.
  
  @param data the data