java - Add comment to an ARFF file -


this first question in forum.... i'm making adata-mining application in java weka api. make first pre-processing stage , when save arff file add couple of lines (as comments) specifing preprocessing task have done file... problem don't know how add comments arff file java weka api. save file use class arffsaver this...

    try {         arffsaver saver = new arffsaver();         saver.setinstances(datapost);         saver.setfile(arfffile);         saver.writebatch();         return true;     } catch (ioexception ex) {         logger.getlogger(preprocesamiento.class.getname()).log(level.severe, null, ex);         return false;     } 

i greatfull if give idea... thanks!

you should avoid writting comments on .arff file, more when writting java. these files "parser-sensitive". weka api create these files restrictive particular reason.

even though, can add comments manually % symbol. said, wouldn't recommend writting more instances, attributes , values .arff file. ;-)


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -