code: private File saveCommandLine(String outputDir, double c, double[] weight) throws IOException
  	{
  		logger.info("save the command line");
  
  		//
  		DecimalFormat format = new DecimalFormat("0.000");
  
  		File tmp = new File(outputDir + "command-line");
  
  		PrintWriter pw = new PrintWriter(new FileWriter(tmp));
  
  		pw.print("svm-train -t 0 -c " + c);
  		for (int i=0;i<weight.length;i++)
  		{
  			if (weight[i] != 0)
  				pw.print(" -w" + i + " " + format.format(weight[i]));
  		} // for i
  
  		pw.print("\n");
  		pw.flush();
  		pw.close();
  
  		return tmp;
  	}
docs: save the embedded training set