Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Using WEKA with Java applications

Step 1:

Launch Weka by clicking on: RunWeka.bat

Select ‘Explorer' from the list of Weka Applications.

Select the ‘Preprocess' tab and click on ‘Open File'. Choose the file ‘Sunburn.arff'.

Review the contents of the file. Weka gives a summary of the attributes and their distribution.

Select the ‘Classify' tab and make sure the following Classifier (J48) and Test options (Use training set) settings are selected.

Press ‘Start' to create a classification model from the ARFF file.

Details about the classifier are contained in ‘Classifier output'.

Right click on ‘trees J48' in the ‘Result List' and select ‘Visualise Tree'.

A tree representation of the learning model will be displayed.

Q. What is the defining feature of the decision tree?

Q. Which features seem to be redundant?

Step 2:

In notepad, open file ‘sunburn2.arff'

Add an additional attribute ‘shade' to the list of attributes:

@ATTRIBUTE 'shade' {yes, no}

The values for ‘shade' should be listed at the start of each vector. For instance the first vector:
blonde, average,light, no, burned

becomes:
no,blonde, average,light, no, burned

Values (in order, top to bottom) for each vector are as follows:

no, no, no, no, no, no, no, no, no, no, no, yes, yes, no, no, no

Accordingly, update each vector in the file ‘sunburn2.arff' and choose save.

Step 3:

In WEKA Explorer click the ‘Preprocess' tab and then click ‘Open File'. Select the new file ‘sunburn2.arff' and repeat Step 1 to create a new J48 decision tree with this file.

Q. Does the classification accuracy increase or decrease for this new file?

Q. Does the J48 decision tree change, if so in what way?

Q. What becomes the defining feature of the decision tree?

Step 4:

In WEKA Explorer stay in the ‘Classify tab.

Select the ‘Supplied Test set'radio button and click the ‘Set' button, following by the ‘Open file' button. Choose the file ‘sunburn2TEST.arff' and click ‘Close'.

Click the ‘More Options' button and ensure there is a tick beside ‘Output predications' then press ‘OK'.

Right click on ‘tree J48' and select ‘Re-evaluate model on current test set'.

The prediction results will appear in the ‘Classifer output' under the heading ‘Predictions on test set'.

Compare the predictions to the feature vectors in the file ‘sunburn2TEST.arff'. Are the predictions reasonable? Are they as you would expect?

Step 5:

Open the folder: Apps\Weka\Data

Choose one of the .arff files and repeat Step 1.

Q. What is the defining feature of the decision tree?

Q. Which features seem to be redundant?

Attachment:- Practical4.rar

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92283607
  • Price:- $70

Guranteed 36 Hours Delivery, In Price:- $70

Have any Question?


Related Questions in Computer Engineering

1 write code in the method linearsearch in

1. Write code in the method linearSearch() in "SearchMethods"class which finds the element in an array using linear search approach and returns its index to the calling main method, otherwise it returns -1. 2. Write code ...

System analysis and design1 why is it important to keep the

System Analysis and Design 1) Why is it important to keep the output simple for display-based output technology? 2) Why is it important to consider how users learn when developing output? Explain. 3) Describe the differe ...

Software quality is a difficult term to define it means

Software quality is a difficult term to define. It means many things to many different people. Consider the following What do you think software quality is composed of? Why is quality so difficult to define? Do different ...

Question do a research on the internet and discuss about

Question : Do a research on the Internet and discuss about the history of development of the networking field. Also discuss some of the recent trends in the networking area, (approx 200 words)

A chemistry student needsnbsp550 gnbspof dimethyl sulfoxide

A chemistry student needs 55.0 g of dimethyl sulfoxide for an experiment. By consulting the  CRC Handbook of Chemistry and Physics , the student discovers that the density of dimethyl sulfoxide is 1.10 g.cm^-3. Calculate ...

You want to be a millionaire when you retire in 35

You want to be a millionaire when you retire in 35 years. a. How much do you have to save each month if you can earn an annual return of 10.7 percent?  (Do not round intermediate calculations and round your answer to 2 d ...

Suppose that a block can contain at most four data values

Suppose that a block can contain at most four data values and that all data values are integers. Using only B+ trees of degree 2, give examples of each of the following : a. A B+ tree whose height changes from 2 to 3 whe ...

A 2-year treasury security currently earns 197 percent over

A 2-year Treasury security currently earns 1.97 percent. Over the next two years, the real risk-free rate is expected to be 1.00 percent per year and the inflation premium is expected to be 0.60 percent per year. Calcula ...

Assessment - managing services and securitytask - in this

Assessment - Managing Services and Security Task - In This Assignment your job is to create two Virtual machines each running a different but the latest distribution of Linux e.g. Ubuntu Server and CentOS. Each of these ...

Case study - social media research facilitytaskthis

Case study - Social Media Research facility Task This assignment follows from the case study used in Assessment . For the same case study, complete the following tasks by creating the following: WBS first using indented ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As