System.out.print("\nKnn\n");
System.out.print("\nReading data......\n");
long time_mark=System.currentTimeMillis();
InstanceSet instset = new InstanceSet(pp,af);
Reader reader = new MyDocumentReader(trainDataPath,"gbk");
instset.loadThruStagePipes(reader);
System.out.print("..Reading data complete "+(System.currentTimeMillis()-time_mark)+"(ms)\n");
//将数据集分为训练是和测试集
System.out.print("Sspliting....");
float percent = 0.9f;