Re: URGENT: Unable to load csv files in weka
Peter Reutemann <[email protected]>
| Newsgroups | gmane.comp.ai.weka |
|---|---|
| Message-ID | <CAHoQ12J18kNOHGCg1e4tRYxEoET0QMWwnDzTy_iX4GRhkHcQLQ@mail.gmail.com> |
I have been trying to load the csv files to weka for my assignment. I tried
to convert the csv files to arff using the SimpleCLI feature in weka. I am
getting the below error :
>
> [image: image.png]
> I have tried different methods, even set the environment variables but
> still getting the error can you please let me know what I have done wrong
> here.
>
>
You are saying that you are trying to load a CSV (comma-separated values)
file, but the screenshot shows errors when using the TextDirectoryLoader.
For loading CSV files, you should use the CSVLoader converter instead:
https://weka.sourceforge.io/doc.dev/weka/core/converters/CSVLoader.html
Also, it appears that you are on Windows, but you sometimes seem to be
using Linux paths ("/home/...") for some reason?
BTW You can load CSV files directly in the Weka Explorer, just switch the
file type from ARFF to CSV. After loading it, you can save it as ARFF.
Cheers, Peter
--
Peter Reutemann
Dept. of Computer Science
University of Waikato, NZ
+64 (7) 577-5304
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
image.png
(image/png, 141.4 KB) - not displayed