Code Monkey home page Code Monkey logo

exp1's Introduction

EX1 Creation of Employee, Weather dataset in WEKA Data Mining and Analysis Tool and perform Preprocessing

DATE:

AIM:

To Create Employee, Weather dataset in WEKA Data Mining and Analysis Tool and perform preprocessing.

PROCEDURE:

  1. Open Start -> Programs -> Accessories -> Notepad.
  2. Type the following training data set with the help of Notepad for Employee Table.
--------------
Employee Data
---------------
@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

--------------
Weather Data
---------------
@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
  1. After that the file is saved with .arff file format.
  2. Minimize the arff file and then open Start -> Programs -> weka-3-4.
  3. Click on weka-3-4, then Weka dialog box is displayed on the screen.
  4. In that dialog box there are four modes, click on explorer.
  5. Explorer shows many options. In that click on ‘open file’ and select the arff file
  6. Click on edit button which shows employee table on weka.

OUTPUT:

employee weather

PREPROCESSING

Procedure:

1) Add -> Pre-Processing Technique:

  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.
  9. A new window is opened.
  10. In that we enter attribute index, type, data format, nominal label values for Climate.
  11. Click on OK.
  12. Press the Apply button, then a new attribute is added to the Weather Table.
  13. Save the file.
  14. Click on the Edit button, it shows a new Weather Table on Weka.

OUTPUT:

preprocessing

2) Remove -> Pre-Processing Technique:

  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 Remove.
  9. Select the attributes windy, play to Remove.
  10. Click Remove button and then Save.
  11. Click on the Edit button, it shows a new Weather Table on Weka.

OUTPUT:

removing

3) Normalize -> Pre-Processing Technique:

  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 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.

OUTPUT:

normalize

RESULT:

Thus the program for generating employee and weather datasets has been developed, and preprocessing has been accomplished successfully.

exp1's People

Contributors

sakthivelrcse avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.