an introduction to weka with demos - university of...

18
An Introduction to Weka with Demos Tomasz Oliwa Ph.D., Computer Science, The University of Georgia, USA Dipl.-Inform., University of Koblenz-Landau, Germany . . Lecture in CSCI/ARTI 8950 Machine Learning Slides at: http://www.cs.uga.edu/ ~ tomasz/weka2013fall/ September 5, 2013 Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 1 / 18

Upload: others

Post on 25-May-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

An Introduction to Weka with Demos

Tomasz Oliwa

Ph.D., Computer Science, The University of Georgia, USA

Dipl.-Inform., University of Koblenz-Landau, Germany..

Lecture in CSCI/ARTI 8950 Machine LearningSlides at: http://www.cs.uga.edu/~tomasz/weka2013fall/

September 5, 2013

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 1 / 18

Page 2: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Weka Software

The Weka machine learning/data mining suite:

Rich collection of preprocessing, (un)/supervisedlearning and evaluation algorithms

Accessible GUI

Java, Free software (GPL):http://www.cs.waikato.ac.nz/~ml/weka/

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 2 / 18

Page 3: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Attribute-Relation File Format (ARFF)

@relation weather

@attribute outlook sunny, overcast, rainy

@attribute temperature real

@attribute humidity real

@attribute windy TRUE, FALSE

@attribute play yes, no

@data

sunny,85,85,FALSE,no

sunny,80,90,TRUE,no

overcast,83,86,FALSE,yes

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 3 / 18

Page 4: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Weka Modes1 Explorer: Direct application and visualizations2 Experimenter: Run & compare algorithms3 Knowledge Flow: Visual composition of workflow4 Simple CLI: Command line interface5 Source code: Weka classes in Java code

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 4 / 18

Page 5: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Weka GUI Chooser

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 5 / 18

Page 6: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Preprocessing

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 6 / 18

Page 7: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Preprocessing - Load Data

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 7 / 18

Page 8: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Preprocessing - Data Overview

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 8 / 18

Page 9: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Preprocessing - Visualize All

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 9 / 18

Page 10: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Classification

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 10 / 18

Page 11: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Classification Results

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 11 / 18

Page 12: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Classification Results - DT

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 12 / 18

Page 13: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Clustering Results

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 13 / 18

Page 14: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Attribute Selection Results

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 14 / 18

Page 15: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Demos

Demo time:

Preprocessing

Classification

Regression

Clustering

Feature Selection

Experimenter

Source code import

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 15 / 18

Page 16: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Take Home Message

Weka is a powerful machine learning suite:

Explorer: Intuitive suite with result visualizations

Experimenter: Batch perform statistical tests onresults

Source code: Directly import Weka classes in yourprograms

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 16 / 18

Page 17: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

Questions

Thanks for your attention!

Do you have any questions?

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 17 / 18

Page 18: An Introduction to Weka with Demos - University of Georgiacobweb.cs.uga.edu/~khaled/MLcourse/weka2013slides.pdf · Weka Modes 1 Explorer: Direct application and visualizations 2 Experimenter:

References and Tutorials

Weka: http://www.cs.waikato.ac.nz/~ml/weka/

Weka Wiki: http://weka.wikispaces.com/

IBM Weka Tutorials:

Introduction and Regression:http://www.ibm.com/developerworks/opensource/

library/os-weka1/index.html

Classification and clustering:http://www.ibm.com/developerworks/opensource/

library/os-weka2/index.html

Nearest Neighbor and server-side library:http://www.ibm.com/developerworks/opensource/

library/os-weka3/index.html

Tomasz Oliwa ([email protected]) Introduction to Weka and Demos September 5, 2013 18 / 18