code: public void doTrain(PrintWriter fout) {
  	if (lambda == null) {
  	    lambda = new double[feaGen.numFeatures()];
  	}
  	
  	// call this to train
  	train.doTrain(fout);
  	
  	// call this to update the feature weights
  	updateFeatures();
      }
docs: Do train.
  
  @param fout the fout