Department of Computer Science, University of Waikato, New Zealand Geoff Holmes WEKA project and team Data Mining process Data format Preprocessing Classification.

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.
Data Mining Practical Machine Learning Tools and Techniques Slides for Chapter 3 of Data Mining by I. H. Witten, E. Frank and M. A. Hall.
CSCI 347 / CS 4206: Data Mining Module 02: Input Topic 03: Attribute Characteristics.
Department of Computer Science, University of Waikato, New Zealand Eibe Frank WEKA: A Machine Learning Toolkit The Explorer Classification and Regression.
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.
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.
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.
Department of Computer Science, University of Waikato, New Zealand Geoff Holmes WEKA project and team Data Mining process Data format Preprocessing Classification.
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)
1 Data preparation: Selection, Preprocessing, and Transformation Literature: Literature: I.H. Witten and E. Frank, Data Mining, chapter 2 and chapter 7.
Weka: a useful tool in data mining and machine learning Team 5 Noha Elsherbiny, Huijun Xiong, and Bhanu Peddi.
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.
Weka: Experimenter and Knowledge Flow interfaces Neil Mac Parthaláin
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.
W E K A Waikato Environment for Knowledge Analysis Branko Kavšek MPŠ Jožef StefanNovember 2005.
Artificial Neural Network Building Using WEKA Software
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.
 Classification 1. 2  Task: Given a set of pre-classified examples, build a model or classifier to classify new cases.  Supervised learning: classes.
Data Mining Practical Machine Learning Tools and Techniques Chapter 4: Algorithms: The Basic Methods Sections 4.1 Inferring Rudimentary Rules Rodney Nielsen.
Weka – A Machine Learning Toolkit October 2, 2008 Keum-Sung Hwang.
Introduction to Weka Xingquan (Hill) Zhu Slides copied from Jeffrey Junfeng Pan (UST)
W E K A Waikato Environment for Knowledge Aquisition.
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.
A new clustering tool of Data Mining RAPID MINER.
In part from: Yizhou Sun 2008 An Introduction to WEKA Explorer.
DATA MINING TECHNIQUES (DECISION TREES ) Presented by: Shweta Ghate MIT College OF Engineering.
@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.
Data Mining Practical Machine Learning Tools and Techniques
An Introduction to WEKA
Prepared by: Mahmoud Rafeek Al-Farra
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
Machine Learning Techniques for Data Mining
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
A task of induction to find patterns
Data Mining CSCI 307, Spring 2019 Lecture 7
Data Mining CSCI 307, Spring 2019 Lecture 6
Data Mining CSCI 307, Spring 2019 Lecture 8
Presentation transcript:

Department of Computer Science, University of Waikato, New Zealand Geoff Holmes WEKA project and team Data Mining process Data format Preprocessing Classification Regression Clustering Associations Attribute selection Visualization Performing experiments New Directions Conclusion Data Mining using WEKA

iEMSs Summit on Environmental Modelling and Software 2 Waikato Environment for Knowledge Analysis Copyright: Martin Kramer PGSF/NERF project been going since New Java software development from 98 on. Project goals: Develop a state-of-the-art workbench of data mining tools Explore fielded applications Develop new fundamental methods

iEMSs Summit on Environmental Modelling and Software 3 WEKA TEAM Geoff Holmes, Ian Witten, Bernhard Pfahringer, Eibe Frank, Mark Hall, Yong Wang, Remco Bouckaert, Peter Reutemann, Gabi Schmidberger, Dale Fletcher, Tony Smith, Mike Mayo and Richard Kirkby Members on editorial board of MLJ, programme committees for ICML, ECML, KDD, …. Authors of a widely adopted data mining textbook.

iEMSs Summit on Environmental Modelling and Software 4 Data mining process SelectPreprocessTransform MineAnalyze & Assimilate Selected data Preprocessed data Transformed data Extracted information Assimilated knowledge

iEMSs Summit on Environmental Modelling and Software 5 Data mining software Commercial packages (Cost ? X 10 6 dollars)  IBM Intelligent Miner  SAS Enterprise Miner  Clementine WEKA (Free = GPL licence!)  Java => Multi-platform  Open source – means you get source code

iEMSs Summit on Environmental Modelling and Software 6 Data format Rectangular table format (flat file) very common  Most techniques exist to deal with table format Row=instance=individual=data point=case=record Column=attribute=field=variable=characteristic=dimension OutlookTemperatureHumidityWindyPlay SunnyHotHighFalseNo SunnyHotHighTrueNo OvercastHotHighFalseYes RainyMildNormalFalseYes ……………

iEMSs Summit on Environmental Modelling and Software 7 Data complications Volume of data – sampling; essential attributes Missing data Inaccurate data Data filtering Data aggregation

