public static void Train_dataSet() throws IOException {
String ReadPath = "dataset/TrainInput/train_set";//
String WritPath = "dataset/TrainInput/train_set_001";//
FileWriter writerText = new FileWriter(WritPath+"_.txt", true);
int num = 0;
int N = 100;
while(1==1){
int kk=0;
BufferedReader readerText= new BufferedReader(new FileReader(ReadPath+"_.txt"));
for(String line = readerText.readLine(); line != null; line = readerText.readLine()){
if ((kk+num)% N ==0) {
writerText.write(line+"\r\n");
}
kk++;
}
num++;
readerText.close();
if (num> N) {
break;
}
}
writerText.close();
}
点击查看更多内容
1人点赞
评论
共同学习,写下你的评论
评论加载中...
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