Menu

DATA MINING - (LAB PROGRAMS)


Aim:

 Demonstration of creating a Weather dataset (weather.arff) using WEKA tool in Data Mining

Solution :

Creating a weather dataset

Creating a weather dataset (weather.arff):

Description:

We need to create a Weather dataset with the data instances which includes attributes like temperature, humidity, windy, outlook, play.


Procedure:

Steps:

1) Open any text editor (e.g. Notepad)


2) Type the following training data set in the Notepad.


	@relation weather

	@attribute temperature numeric
	@attribute humidity numeric
	@attribute outlook {sunny, rainy, overcast}
	@attribute windy {true, false}
	@attribute play {yes, no}

	@data
	65.0, 60.0, rainy, true, no
	64.4, 75.7, overcast, false, yes
	82.0, 86.8, sunny, true, no
	94.0, 75.0, sunny, false, yes
	67.4, 60.7, overcast, true, no
	73.6, 66.8, sunny, false, yes
	50.5, 86.7, rainy, true, no
	68.0, 0.6, rainy, false, yes
	79.0, 64.5, sunny, false, yes
	65.0, 96.0, rainy, false, yes

 

3) After that save the file with .arff file format.


4) Minimize the arff file and then open Start → Programs → weka-3.8.6.


5) Click on weka-3.8.6, then Weka GUI chooser is displayed on the screen.


 

6) In that Weka GUI chooser there are five applications, click on Explorer.


 

7) Explorer shows many options. In that click on 'Open file...' button and select the .arff file (e.g. weather.arff).


 

8) Click on edit button which shows weather table on weka.


 

Result:


The weather dataset (weather.arff) was created successfully using WEKA tool kit.


Related Content :

Data Mining Lab Programs

1) Downloading and/or installation of WEKA Data Mining toolkit.   View Solution

2) Start working with WEKA tool kit and understand the features of WEKA tool kit.   View Solution

3) Loading Data from different sources in WEKA.   View Solution

4) Various File Formats supported by WEKA. And Study the ARFF file format.   View Solution

5) Demonstration of creating a Student dataset (student.arff) using WEKA tool in Data Mining.   View Solution

6) Demonstration of creating a Weather dataset (weather.arff) using WEKA tool in Data Mining   View Solution

7) Explore the available data sets in WEKA tool kit.   View Solution

8) Load a dataset from the available data sets in the WEKA tool.   View Solution

9) From the loaded dataset(weather.arff), observe the attribute names, attribute types, number of records in the dataset, Identify the class attribute (if any), and visualize the data in various dimensions.   View Solution

10) Conversion of a Text file into ARFF (Attribute-Relation File Format) using Weka tool.   View Solution