Machine Learning with WEKA - Yohan Chin. WEKA ? Waikato Environment for Knowledge Analysis A Collection of Machine Learning algorithms for data tasks.

Slides:



Advertisements
Similar presentations
Florida International University COP 4770 Introduction of Weka.
Advertisements

Weka & Rapid Miner Tutorial By Chibuike Muoh. WEKA:: Introduction A collection of open source ML algorithms – pre-processing – classifiers – clustering.
Department of Computer Science, University of Waikato, New Zealand Eibe Frank WEKA: A Machine Learning Toolkit The Explorer Classification and Regression.
WEKA (sumber: Machine Learning with WEKA). What is WEKA? Weka is a collection of machine learning algorithms for data mining tasks. Weka contains.
UNIVERSITY OF JYVÄSKYLÄ DEPARTMENT OF MATHEMATICAL INFORMATION TECHNOLOGY Tutorial 1: Introduction to WEKA and YALETIES443: Introduction to DM 1 Tutorial.
WEKA Evaluation of WEKA Waikato Environment for Knowledge Analysis Presented By: Manoj Wartikar & Sameer Sagade.
Introduction to Weka and NetDraw
Department of Computer Science, University of Waikato, New Zealand Eibe Frank WEKA: A Machine Learning Toolkit The Explorer Classification and Regression.
March 25, 2004Columbia University1 Machine Learning with Weka Lokesh S. Shrestha.
An Extended Introduction to WEKA. Data Mining Process.
Introduction to WEKA Aaron 2/13/2009. Contents Introduction to weka Download and install weka Basic use of weka Weka API Survey.
Machine Learning with WEKA. WEKA: the bird Copyright: Martin Kramer
1 How to use Weka How to use Weka. 2 WEKA: the software Waikato Environment for Knowledge Analysis Collection of state-of-the-art machine learning algorithms.
CSCI 347 / CS 4206: Data Mining Module 05: WEKA Topic 04: Data Preparation Tools.
An Exercise in Machine Learning
CSCI 347 / CS 4206: Data Mining Module 05: WEKA Topic 01: WEKA Navigation.
 The Weka The Weka is an well known bird of New Zealand..  W(aikato) E(nvironment) for K(nowlegde) A(nalysis)  Developed by the University of Waikato.
Contributed by Yizhou Sun 2008 An Introduction to WEKA.
Data Mining – Output: Knowledge Representation
WEKA and Machine Learning Algorithms. Algorithm Types Classification (supervised) Given -> A set of classified examples “instances” Produce -> A way of.
Appendix: The WEKA Data Mining Software
In part from: Yizhou Sun 2008 An Introduction to WEKA Explorer.
Department of Computer Science, University of Waikato, New Zealand Bernhard Pfahringer (based on material by Eibe Frank, Mark Hall, and Peter Reutemann)
Machine Learning for Language Technology Introduction to Weka: Arff format and Preprocessing.
Hands-on predictive models and machine learning for software Foutse Khomh, Queen’s University Segla Kpodjedo, École Polytechnique de Montreal PASED - Canadian.
Department of Computer Science, University of Waikato, New Zealand Eibe Frank WEKA: A Machine Learning Toolkit The Explorer Classification and Regression.
Machine Learning with Weka Cornelia Caragea Thanks to Eibe Frank for some of the slides.
The CRISP Data Mining Process. August 28, 2004Data Mining2 The Data Mining Process Business understanding Data evaluation Data preparation Modeling Evaluation.
For ITCS 6265/8265 Fall 2009 TA: Fei Xu UNC Charlotte.
1 1 Slide Using Weka. 2 2 Slide Data Mining Using Weka n What’s Data Mining? We are overwhelmed with data We are overwhelmed with data Data mining is.
Department of Computer Science, University of Waikato, New Zealand Eibe Frank WEKA: A Machine Learning Toolkit The Explorer Classification and Regression.
BOĞAZİÇİ UNIVERSITY DEPARTMENT OF MANAGEMENT INFORMATION SYSTEMS MATLAB AS A DATA MINING ENVIRONMENT.
Weka – A Machine Learning Toolkit October 2, 2008 Keum-Sung Hwang.
Associations and Frequent Item Analysis. 2 Outline  Transactions  Frequent itemsets  Subset Property  Association rules  Applications.
Introduction to Weka Xingquan (Hill) Zhu Slides copied from Jeffrey Junfeng Pan (UST)
 A collection of open source ML algorithms ◦ pre-processing ◦ classifiers ◦ clustering ◦ association rule  Created by researchers at the University.
