What is the defining feature of the decision tree

Assignment Help Computer Engineering
Reference no: EM131474870

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

Reference no: EM131474870

Questions Cloud

Write a letter of advice to either a newly engaged couple : Write a letter of advice to either a newly engaged couple or a group of coworkers.Explain the principles of-barriers to effective interpersonal communication.
Ethical dilemma and culture of deceit : What are the negative effects of a culture that encourages dishonesty and corruption on its reputation and employees
List key characteristics of basic version of microcontroller : From the data book of a microcontroller you have access to, list the key characteristics (Registers, Memory architecture, Instruction set, I/O interfaces).
Simple labour-leisure choice model : Explain using a simple labour-leisure choice model, and do not forget to make the distinction between substitution and income effects.
What is the defining feature of the decision tree : What is the defining feature of the decision tree and Which features seem to be redundant - Does the classification accuracy increase or decrease
What is the effective tax rate on james and john : What is the effective tax rate on James and John if the corporate and personal income tax systems are not integrated (no dividend tax credits)?
Reporting requirements for lease reporting under gaap : Research the reporting requirements for lease reporting under GAAP and International Financial Reporting Standards (IFRS).
Find a soc-based application using arm architecture : Find a SoC-based application using ARM architecture. List its salient characteristics. Which of the application requirements necessitated a SoC.
An explanation of the perceptual process for hearing : PSY 345 :Your team is interning at a speech and hearing center. You have been tasked with creating an educational brochure for hearing impaired clients.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd