Example: dental hygienist

1 Multiple-Choice/Numerical Questions

Sample Questions for Fundamentals of Machine Learning 2018 Teacher: Mohammad Emtiyaz KhanA few important informations: In the final exam, no electronic devices are allowed except a calculator. Makesure that your calculator is only a calculator and cannot be used for any otherpurpose. No documents allowed apart from one A4 sheet of your own notes. You are not allowed to talk to others For derivations, clearly explain your derivation step by step. In the finalexam you will be marked for steps as well as for the end result. For multiple-choice Questions , you also need to provide explanations. Youwill be marked for your answer as well as for your explanations. We will denote the output data vector byywhich is a vector that containsallyn, and the feature matrix byXwhich is a matrix containing featuresxTnas rows. Also, xn= [1,xTn]T. Ndenotes the number of data points andDdenotes the Multiple-Choice/Numerical Questions1.

1 Multiple-Choice/Numerical Questions 1. Choose the options that are correct regarding machine learning (ML) and arti cial intelligence (AI), (A) ML is an alternate way of programming intelligent machines. (B) ML and AI have very di erent goals. (C) ML is a set of techniques that turns a dataset into a software.

Tags:

  Numerical

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of 1 Multiple-Choice/Numerical Questions

1 Sample Questions for Fundamentals of Machine Learning 2018 Teacher: Mohammad Emtiyaz KhanA few important informations: In the final exam, no electronic devices are allowed except a calculator. Makesure that your calculator is only a calculator and cannot be used for any otherpurpose. No documents allowed apart from one A4 sheet of your own notes. You are not allowed to talk to others For derivations, clearly explain your derivation step by step. In the finalexam you will be marked for steps as well as for the end result. For multiple-choice Questions , you also need to provide explanations. Youwill be marked for your answer as well as for your explanations. We will denote the output data vector byywhich is a vector that containsallyn, and the feature matrix byXwhich is a matrix containing featuresxTnas rows. Also, xn= [1,xTn]T. Ndenotes the number of data points andDdenotes the Multiple-Choice/Numerical Questions1.

2 Choose the options that are correct regarding machine learning (ML) andartificial intelligence (AI),(A)ML is an alternate way of programming intelligent machines.(B)ML and AI have very different goals.(C)ML is a set of techniques that turns a dataset into a software.(D)AI is a software that can emulate the human :(A), (C), (D)2. Which of the following sentence is FALSE regarding regression?(A)It relates inputs to outputs.(B)It is used for prediction.(C)It may be used for interpretation.(D)It discovers causal :(D)3. What is the rank of the following matrix?A= 1 1 11 1 11 1 1 (1)Answer:14. What is the dimensionality of the null space of the following matrix?A= 1 1 11 1 11 1 1 (2)Answer:25. What is the dimensionality of the null space of the following matrix?A= 32 9 6 418128 36 (3)Answer:26. For the one-parameter model, mean-Square error (MSE) is defined as follows:12N Nn=1(yn 0)2.

3 We have a half term in the front because,(A)scaling MSE by half makes gradient descent converge faster.(B)presence of half makes it easy to do grid search.(C)it does not matter whether half is there or not.(D)none of the aboveAnswer:C7. Grid search is,(A)Linear inD.(B)Polynomial inD.(C)Exponential inD.(D)Linear :C,D8. The advantage of Grid search is (are),(A)It can be applied to non-differentiable (B)It can be applied to non-continuous functions.(C)It is easy to implement.(D)It runs reasonably fast for multiple linear :A,B, Gradient of a continuous and differentiable function(A)is zero at a minimum(B)is non-zero at a maximum(C)is zero at a saddle point(D)decreases as you get closer to the minimumAnswer:A,C,D10. Consider a linear-regression model withN= 3 andD= 1 with input-ouputpairs as follows:y1= 22,x1= 1,y2= 3,x2= 1,y3= 3,x3= 2. Whatis the gradient of mean-square error (MSE) with respect to 1when 0= 0and 1= 1?

4 Give your answer correct to two decimal (deviation )11. Let us say that we have computed the gradient of our cost function andstored it in a vectorg. What is the cost of one gradient descent updategiven the gradient?(A)O(D)(B)O(N)(C)O(ND)(D)O(ND2) Answer:(A)12. Let us say that we are fitting one-parameter model to the data, average ofy1,y2,..,yNis 1. We start gradient descent at (0)0= 0 andset the step-size to What is the value of 0after 3 iterations, , thevalue of (3)0? (deviation )13. Let us say that we are fitting one-parameter model to the data, average ofy1,y2,..,yNis 1. We start gradient descent at (0)0= 10 andset the step-size to What is the value of 0after 3 iterations, , thevalue of (3)0?Answer:CA: (deviation )314. Computational complexity of Gradient descent is,(A)linear inD(B)linear inN(C)polynomial inD(D)dependent on the number of iterationsAnswer:C15.

5 Generalization error measures how well an algorithm perform on unseen test error obtained using cross-validation is an estimate of the general-ization error. Is this estimate unbiased?Answer:(No) cross-validation is(A)linear inK(B)quadratic inK(C)cubic inK(D)exponential inKAnswer:A17. You observe the following while fitting a linear regression to the data: Asyou increase the amount of training data, the test error decreases and thetraining error increases. The train error is quite low (almost what you expectit to), while the test error is much higher than the train do you think is the main reason behind this behavior. Choose themost probable option.(A)High variance(B)High model bias(C)High estimation bias(D)None of the aboveAnswer:A18. Adding more basis functions in a linear (pick the most probablyoption)(A)Decreases model bias(B)Decreases estimation bias(C)Decreases variance4(D)Doesn t affect bias and varianceAnswer:A2 Multiple-output regressionSuppose we haveNregression training-pairs, but instead of one output for eachinput vectorxn RD, we now have 2 outputsyn= [yn1,yn2] where eachyn1andyn2are real numbers.

6 For each outputyn1, we wish to fit a separate linear model:yn1 f1(xn) = 10+ 11xn1+ 12xn2+..+ 1 DxnD= T1 xn(4)yn2 f2(xn) = 20+ 21xn1+ 22xn2+..+ 2 DxnD= T2 xn(5)where 1and 2are vectors of 1dand 2drespectively, ford= 0,1,2,..,D, and xTn= [1xTn].Our goal is to estimate 1and 2for which we choose to minimize the followingcost function:L( 1, 2) :=N n=1[12(yn1 T1 xn)2+12(yn2 T2 xn)2]+ 1D d=0 21d+ 2D d=0 22d.(6)(A) Derive the gradient ofLwith respect to 1and 2.(B) SupposeN= 20 andD= 15. Do we need to regularize? Explain youranswer.(C) Suppose we increase the number of data points fromN= 20 toN= we decrease the value of 1and 2? Explain your answer.(D) What is the computation complexity with respect toNandD?Answer:(A) L 1:= Nn=1[(yn1 T1 xn)2 xn]+ 1 1, same for 2.(B) The number of parameters is equal to 30 and the number of data points isequal to 40.

7 It is good to regularize, but just a mild regularization will dosince the number of parameters is still less than number of data points.(C) Yes, we expect this to be the case because, if the data points are , thenwe might need less regularization.(D) Same as gradient descent (please put an exact number here for the finalexam).53 EigenvaluesGiven a real-valued matrixX, show that all the non-zero eigenvalues ofXXTandXTXare the :To prove this, you can use the SVD ofX=USVT. ThenXXT=US2 UTandXTX=VS2V. The non-zero eigenvalues are the same, although thenumber of eigenvalues are Artificial Neural NetworksConsider the following artificial neural network with the nonlinear transformationznm= (anm) (see figure below). Here,nis the data index andmis the index ofhidden units. There are two binary outputsyn1andyn2taking values in{0,1}.Figure 1: Artificial neural networkSuppose you haveN= 200 data points butM= 200 hidden units for each problem(s) are you likely to encounter when training such a network?

8 Howwould you solve the problem(s)?Answer:Overfitting. There are multiple ways to tackle this problem as discussedin the


Related search queries