Closed GoogleCodeExporter closed 9 years ago
I checked in a bit of code for the data writer. It doesn't work. I am about
to do some refactoring of the code now and wanted the code I have checked in
for backup.
Original comment by phi...@ogren.info
on 1 Feb 2012 at 4:21
I've checked in a bit of code that looks good but isn't. The basic idea is
that I collect all of the information for the attributes in the features
encoder and don't actually "encode the features" - it just returns them as they
were given. In the data writer I collect all the features and outcomes and
then when finish() is called, I create the weka.core.Instances object and then
ask it to write itself. This last call throws an IndexOutOfBoundsException and
I didn't have time to figure out why this evening. One useful resource can be
found here:
http://weka.wikispaces.com/Creating+an+ARFF+file
I've tried to model my code from this example - but I'm obviously doing
something wrong somewhere. To test my code as it is, look at
WekaDataWriterTest and remove the @Ignore annotation. It doesn't actually test
anything just tries to run a simple pipeline and generate a file.
Original comment by phi...@ogren.info
on 1 Feb 2012 at 5:19
I've committed a fix for the data writer and it seems to be working now -
though it is barely tested. Please give it a try and see if it works.
I have also found the code I wrote years ago (pre-ClearTK) that has the
necessary api calls for the classifier. If I can't find time to implement the
ClearTK Classifier wrapper, then I will post the important bits of code here.
Original comment by phi...@ogren.info
on 3 Feb 2012 at 5:41
The initial scaffolding for the data writer is there and works now. I'm going
to file separate issues for what remains.
Original comment by phi...@ogren.info
on 12 Feb 2012 at 10:04
Original comment by steven.b...@gmail.com
on 5 Aug 2012 at 8:50
Original issue reported on code.google.com by
phi...@ogren.info
on 29 Jan 2012 at 9:28