Re: Unparseable date error

Peter Reutemann <[email protected]>
Newsgroups gmane.comp.ai.weka
Message-ID <CAHoQ12Lvhf87PfKQ6H2SdgmNbhzLKhHe6nBdAmZ2mDPJV5e53g@mail.gmail.com>
> > Of course, you have to parse the 1st attribute as date with the
> > following format (as OP mentioned):
> > yyyy-MM-dd HH:mm
> >
>
> You did this and it was recognized as a Date? The blank still sort of concerns me. I remember mention in the past that the CSV conversions sometimes had problems.

CSV splits on comma, blanks are usually not a problem. And even Weka's
quirky CSVLoader handles that just fine.

> I might still suggest getting the date into the format indicated in the arff spec yourself might be an idea. I think it mentioned any format that would work with java SimpleDateFormat.
>
> But I usually preprocess csv files in R and convert to arff with RWeka. I haven’t done that a lot for dates.

I don't normally use Weka for that either, but ADAMS instead.

> I’m not sure what the dateAttributes in the GUI actually means.

That's the range of attributes to treat as date attributes.

https://weka.sourceforge.io/doc.dev/weka/core/converters/CSVLoader.html

Cheers, Peter
-- 
Peter Reutemann
Dept. of Computer Science
University of Waikato, NZ
+64 (7) 858-5174 (office)
+64 (7) 577-5304 (home office)
http://www.cms.waikato.ac.nz/~fracpete/
http://www.data-mining.co.nz/
_______________________________________________
Wekalist mailing list -- [email protected]
Send posts to [email protected]
To unsubscribe send an email to [email protected]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.