Itb 10BM60092 Term Paper
Itb 10BM60092 Term Paper
Itb 10BM60092 Term Paper
WEKA Techniques
ITB term Paper
Submitted by Swarnabha Shankar
Ray [10BM60092]
We click on the explorer tab. The sample data used in this case is car data available from http://tunedit.org/search?q=arff in .arff format. Attribute-Relation File Format (ARFF) file has two distinct sections. The first section is the Header information, which is followed the Data information. The Header of the ARFF file contains the name of the relation, a list of the attributes (the columns in the data), and their types
Data File
% Relevant Information Paragraph: % Car Evaluation Database was derived from a simple hierarchical % decision model originally .The model evaluates cars according to the following concept structure: % % CAR car acceptability % PRICE overall price % buying buying price % paint price of the maintenance % TECH technical characteristics % COMFORT comfort % doors number of doors % persons capacity in terms of persons to carry % luggage boot the size of luggage boot % safety estimated safety of the car % Number of Instances: 1728 % % % % % % % % % Number of Attributes: 6 Attribute Values: buying v-high, high, med, low maint v-high, high, med, low doors 2, 3, 4, 5-more persons 2, 4, more lug_boot small, med, big safety low, med, high
@ Relation Car @attribute buying {vhigh,high,med,low} @attribute maint {vhigh,high,med,low} @attribute doors {2,3,4,5more} @attribute persons {2,4,more} @attribute lug_boot {small,med,big} @attribute safety {low,med,high} @attribute class {unacc,acc,good,vgood} @ sample data vhigh,vhigh,2,2,small,low,unacc vhigh,vhigh,2,2,small,med,unacc vhigh,vhigh,2,2,small,high,unacc
In the left section of the Explorer window, it outlines all of the columns in the data (Attributes) and the number of rows of data supplied (Instances). By selecting each column, the right section of the Explorer window will also give the information about the data in that column of the data set. For example, by selecting the buying column in the left section, the right-section should change to show the additional statistical information about the column. No. Label Count Weight 1 vhigh 432 432.0 2 high 432 432.0 3 med 432 432.0 4 low 432 432.0 Finally, there's a visual way of examining the data, which can be viewed by clicking the Visualize All button.
Logistic*
logistic regression (sometimes called the logistic model or logit model) is a type of regression analysis used for predicting the outcome of a binary dependent variable (a variable which can take only two possible outcomes, e.g. "yes" vs. "no" or "success" vs. "failure") based on one or more predictor variables.
Sources- * http://en.wikipedia.org/wiki/Logistic_regression
When we have selected the right model, your WEKA Explorer should look as above The other three choices are Supplied test set, where we can supply a different set of data to build the model; Cross-validation, which lets WEKA build a model based on subsets of the supplied data and then average them out to create a final model; and Percentage split, where WEKA takes a percentile subset of the supplied data to build a final model. With logistic, we can simply choose Use training set. Finally, the last step to creating our model is to choose the dependent variable (the column we are looking to predict). We know this should be the safety, since that's what we're trying to determine for purchasing a car. Right below the test options, there's a combo box that lets you choose the dependent variable. The column safety should be selected by default To create our model, click Start
Regression
Regression is the easiest technique to use, but is also probably the least powerful. In effect, regression models all fit the same general pattern. There are a number of independent variables, which, when taken together, produce a result a dependent variable. The regression model is then used to predict the result of an unknown dependent variable, given the values of the independent variables. We will perform Regression on the Smoking and Cancer data comparing them on basis of various attributes. Various attributes are: Occupational Groups Smoking Mortality To create our regression model ,we perform the same process as in previous model to load the following data
By selecting the Smoking column in the left section the right-section should change to show the additional statistical information about the column. Finally, there's a visual way of examining the data, which can be viewed by clicking the Visualize All button.
To create the model, click on the Classify tab. The first step is to select the model we want to build, so WEKA knows how to work with the data, and how to create the appropriate model: 1. Click the Choose button, then expand the functions branch. 2. Select the LinearRegression leaf. This tells WEKA that we want to build a regression model.
Thus WEKA is a very effective tool for data mining which supports several standard data mining tasks,
more specifically, data preprocessing, clustering, classification, regression, visualization, and feature selection