0% found this document useful (0 votes)
5 views

EXP1

Uploaded by

abhatnagar1be21
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 views

EXP1

Uploaded by

abhatnagar1be21
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/ 2

EXP - 1

AIM:
Data pre-processing methods on student and label datasets.

Description:
We need to create an employee table with a training dataset that includes attributes like name, ID,
salary, experience, gender, and phone no.

Procedure:

1. Launch the Weka application and open the Explorer tab. This will create a new workspace.
2. Use a text editor or notepad to write the following code defining your ARFF dataset (Attribute-
Relation File Format).
@relation employee

@attribute name {x,y,z,a,b}

@attribute id numeric

@attribute salary {low,medium,high}

@attribute exp numeric

@attribute gender {male,female}

@attribute phone numeric

@data

x,101,low,2,male,250311

y,102,high,3,female,251665

z,103,medium,1,male,240238

a,104,low,5,female,200200

b,105,high,2,male,240240
3. Save the file with a .arff extension. The file icon will change to indicate it is in ARFF format.
4. In the Explorer window, click the "Open file" button in the top left.
5. Navigate to and select the .arff file you created. Click Open.
6. The dataset will now be visualized in the right-side window.
7. Click the Edit button at the top right.
8. The output will be displayed in the viewer.

Result:

You might also like