Menu

DATA MINING - (LAB PROGRAMS)


Aim:

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

Solution :

Creating a student dataset

Creating a student dataset (student.arff):

Description:

We need to create a Student Table with training data set which includes attributes like sid, name, various subject marks, total and result.


Procedure:

Steps:

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


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


	@relation student 

	@attribute sid numeric 
	@attribute name string
	@attribute DM numeric 
	@attribute DAA numeric 
	@attribute CN numeric 
	@attribute IDS numeric 
	@attribute CG numeric 
	@attribute IRS numeric
	@attribute total numeric 
	@attribute result {pass, fail} 

	@data 
	1, pavan, 60, 65, 55, 50, 50, 54, 334, pass
	2, vishal, 70, 54, 46, 48, 58, 56, 332, pass
	3, rajesh, 60, 55, 40, 50, 40, 76, 321, pass
	4, kiran, 60, 55, 30, 50, 40, 55, 290, fail
	5, suresh, 60, 55, 45, 60, 40, 66, 326, pass
	6, manish, 60, 55, 65, 50, 20, 37, 287, fail
 

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. student.arff).


 

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


 

Result:


The student dataset (student.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