iEMSs Summit on Environmental Modelling and Software 8 WEKA’s ARFF format % % ARFF file for weather data with some numeric features outlook {sunny, overcast, temperature humidity windy {true, play? {yes, sunny, 85, 85, false, no sunny, 80, 90, true, no overcast, 83, 86, false, yes...

iEMSs Summit on Environmental Modelling and Software 9 Attribute types ARFF supports numeric and nominal attributes Interpretation depends on learning scheme  Numeric attributes are interpreted as - ordinal scales if less-than and greater-than are used - ratio scales if distance calculations are performed (normalization/standardization may be required)  Instance-based schemes define distance between nominal values (0 if values are equal, 1 otherwise) Integers: nominal, ordinal, or ratio scale?

iEMSs Summit on Environmental Modelling and Software 10 Missing values Frequently indicated by out-of-range entries  Types: unknown, unrecorded, irrelevant  Reasons: malfunctioning equipment, changes in experimental design, collation of different datasets, measurement not possible Missing value may have significance in itself (e.g. missing test in a medical examination)  Most schemes assume that is not the case  “missing” may need to be coded as additional value

iEMSs Summit on Environmental Modelling and Software 11 Getting to know the data Simple visualization tools are very useful for identifying problems  Nominal attributes: histograms (Distribution consistent with background knowledge?)  Numeric attributes: graphs (Any obvious outliers?) 2-D and 3-D visualizations show dependencies Domain experts need to be consulted Too much data to inspect? Take a sample!

iEMSs Summit on Environmental Modelling and Software 12 Learning and using a model Learning  Learning algorithm takes instances of concept as input  Produces a structural description (model) as output Input: concept to learn Learning algorithm Model Prediction  Model takes new instance as input  Outputs prediction Input Model Prediction

iEMSs Summit on Environmental Modelling and Software 13 Structural descriptions (models) Some models are better than others  Accuracy  Understandability Models range from “easy to understand” to virtually incomprehensible  Decision trees  Rule induction  Regression models  Neural networks Easier Harder

iEMSs Summit on Environmental Modelling and Software 14 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 SQL databases using JDBC Pre-processing tools in WEKA are called “filters” WEKA contains filters for:  Discretization, normalization, resampling, attribute selection, attribute combination, …

iEMSs Summit on Environmental Modelling and Software 15 Explorer: pre-processing

iEMSs Summit on Environmental Modelling and Software 16 Building classification models “Classifiers” in WEKA are models for predicting nominal or numeric quantities Implemented 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, data cleansing, …

iEMSs Summit on Environmental Modelling and Software 17 Explorer: classification

iEMSs Summit on Environmental Modelling and Software 18 Explorer: classification

iEMSs Summit on Environmental Modelling and Software 19 Explorer: classification

iEMSs Summit on Environmental Modelling and Software 20 Explorer: classification

iEMSs Summit on Environmental Modelling and Software 21 Explorer: classification

iEMSs Summit on Environmental Modelling and Software 22 Explorer: classification

iEMSs Summit on Environmental Modelling and Software 23 Explorer: classification

iEMSs Summit on Environmental Modelling and Software 24 Explorer: classification

iEMSs Summit on Environmental Modelling and Software 25 Explorer: classification/regression

iEMSs Summit on Environmental Modelling and Software 26 Explorer: classification

iEMSs Summit on Environmental Modelling and Software 27 Clustering data WEKA contains “clusterers” for finding groups of instances in a datasets Implemented schemes are:  k-Means, EM, Cobweb Coming soon: x-means Clusters can be visualized and compared to “true” clusters (if given) Evaluation based on loglikelihood if clustering scheme produces a probability distribution

iEMSs Summit on Environmental Modelling and Software 28 Explorer: clustering

iEMSs Summit on Environmental Modelling and Software 29 Explorer: clustering

iEMSs Summit on Environmental Modelling and Software 30 Explorer: clustering

iEMSs Summit on Environmental Modelling and Software 31 Explorer: clustering

iEMSs Summit on Environmental Modelling and Software 32 Finding associations WEKA contains an implementation of the Apriori algorithm for learning association rules  Works only with discrete data Allows you to identify statistical dependencies between groups of attributes:  milk, butter  bread, eggs (with confidence 0.9 and support 2000) Apriori can compute all rules that have a given minimum support and exceed a given confidence

iEMSs Summit on Environmental Modelling and Software 33 Explorer: association rules

iEMSs Summit on Environmental Modelling and Software 34 Attribute selection Separate panel allows you to investigate which (subsets of) attributes are the most predictive ones Attribute selection methods contain two parts:  A search method: best-first, forward selection, random, exhaustive, race search, ranking  An evaluation method: correlation-based, wrapper, information gain, chi-squared, PCA, … Very flexible: WEKA allows (almost) arbitrary combinations of these two

iEMSs Summit on Environmental Modelling and Software 35 Explorer: attribute selection

iEMSs Summit on Environmental Modelling and Software 36 Data visualization Visualization is very useful in practice: e.g. helps to determine difficulty of the learning problem WEKA can visualize single attributes (1-d) and pairs of attributes (2-d)  To do: rotating 3-d visualizations (Xgobi-style) Color-coded class values “Jitter” option to deal with nominal attributes (and to detect “hidden” data points) “Zoom-in” function

iEMSs Summit on Environmental Modelling and Software 37 Explorer: data visualization

iEMSs Summit on Environmental Modelling and Software 38 Performing experiments The Experimenter makes it easy to compare the performance of different learning schemes applied to the same data. Designed for nominal and numeric class problems Results can be written into file or database Evaluation options: cross-validation, learning curve, hold-out Can also iterate over different parameter settings Significance-testing built in!

iEMSs Summit on Environmental Modelling and Software 39 Experimenter: setting it up

iEMSs Summit on Environmental Modelling and Software 40 Experimenter: running it

iEMSs Summit on Environmental Modelling and Software 41 Experimenter: analysis

iEMSs Summit on Environmental Modelling and Software 42 New Directions for Weka New user interface based on work flows New data mining techniques  PACE regression  Bayesian Networks  Logistic option trees New frameworks for very large data sources (MOA) New applications in the agricultural sector  Matchmaker for RPBC Ltd  Pest control for kiwifruit management  Crop forecasting  Soil element prediction from NIR data (Nitrogen, Carbon)

iEMSs Summit on Environmental Modelling and Software 43 Next Generation Weka: Knowledge flow GUI

iEMSs Summit on Environmental Modelling and Software 44 Conclusions Weka is a comprehensive suite of Java programs united under a common interface to permit exploration and experimentation on datasets using state-of-the-art techniques. The software is available under the GPL from Weka provides the perfect environment for ongoing research in data mining.