Question

In: Computer Science

K-NN and Perceptron theory question If we don’t care about the size of the TRAINING SET...

K-NN and Perceptron theory question
If we don’t care about the size of the TRAINING SET or TIME to classify which Machine Learning algorithm would you choose 1-NN or perceptron. Explain your answer or provide specific examples.

what are the pros and cons of perceptron and 1-NN beside time and number of inputs.
please provide specific example of what kinds data are best for each algorithms

Solutions

Expert Solution

Now, before going in depth of these algorithms the answer surely depends on the data in general is I have to choose I'll go with perceptron over 1-NN and K-NN if we have a optimal value of K but K=1 in almost all scenario isn't the best option

Now coming to the part where we have to tell which type of data each is suitable for

K- NN basically, take aug_max(K- nearest neighbour) so have a dependence on 'K' which is too small is useless and 'K' too huge then is biased towards the category giving more data.

But with right value of K we can go for that too.

Data for K-NN The simplicity of Algorithm gives it a huge advantage, it's computationally not the best option but we'll ignore that, so for a low dimensional data set we'll go for this algorithm, secondly for the categorical data and Boolean dataset the K-NN doesn't have any use of those, so if there are a lot of categorical and Boolean data then surely go for the Perceptron.

Data for Perceptron - For a Perceptron we can take it as a combination of multiple linear regressions now a single Perceptron is also not a lot helpful expect when the categories have distinguishable value windows like 0-20 is 'A' ,20-40 is 'B' and so on in that case, we have even one Perceptron helpful else if we have N possible category to classify and N- Perceptrons together can do a perfect job with unique weights of each factor for each Perceptron,( so we get like multiple lines breaking the entire plane of points into multiple sections if you like to visualise it)


Related Solutions

Explain the difference between a training set and a testing set. Why do we need to...
Explain the difference between a training set and a testing set. Why do we need to differentiate them? Can the same set be used for both purposes? Why or why not? explain with your own words please
QUESTION 7 Aerobic training is associated with alterations in the: A. Size of the left atrium...
QUESTION 7 Aerobic training is associated with alterations in the: A. Size of the left atrium B. Size of the left ventricle C. Size of the right ventricle D. Thickness of ventricular walls
What is a deontological theory? a theory about proper dental care a theory assessing the overall...
What is a deontological theory? a theory about proper dental care a theory assessing the overall consequences of an action the same as a consequentialist theory a theory assessing the morality of an action in terms of duty or rightness in itself
Kleinman's theory of explanatory models is a set of questions care providers can ask during an...
Kleinman's theory of explanatory models is a set of questions care providers can ask during an assessment which provides insight into what is most important for the client in terms of their health, illness, and care. Try blending these questions into your discussion in an informal manner. What do you call your problem? What name do you give it? What do you think has caused it? Why did it start when it did? What does your sickness do to your...
Please someone assist me with the following problem please! 5. K-nearest-neighbor Given the training data set...
Please someone assist me with the following problem please! 5. K-nearest-neighbor Given the training data set shown below Sample x Y Label? 1 1 5 Yes 2 2 4 Yes 3 3 2 No 4 0 1 Yes 5 5 5 No 6 4 4 No Predict the label for a sample, [2, 2] by using 1) 1-nearest neighbor. Show steps. 2) 3-nearest neighbor. Show steps. 6. K-means Given six data points, X1: (1, 1) X2: (5, 5) X3: (1,...
Given that we don’t want to turn managers into geeks, what about computers can present special...
Given that we don’t want to turn managers into geeks, what about computers can present special opportunities or challenges for managers
Why should we care about foreign interest rates?
Why should we care about foreign interest rates?
please briefly explain why we care about inflation
please briefly explain why we care about inflation
Should we care more about APR or EAR? Why?
Should we care more about APR or EAR? Why?
(We are using the same data set we used in Question 2) You are the manager...
(We are using the same data set we used in Question 2) You are the manager of the supermarket on the ground floor of Holmes Building. You are wondering if there is a relation between the number of students attending class at Holmes Institute each day, and the amount of chocolate bars sold. That is, do you sell more chocolate bars when there are a lot of Holmes students around, and less when Holmes is quiet? If there is a...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT