Re: Confusion Matrix in Weka Experiments
Peter Reutemann <[email protected]>
| Newsgroups | gmane.comp.ai.weka |
|---|---|
| Message-ID | <CAHoQ12KEM2rUAEji6tgGvbzqL9NOO49ogdhX04_Zy2W1fxKBJQ@mail.gmail.com> |
> thank you very much. I guess my previous mail did not go via outlook. I am new in programming especially in Java. Therefore I found python weka wrapper easier for me. However, is there a way to compare datasets rather than classifiers. I have like 3 classifiers and 3 databases (my code is below).
There is now:
tester = Tester(classname="weka.experiment.PairedCorrectedTTester")
tester.swap_rows_and_cols = True
tester.resultmatrix = matrix
> Also is there a way to implement (ClassifierSplitEvaluator.setPredTargetColumn(boolean)) in python wrapper ?
There is now:
exp = SimpleCrossValidationExperiment(
classification=True,
runs=10,
folds=10,
datasets=datasets,
classifiers=classifiers,
result=result,
pred_target_column=True)
Caution: this will make the result files extremely large!
Since I'm not planning on making a release of pww3 any time soon, you
will need to install the library from source (heading "Github"):
https://fracpete.github.io/python-weka-wrapper3/install.html#github
BTW A while ago, I wrote the "simple-confusion-matrix" library which
might helpful to you when generating your own confusion matrices:
https://github.com/waikato-datamining/simple-confusion-matrix
Cheers, Peter
--
Peter Reutemann
Dept. of Computer Science
University of Waikato, NZ
+64 (7) 858-5174 (office)
+64 (7) 577-5304 (home office)
https://www.cs.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