Menu

DATA MINING - (LAB PROGRAMS)


Aim:

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

Solution :

Exploring a dataset

Description:

Most of the data that has been gathered from public forums is in a textual format that is incompatible with the Weka tool. As Weka, a data mining tool, exclusively recognizes data in the ARFF format, it is necessary to convert the text file into an ARFF file. .

Conversion of Text File into ARFF File :

Procedure:

Steps:

1) Download any data set from a public forum (E.g.: UCI data repository.)


 

2) Open the downloaded data file using notepad.


 

3) Add one row at the top of the data and Enter header for each column.


 

4) Save the file as .CSV (Comma Separated Values) format.


 

5) Open Weka tool and then click on Explorer. From the Preprocessor tab and open the CSV file.


 

6) Save that file as ARFF format.


 

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