An Exercise in Machine Learning
***Classification Model*** Hosam Al-Samarraie, PhD. CITM-USM.
Weka Tutorial. WEKA:: Introduction A collection of open source ML algorithms – pre-processing – classifiers – clustering – association rule Created by.
Weka. Weka A Java-based machine vlearning tool Implements numerous classifiers and other ML algorithms Uses a common.
Weka Overview Sagar Samtani and Hsinchun Chen Spring 2016, MIS 496A
Copyright  2004 limsoon wong Using WEKA for Classification (without feature selection)
In part from: Yizhou Sun 2008 An Introduction to WEKA Explorer.
@relation age sex { female, chest_pain_type { typ_angina, asympt, non_anginal,
WEKA: A Practical Machine Learning Tool WEKA : A Practical Machine Learning Tool.
Department of Computer Science, University of Waikato, New Zealand Eibe Frank WEKA: A Machine Learning Toolkit The Explorer Classification and Regression.
An Introduction to WEKA
Machine Learning: Decision Trees in AIMA and WEKA
An Introduction to WEKA
Machine Learning: Decision Trees in AIMA and WEKA
Machine Learning with WEKA
Waikato Environment for Knowledge Analysis
WEKA.
Sampath Jayarathna Cal Poly Pomona
An Introduction to WEKA
Machine Learning with WEKA
Machine Learning with WEKA
Weka Package Weka package is open source data mining software written in Java. Weka can be applied to your dataset from the GUI, the command line or called.
Machine Learning with Weka
An Introduction to WEKA
Tutorial for WEKA Heejun Kim June 19, 2018.
Machine Learning with Weka
Machine Learning with WEKA
Lecture 10 – Introduction to Weka
Copyright: Martin Kramer
Machine Learning: Decision Trees in AIMA and WEKA
Data Mining CSCI 307, Spring 2019 Lecture 7
Data Mining CSCI 307, Spring 2019 Lecture 8
Presentation transcript:

Machine Learning with WEKA - Yohan Chin

WEKA ? Waikato Environment for Knowledge Analysis A Collection of Machine Learning algorithms for data tasks. WEKA contains tools for data – pre-processing, classification, regression, clustering association rules.

Start with WEKA 1)Get the WEKA program on the web 2)set the CLASSPATH system environment variables; variable name: CLASSPATH variable value: (e.g C:\Program Files\Weka-3-4)

Prepare the Data Set Need to convert ARFF format 1.Data can be load to excel spreadsheet 2.Save this data in comma-separated format (CSV) 3.Load this file into Micro Word 4.Make beginning of the ARFF file. relation ( title) attribute (data type) data

Load into Excel

Save as the CSV file format

Load into MS word

Make other parts..

WEKA only deals with ARFF age sex { female, chest_pain_type { typ_angina, asympt, non_anginal, cholesterol exercise_induced_angina { no, class { present, 63,male,typ_angina,233,no,not_present 67,male,asympt,286,yes,present 67,male,asympt,229,yes,present 38,female,non_anginal,?,no,not_present

Preprocessing the data Integration from different sources The Data must be assembled, integrated, and cleaned up Pre-processing tools in WEKA are called “filters” WEKA contains filters for:  Discretization, normalization, resampling, attribute selection, transforming and combining attributes, …

With numeric data (Iris.arff)

Select Discretize filter

Changed to nominal data

Filtering using CLI (Iris.data) -i source –o object file

Association (weather.nominal.arff)

Association -result Best rules found: 1. humidity=normal windy=FALSE 4 ==> play=yes 4 conf:(1) 2. temperature=cool 4 ==> humidity=normal 4 conf:(1) 3. outlook=overcast 4 ==> play=yes 4 conf:(1) 4. humidity=normal 7 ==> play=yes 6 conf:(0.86) 5. play=no 5 ==> humidity=high 4 conf:(0.8) 6. windy=FALSE 8 ==> play=yes 6 conf:(0.75) 7. play=yes 9 ==> windy=FALSE 6 conf:(0.67) 8. play=yes 9 ==> humidity=normal 6 conf:(0.67) 9. humidity=normal play=yes 6 ==> windy=FALSE 4 conf:(0.67) 10. windy=FALSE play=yes 6 ==> humidity=normal 4 conf:(0.67

Classification – voting records

Classification - zeroR

Classification -oneR

Classification –J48

Decision Tree from J48 result

Cluster (Iris.ARFF data)

Cluster – k-means

K- means: numClusters to 3

K – means clustered to 3 group

Visualization of clustering

Cluseter – CobWeb

Experiment – add DataSet

Experiment - destination

Experiment – classifying algorithm

Experiment- multiple scheme

Experiment -run

Experiment - analysis

Experiment – better or worse Analysing: Percent_correct Datasets: 1 Resultsets: 3 Confidence: 0.05 (two tailed) Date: 오후 3:2 Dataset (1) rules.On | (2) trees (3) rules iris (10) | * (v/ /*) | (0/1/0) (0/0/1) Skipped: Key: (1) rules.OneR '-B 6' (2) trees.J48 '-C M 2' (3) rules.ZeroR ''

Experiment - summary Analysing: Percent_correct Datasets: 1 Resultsets: 3 Confidence: 0.05 (two tailed) Date: 오후 3:20 a b c (No. of datasets where [col] >> [row]) | a = rules.OneR '-B 6' | b = trees.J48 '-C M 2' | c = rules.ZeroR ''

Experiment - ranking Analysing: Percent_correct Datasets: 1 Resultsets: 3 Confidence: 0.05 (two tailed) Date: 오후 3:23 >- < Resultset trees.J48 '-C M 2' rules.OneR '-B 6' rules.ZeroR ''