Re: help
Peter Reutemann <[email protected]>
| Newsgroups | gmane.comp.ai.weka |
|---|---|
| Message-ID | <CAHoQ12LhiV91+CRUC8Apb28hBqfQe_1FB97Ezw5pghhZZEeg3Q@mail.gmail.com> |
> Could I ask please about how to plot a line graph to show the relation between the number of features and classification accuracy in the experimenter section for NB, KNN, SVM, and DT?
If you output the Experimenter results as CSV, then you can simply use
LibreOffice Calc, MS Excel or your preferred spreadsheet/plotting tool
to visualize the data.
Here's what I've done:
- created new (simple) experiment
- added the following UCI datasets:
anneal, anneal.orig, iris
- added the following classifiers:
ZeroR, J48
- ran the experiment
Analyzing the experiment gave me this (with the default plain text format):
Dataset (1) rules.Ze | (2) trees
--------------------------------------------------
anneal.ORIG (100) 76.17 | 92.35 v
anneal (100) 76.17 | 98.57 v
iris (100) 33.33 | 94.73 v
--------------------------------------------------
(v/ /*) | (3/0/0)
Key:
(1) rules.ZeroR '' 48055541465867954
(2) trees.J48 '-C 0.25 -M 2' -217733168393644444
I then clicked on the "Output format" button and switched to CSV.
Re-analyze the experiment gave me this:
Dataset,[1],[2],''
anneal.ORIG,76.17,92.35,v
anneal,76.17,98.57,v
iris,33.33,94.73,v
'[v/ /*]','','',[3/0/0]
Key,
[1],'rules.ZeroR \'\' 48055541465867954'
[2],'trees.J48 \'-C 0.25 -M 2\' -217733168393644444
I pasted the first half in LibreOffice Calc and then generated a line
plot (column based, using the first row as labels for X axis).
Attached a screenshot of the plot.
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
experimenter_plot.png
(image/png, 52.2 KB) - not displayed