java - Reusing Weka Code to Parse ARFF Files -


Has anyone done this? Is there a document to use this parser module? I have looked through the code but it is not clear how the data is actually used, after which it has been parsed.

The file has these instructions in the src \ main \ java \ weka \ core \ converters \ ArffLoader .java (which I think is where ARF parsing):

  • Typical code for batch use:
  • BufferedReader Reader = new BufferedReader (new file reader ("/ some / where / file .furf"));
  • Arfridder ARFF = New Ruffer (Reader);
  • Instance data = arff.getData ();
  • data.setClassIndex (data.numAttributes () - 1);

But what else can I do with 'data'? How do I access each row and prices in each row?

(By the way, I am new to Java. If I run this code, then there is some type what I can do in Python to see what I can do on data

(I am also open to suggestions for a simple open source parser if someone is present to use it in my project.)

I think your answer is in the example class - this Where is the place The data is stored.

I get an Episode Class API, either by finding or generating it, or simply by mistake its source. The methods of this class should allow you to manipulate the data loaded with the ARFF file.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -