Question

4. Suppose we have a classifier that classifies if an image contains a Human face or...

4. Suppose we have a classifier that classifies if an image contains a Human face or not. Suppose we have 100 images, 50 of which contain human faces. If our classifier accurately classifies that 30 images contains human faces, but at the same time wrongly classifies that 30 images contains human faces. What is the precision and recall. (10 points)

5. Suppose we use k-fold cross validation, how many times should we train the classifier? (10 points)

6. I have two machine learning algorithms, A1 and A2. A1 has a training error of which is smaller than A2’s training error? Can we conclude that A1 is the better algorithm? Briefly explain your reasoning. (10 points)

Homework Answers

Answer #1

Precision = TP/TP+FP = 30/30+30 = 0.5

Recall = TP/TP+FN = 30/30+50 = 0.375

The number of folds is usually determined by the number of instances contained in your dataset. For example, if you have 10 instances in your data, 10-fold cross-validation wouldn't make sense. k-fold cross validation is used for two main purposes, to tune hyper parameters and to better evaluate the performance of a model.

No, we cannot determine that A1 is better. This is because, we do not know how the data is and how it is split to be used for training and testing. There are also various other factors which are involved.

Know the answer?
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
Similar Questions
1) When we fit a model to data, which is typically larger? a) Test Error b)...
1) When we fit a model to data, which is typically larger? a) Test Error b) Training Error 2) What are reasons why test error could be LESS than training error? (Pick all that applies) a) By chance, the test set has easier cases than the training set. b) The model is highly complex, so training error systematically overestimates test error c) The model is not very complex, so training error systematically overestimates test error 3) Suppose we want to...
Suppose we have a random sample of size 50 from a N(μ,σ2) PDF. We wish to...
Suppose we have a random sample of size 50 from a N(μ,σ2) PDF. We wish to test H0: μ=10 versus H1: μ=10. The sample moments are x ̄ = 13.4508 and s2 = 65.8016. (a) Test the null hypothesis that σ2 = 64 versus a two-sided alternative. First, find the critical region and then give your decision. (b) (5 points) Find a 95% confidence interval for σ2? (c) (5 points) If you are worried about performing 2 statistical tests on...
Suppose we have the following paired observations of variables X and Y: X         Y 18        40...
Suppose we have the following paired observations of variables X and Y: X         Y 18        40 14        30 20        20 22        20             19        10             27        0 Calculate the values of the sample covariance and sample correlation between X and Y. Using this information, how would you characterize the relationship between X and Y?             (12 points) Suppose X follows a normal distribution with mean µ = 50 and standard deviation σ = 5. (10 points) What is the...
QUESTION 1 1. Brianna is trying to increase her chances of being promoted to vice president...
QUESTION 1 1. Brianna is trying to increase her chances of being promoted to vice president by working to build good work relationships with other managers outside her own department. Brianna's behavior should be viewed as dysfunctional politics. functional politics. coercive power. functional influence. 2 points QUESTION 2 1. The Gingerbread Factory has a separate unit that makes their chocolate crunch cookies and another unit that is completely responsible for all operations in producing their ginger snap cookies. The Gingerbread...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...