Weka not recognizing attribute in format "date"

1

I have a set of treatment and tests that I created with a program in Java.

In the header, it looks like this:

*@attribute data date "yyyy-MM-dd"*

And among other attributes.

An example of a row of data is:

*@data

"2014-01-02",11.27,11.44,11.03,11.18,11.07,11.07,11.12,9419,2003400,2240946600,1*

But the strange thing is that when I open the .arff file in Weka, the date is sorted bizarrely, the generated graph of the data attribute is between nothing like 138862800000 and 1419904800000 .

As a result, I can not classify this set correctly, or it throws everything as a 1 class or 2 class.

How do I arrange the date?

    
asked by anonymous 17.06.2015 / 22:09

2 answers

1

It's in the millisecond format, if you click edit it will probably show the formatting of the correct date, basically it's a float type, and this is because WEKA works with numeric values. To get around this, you must perform a data transformation using the ChangeDateFormat ( filters->unsupervised->attribute->ChangeDateFormat ) filter, choose the index of the attribute ( attributeIndex ) and the format ( dateFormat ), then click Ok and Apply. Finally, apply the NunericToNiminal filter to convert the data to the nominal type.

    
08.03.2018 / 17:12
0

Alright? Dude, weka will display yes the date timestamp on that home screen. Try rotating something on top of your dataset, and see how it behaves. For example: Run a forecasting, see that it will display the dates normally, as in the specified ARFF file. If it still does not work, update the question with the function you are trying to use.

    
29.03.2016 / 20:21