Question

The latest version of Weka is needed for these questions. Use Weka to complete classification task...

The latest version of Weka is needed for these questions. Use Weka to complete classification task on "iris" data (total: 150 records). You will definitely need to download the data by yourself and likely pre-process the data before loading it to the Weka explorer. Complete and following tasks and also answer the questions.

1. Briefly explain how you pre-process the data so that you can successfully load it into Weka Explorer.

2. What is the minimum length and maximum length of petals within this dataset?

3. Use "REPTree" and the default configuration to create a decision tree. Under "Test options", choose "Use training set". Note that your task is to predict the class of species. Show your tree structure.

4. Click on the bar that shows "REPTree" with parameters. Change the value of "noPruning" (True/False).  Then restart the classification task. Show your new tree structure.

5. What is the difference between the results of 3 and 4? Which results gives you better in prediction? Justify your answer.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

1) pre-process the data:

We convert the CSV file to Weka ARFF format by providing necessary headers. We, then load the data using the Pre-process tab in Weka Explorer.

@RELATION iris

@ATTRIBUTE sepallength   REAL
@ATTRIBUTE sepalwidth    REAL
@ATTRIBUTE petallength    REAL
@ATTRIBUTE petalwidth   REAL
@ATTRIBUTE class    {Iris-setosa,Iris-versicolor,Iris-virginica}

@DATA

<CSV data from IRIS file goes here>

2) minimum length and maximum length of petals within this dataset

3) "REPTree" and the default configuration to create a decision tree. Under "Test options", choose "Use training set".

4) Click on the bar that shows "REPTree" with parameters. Change the value of "noPruning" (True/False). Then restart the classification task. Show your new tree structure.

5) What is the difference between the results of 3 and 4? Which results gives you better in prediction? Justify your answer.

After we enable the Tree-Pruning option, overfitting is reduced and the accuracy of the resulting tree improves.

Accuracy with default options (NO PRUNING)

Accuracy after enabling TREE PRUNING

Add a comment
Know the answer?
Add Answer to:
The latest version of Weka is needed for these questions. Use Weka to complete classification task...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Classification in Python: Classification In this assignment, you will practice using the kNN (k-Nearest Neighbors) algorithm...

    Classification in Python: Classification In this assignment, you will practice using the kNN (k-Nearest Neighbors) algorithm to solve a classification problem. The kNN is a simple and robust classifier, which is used in different applications. The goal is to train kNN algorithm to distinguish the species from one another. The dataset can be downloaded from UCI Machine Learning Repository: https://archive.ics.uci.edu/ml/machine-learning-databases/iris/ (Links to an external site.)Links to an external site.. Download `iris.data` file from the Data Folder. The Data Set description...

  • The QUESTIONS 1,2, and the PREDICTION Complete the calculations with the radius of the Earth (6.37x10^6)...

    The QUESTIONS 1,2, and the PREDICTION Complete the calculations with the radius of the Earth (6.37x10^6) THE QUESTIONS: (1) Using a pendulum, find the mass of the Earth. 2)At what angle does the equation for the period of a pendulum stop working? Equipment and Set-up 1. Set of hooked masses 3. String 5. Protractor 2. Stopwatch 4. Support rod and clamps 6. Meter stick Prediction What do you expect the values of acceleration due to gravity and the mass of...

  • Taxonomy PRE-LAB QUESTIONS 1. Use the following classifications to determine vhich organism is least related out of...

    Taxonomy PRE-LAB QUESTIONS 1. Use the following classifications to determine vhich organism is least related out of the three. Explain your rationale Classifications European Fire- Bellied Toad Classification American Green Tree Frog Eastern Newt Level Domain Eukarya Eukarya Eukarya Animalia Kingdom Animalia Animalia Phylum Chordata Chordata Chordata Amphibia Class Amphibia Amphibia Caudata Order Anura Anura Bombinatoridae Salamandridae Family Hylidae Notophthalamus Genus Tursipops Bombina vindescens/ Species Cinera bombina 2. How has DNA sequencing affected the science of classifying organisms? You are...

  • What are the exact commands I should use to complete the task. 1. Using the ps...

    What are the exact commands I should use to complete the task. 1. Using the ps –ef and grep command list all processes started by you (i.e. owned by your userid). (Hint: ‘^userid’ with match with a line that start with userid.) 2. Run command group (echo “Snoozing…”; date; sleep 50; echo “Awake.”;date ) > sleep.out & Note: Do not omit the parenthesis!!! 3. Repeat 1, identify process number of the process sleep 4. Display the content of file sleep.out...

  • Postlab 1: Introduction to Phylogeny and Tree-ThinkinB Directions Complete the questions below by the start time...

    Postlab 1: Introduction to Phylogeny and Tree-ThinkinB Directions Complete the questions below by the start time of your next lab. Be predse in your answers and pay attention to your reasoning. Your postlab is worth 5 points total. Use the following data matrix to answer the questions below. These data were collected as part of a conventions shown to you in lab this week to answer the questions. Great White (GW) IT-İAIcIG -[G- Tiger (T Hammerhead (H) | T |...

  • Instructions Please read the following scenario, complete the required task, and discuss the questions below. Martin...

    Instructions Please read the following scenario, complete the required task, and discuss the questions below. Martin and Samantha need your help again to determine the best course of action for their company. YourName Corporation has decided to offer an employee 401(k) retirement plan. This plan will consist of the following mutual fund investment choices Money Market mutual fund AAA rated Corporate bond fund US Government Treasury Bond fund A Corporate Junk bond fund A "Blue Chip" stock fund An emerging...

  • The Task: Create a console application that prompts the user to select either a stack, queue,...

    The Task: Create a console application that prompts the user to select either a stack, queue, linked list, or binary search tree. Then prompt the user for a number that will then be passed to a recursive function that will populate an array in ascending order. If user selected binary search tree, they will then be prompted to choose how the data will be received either in-order, preorder, or post-order. If user selected linked list, they will then be prompted...

  • Consider making a function (mini program to complete a specific task) for each of the scenarios...

    Consider making a function (mini program to complete a specific task) for each of the scenarios below. State what the purpose of the function is in your own words, specify input that is needed by the function, what output is expected from the functions, and the step by step process that will obtain the output from the input (the algorithm). In addition to these 4 items also specify test data that can be used for each problem. Remember to describe...

  • Please answer this quick. Thanks Use the Classification System of Dress to describe your own dress...

    Please answer this quick. Thanks Use the Classification System of Dress to describe your own dress practices for a given day. List out the specific types of modifications and supplements that you used. Describe the activities you take part in and for which you are describing your dress, for instance: a day at school, a day at work, a graduation, a wedding, a funeral, a prom, etc For example: Describe the body modifications that you see; describe the body enclosures...

  • URGENT HELP NEEDED: JQuery. PLEASE POST SCREEN SHOTS Task 1: Downloading jQuery Right-click the link to...

    URGENT HELP NEEDED: JQuery. PLEASE POST SCREEN SHOTS Task 1: Downloading jQuery Right-click the link to download the uncompressed latest version of jQuery Copy the jQuery.x.x.x.js file in the folder and specified as source file. Task 2: Download and install HTML-Kit 1. Navigate to htmlkit.com. 2. Click Download HTML-Kit 292. After it downloads, launch HKSetup.exe. Choose Full installation (the default) Uncheck Yes, download and install HTML-Kit Tools Trial. 6. Click Next>Finish. Task 3: Creating a Simple jQuery Application Launch HTML-Kit....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT