Question

5. a. Suppose that the target variable in a classification task is continuous numeric, can you apply decision trees directly

0 0
Add a comment Improve this question Transcribed image text
Answer #1

5a. If the target variable in a classification task is continuous numeric, we cannot apply decision trees directly to it.The target variables in a classification should be discrete. We need to convert continuous variable to discrete variables to apply decision trees on it. For example age may contain continous values like 25,45,67,23,50 etc. This can be converted to discrete variables like 1 represents age <40, 2 represents age>41 and age<60 and 3 represents a>61.

5 b. The first models with A 15% and B 25% is better as the error rates are less in this model compared to the other one.

5 c.1. Prefer less false positive. This is the case when a person is found guilty when he is not actually guilty.

5 c 2. Prefer less false negative. False negative in this case means the test case shows negative when actually the disease is present.

5 d. In K-nearest neighbour classification algorithm, k decides the number of partitions. To select the K that’s right for your data, we run the KNN algorithm several times with different values of K and choose the K that reduces the number of errors we encounter while maintaining the algorithm’s ability to accurately make predictions when it’s given data it hasn’t seen before.

· As we decrease the value of K to 1, our predictions become less stable.

· Inversely, as we increase the value of K, our predictions become more stable due to majority voting or averaging, and thus, more likely to make more accurate predictions (up to a certain point). Predictions with a high value of K beyond a certain point will be unstable or erroneous. In most cases, the optimum K-value lies between 5 and 30.

Add a comment
Know the answer?
Add Answer to:
5. a. Suppose that the target variable in a classification task is continuous numeric, can you...
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...

  • -can you change the program that I attached to make 3 file songmain.cpp , song.cpp ,...

    -can you change the program that I attached to make 3 file songmain.cpp , song.cpp , and song.h -I attached my program and the example out put. -Must use Cstring not string -Use strcpy - use strcpy when you use Cstring: instead of this->name=name .... use strcpy ( this->name, name) - the readdata, printalltasks, printtasksindaterange, complitetasks, addtasks must be in the Taskmain.cpp - I also attached some requirements below as a picture #include <iostream> #include <iomanip> #include <cstring> #include <fstream>...

  • 2. Repeated-measures ANOoVA Aa Aa Suppose you are interested in studying whether temperature affects spatial reasoning...

    2. Repeated-measures ANOoVA Aa Aa Suppose you are interested in studying whether temperature affects spatial reasoning abilities. You decide to test spatial reasoning using completion time scores for the paper-falding test with five peaple, repeating the test on each person with three different temperatures (40 degrees, 60 degrees, and 80 degrees Fahrenheit). In this experiment, the null hypothesis is that: O There are no differences in the mean completion times among the temporatures compared O There are no individual differences...

  • I need help with my homework. The task: Actually, you find flying very good, but you...

    I need help with my homework. The task: Actually, you find flying very good, but you do not trust the whole new-fangled flying stuff and the infrastructure it has built up. As a diehard medieval metal fan you prefer to travel from A to B but rather the good old catapult. Since one can not easily take the favorite cat on vacation with it (cats do not get drafts, which is why ICEs are also eliminated), they let themselves be...

  • C++ Inheritance Problem Step a: Suppose you are creating a fantasy role-playing game. In this game...

    C++ Inheritance Problem Step a: Suppose you are creating a fantasy role-playing game. In this game we have four different types of Creatures: Humans, Cyberdemons, Balrogs, and elves. To represent one of these Creatures we might define a Creature class as follows: class Creature { private: int type; // 0 Human, 1 Cyberdemon, 2 Balrog, 3 elf int strength; // how much damage this Creature inflicts int hitpoints; // how much damage this Creature can sustain string getSpecies() const; //...

  • In this assignment you’ll implement a data structure called a trie, which is used to answer...

    In this assignment you’ll implement a data structure called a trie, which is used to answer queries regarding the characteristics of a text file (e.g., frequency of a given word). This write-up introduces the concept of a trie, specifies the API you’re expected to implement, and outlines submission instructions as well as the grading rubric. Please carefully read the entire write-up before you begin coding your submission. Tries A trie is an example of a tree data structure that compactly...

  • This needs to be done in c++11 and be compatible with g++ compiling Project description: Write...

    This needs to be done in c++11 and be compatible with g++ compiling Project description: Write a C++ program to simulate a simple card game between two players. The game proceeds as follows: The 52 cards in a deck of cards are shuffled and each player draws three cards from the top of the deck. Remaining cards are placed in a pile face-down between the two players. Players then select a card from the three in their hand. The player...

  • You need not run Python programs on a computer in solving the following problems. Place your...

    You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...

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