machine learning with weka cornelia caragea thanks to eibe frank for some of the slides
TRANSCRIPT
![Page 1: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/1.jpg)
Machine Learning with Weka
Cornelia Caragea
Thanks to Eibe Frank for some of the slides
![Page 2: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/2.jpg)
Outline
• Weka: A Machine Learning Toolkit
• Preparing Data
• Building Classifiers
• Interpreting Results
![Page 3: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/3.jpg)
WEKA: the software Machine learning/data mining software written in Java
(distributed under the GNU Public License) Used for research, education, and applications Main features:
Comprehensive set of data pre-processing tools, learning algorithms and evaluation methods
Graphical user interfaces (incl. data visualization) Environment for comparing learning algorithms
![Page 4: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/4.jpg)
WEKA: versions
There are several versions of WEKA: WEKA: “book version” compatible with
description in data mining book WEKA: “GUI version” adds graphical user
interfaces (book version is command-line only) WEKA: “development version” with lots of
improvements
![Page 5: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/5.jpg)
WEKA: resources API Documentation, Tutorials, Source code. WEKA mailing list Data Mining: Practical Machine Learning Tools and
Techniques with Java Implementations Weka-related Projects:
Weka-Parallel - parallel processing for Weka RWeka - linking R and Weka YALE - Yet Another Learning Environment Many others…
![Page 6: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/6.jpg)
Weka: web site
http://www.cs.waikato.ac.nz/ml/weka/
![Page 7: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/7.jpg)
WEKA: launching java -jar weka.jar
![Page 8: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/8.jpg)
Outline
• Weka: A Machine Learning Toolkit
• Preparing Data
• Building Classifiers
• Interpreting Results
![Page 9: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/9.jpg)
@relation heart-disease-simplified
@attribute age numeric@attribute sex { female, male}@attribute chest_pain_type { typ_angina, asympt, non_anginal, atyp_angina}@attribute cholesterol numeric@attribute exercise_induced_angina { no, yes}@attribute class { present, not_present}
@data63,male,typ_angina,233,no,not_present67,male,asympt,286,yes,present67,male,asympt,229,yes,present38,female,non_anginal,?,no,not_present...
WEKA only deals with “flat” files
![Page 10: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/10.jpg)
@relation heart-disease-simplified
@attribute age numeric@attribute sex { female, male}@attribute chest_pain_type { typ_angina, asympt, non_anginal, atyp_angina}@attribute cholesterol numeric@attribute exercise_induced_angina { no, yes}@attribute class { present, not_present}
@data63,male,typ_angina,233,no,not_present67,male,asympt,286,yes,present67,male,asympt,229,yes,present38,female,non_anginal,?,no,not_present...
WEKA only deals with “flat” files
![Page 11: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/11.jpg)
Explorer: pre-processing the data Data can be imported from a file in various formats: ARFF,
CSV, C4.5, binary Data can also be read from a URL or from an SQL database
(using JDBC) Pre-processing tools in WEKA are called “filters” WEKA contains filters for:
Discretization, normalization, resampling, attribute selection, transforming and combining attributes, …
![Page 12: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/12.jpg)
Import Datasets into WEKA
![Page 13: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/13.jpg)
![Page 14: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/14.jpg)
![Page 15: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/15.jpg)
![Page 16: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/16.jpg)
![Page 17: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/17.jpg)
![Page 18: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/18.jpg)
![Page 19: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/19.jpg)
![Page 20: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/20.jpg)
![Page 21: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/21.jpg)
![Page 22: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/22.jpg)
![Page 23: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/23.jpg)
Outline
• Weka: A Machine Learning Toolkit
• Preparing Data
• Building Classifiers
• Interpreting Results
![Page 24: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/24.jpg)
Explorer: building “classifiers” Classifiers in WEKA are models for
predicting nominal or numeric quantities Implemented learning schemes include:
Decision trees and lists, instance-based classifiers, support vector machines, multi-layer perceptrons, logistic regression, Bayes’ nets, …
“Meta”-classifiers include: Bagging, boosting, stacking, error-correcting
output codes, locally weighted learning, …
![Page 25: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/25.jpg)
![Page 26: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/26.jpg)
![Page 27: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/27.jpg)
![Page 28: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/28.jpg)
![Page 29: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/29.jpg)
![Page 30: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/30.jpg)
![Page 31: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/31.jpg)
![Page 32: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/32.jpg)
![Page 33: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/33.jpg)
![Page 34: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/34.jpg)
![Page 35: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/35.jpg)
![Page 36: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/36.jpg)
![Page 37: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/37.jpg)
![Page 38: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/38.jpg)
![Page 39: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/39.jpg)
![Page 40: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/40.jpg)
![Page 41: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/41.jpg)
Outline
• Machine Learning Software
• Preparing Data
• Building Classifiers
• Interpreting Results
![Page 42: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/42.jpg)
Understanding Output
![Page 43: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/43.jpg)
Decision Tree Output (1)
![Page 44: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/44.jpg)
Decision Tree Output (2)
![Page 45: Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides](https://reader035.vdocuments.site/reader035/viewer/2022062314/56649efd5503460f94c10bc9/html5/thumbnails/45.jpg)
To Do List
Try Decision Tree, Naïve Bayes, and Logistic Regression classifiers on a different Weka dataset
Use various parameters