I have a csv file with some attributes. One is a date attribute with date in this form - yyyy-mm-dd hh:mm:ss
. But Weka takes it as nominal not as date type. How to fix this? Please help me with this. (I use Weka Explorer)
ARFF stands for Attribute-Relation File Format. It is an ASCII text file that describes a list of instances sharing a set of attributes. ARFF files were developed by the Machine Learning Project at the Department of Computer Science of The University of Waikato for use with the Weka machine learning software.
Numeric (Integer and Real), String, Date, and Relational are the only four datatypes provided by WEKA.
A nice reference, you can get it here: https://waikato.github.io/weka-wiki/formats_and_processing/arff_stable/
It's a simple compilation of attributes from Weka files ...
Example for time:
@RELATION Timestamps
@ATTRIBUTE timestamp DATE "yyyy-MM-dd HH:mm:ss"
@DATA
"2001-04-03 12:12:12"
"2001-05-03 12:59:55"
on opening the file select or check the invoke mark then a pop up will appear.on the date attribute put the index of the attribute which is a date and on dateFormat put the one similar from csv format then click ok the date will be detected as a date type now
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With