0% found this document useful (0 votes)
5 views19 pages

NNN

The document outlines a mini-project for implementing data mining functionalities on a weather dataset using Weka software. It details the steps for creating a weather table, applying various preprocessing techniques, and executing different data mining algorithms such as association rules, decision trees, Bayesian classification, linear regression, and K-means clustering. Each procedure includes specific instructions for file handling and applying filters or classifiers within the Weka interface.

Uploaded by

finnymodi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views19 pages

NNN

The document outlines a mini-project for implementing data mining functionalities on a weather dataset using Weka software. It details the steps for creating a weather table, applying various preprocessing techniques, and executing different data mining algorithms such as association rules, decision trees, Bayesian classification, linear regression, and K-means clustering. Each procedure includes specific instructions for file handling and applying filters or classifiers within the Weka interface.

Uploaded by

finnymodi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

Week-12

Mini-project: To implement all data mining functionalities on the Weather dataset


after performing data preprocessing filters

Creation of Weather Table:

1) Open Start  ProgramsAccessoriesNotepad


2) Type the following training data set with the help of Notepad for Weather Table.

@relation weather
@attribute outlook {sunny,rainy,overcast}
@attribute temparature numeric
@attribute humidity numeric
@attribute windy {true,false}
@attribute play {yes,no}
@data
sunny,85.0,85.0,false,no
overcast,80.0,90.0,true,no
sunny,83.0,86.0,false,yes
rainy,70.0,86.0,false,yes
rainy,68.0,80.0,false,yes
rainy,65.0,70.0,true,no
overcast,64.0,65.0,false,yes
sunny,72.0,95.0,true,no
sunny,69.0,70.0,false,yes
rainy,75.0,80.0,false,yes

3) After that the file is saved with .arff file format.


4) Minimize the arff file and then open Start ->Programs ->weka3-4.
5) Click on weka-3-4, then Weka dialog box is displayed on the screen.
6) In that dialog box there are four modes, click on explorer.
7) Explorer shows many options. In that click on ‘open file’ and select the arff file 8) Click
on edit shows weather button which table on weka.

18121A1275
Adding a Pre-Processing Technique:

Procedure:
1) Start Programs  Weka-3-4 Weka-3-
4 2) Click on explorer. 3) Click on open file.
4) Select Weather.arff file and click on open.
5) Click on Choose button and select the Filters option.
6) In Filters, we have Supervised and Unsupervised data.
7) Click on Unsupervised data.
8) Select the attribute Add.

18121A1275
A new window is opened.

9) In that we enter attribute index, type, data format, nominal label values for storm.
10) Click on OK.

11) Press the Apply button, then a new attribute is added to the Weather Table.
12) Save the file.
13) Click on the Edit button, it shows a new Weather Table on Weka.

18121A1275
Removing a Pre-Processing Technique:

Procedure:
1) Start  All Programs  Weka-3-4
2) Click on Explorer.
3) Click on open file.
4) Select Weather.arff file and click on open.
5) Click on Choose button and select the Filters option.
6) In Filters, we have Supervised and Unsupervised data.
7) Click on Unsupervised data.
8) Select the attribute Remove.

9) Select the attributes storm to Remove.

18121A1275
10) Click Remove button and then Save.
11) Click on the Edit button, it shows a new Weather Table on Weka.

18121A1275
Normalize a Pre-Processing Technique:

Procedure:
1) Start  Programs  Weka-3-4
2) Click on explorer.
3) Click on open file.
4) Select Weather.arff file and click on open.
5) Click on Choose button and select the Filters option.

6) In Filters, we have Supervised and Unsupervised data.


7) Click on Unsupervised data.
8) Select the attribute Normalize.

9) Select the attributes temparature, humidity to Normalize.


10) Click on Apply button and then Save.
11) Click on the Edit button, it shows a new Weather Table with normalized values on Weka.

18121A1275
18121A1267
Procedure for Association Rules:

18121A1267
1) Open Start ->Programs -> Weka-3-4
2) Open explorer.
3) Click on open file and select weather.arff .

4) Select Associate option on the top of the Menu bar.


5) Select Choose button and then click on FilteredAssociator and give support and confidence
values.

6) Click on Start button and output will be displayed on the right side of the window.

18121A1267
Procedure for Decision Trees:

18121A1267
1) Open Start ->Programs ->Weka-3-4 2)

Open explorer.
3) Click on open file and select weather.arff 4)
Select Classifier option on the top of the Menu
bar.
5) Select Choose button and click on Tree option.
6) Click on J48.

18121A1267
7) Click on Start button and output will be displayed on the right side of the window. 8)

18121A1267
Select the result list and right click on result list and select Visualize Tree option.
9) Then Decision Tree will be displayed on new window.

Implementing Bayesian Classification on weather dataset :


1) Open Start Programs Weka-3-4 2) Open explorer.

3) Click on open file and select wearher.arff


4) Select Classify option on the top of the Menu bar.
5) Select Choose button and click on wekaclassifierbayesNaiveBayes.

18121A1267
6) Click on Start button and output will be displayed on the right side of the window.

18121A1267
Implementing Simple Linear Regression on weather dataset:
1) Open Start ->Programs ->Weka-3-4
2) Open explorer.
3) Click on open file and select weather.arff
4) Select Classify option on the top of the Menu bar.
5) Select Choose button and click on weka->classifiers->functions->Linear Regression.
6) Click on Start button and output will be displayed on the right side of the window.

18121A1267
Implementing K-mean Clustering algorithm on weather dataset.
1) Open WEKA Tool.
2) Click on WEKA Explorer.
3) Click on open file and select weather.arff
4) Click on cluster tab and Choose k-mean and select use training set test option.
5) Click on start button.

18121A1267

You might also like