ML FinalUpdated 1
ML FinalUpdated 1
ASSIGNMENT_I CAP535
[email protected] Switch account
Draft saved
Consider two random variables X and Y with joint PMF. Are x and y 2 points
independent?
Consider two random variables X and Y with joint PMF. Find P(Y=2|X=1) 2 points
2/3
2/5
1/2
1/6
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLScIni5cPZgdqu7qrOxryH5mVVuzxh_xpqSLVY80fxATaupT5w/viewform 1/8
21/09/2022, 16:17 ASSIGNMENT_I CAP535
Consider two random variables X and Y with joint PMF. Find P(X≤2,Y≤4) 2 points
1/8
3/8
3/6
1/6
Clear selection
None of these
https://docs.google.com/forms/d/e/1FAIpQLScIni5cPZgdqu7qrOxryH5mVVuzxh_xpqSLVY80fxATaupT5w/viewform 2/8
21/09/2022, 16:17 ASSIGNMENT_I CAP535
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLScIni5cPZgdqu7qrOxryH5mVVuzxh_xpqSLVY80fxATaupT5w/viewform 3/8
21/09/2022, 16:17 ASSIGNMENT_I CAP535
Consider two random variables X and Y with joint PMF. Find the marginal 2 points
PMFs of Y
a b
c d
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLScIni5cPZgdqu7qrOxryH5mVVuzxh_xpqSLVY80fxATaupT5w/viewform 4/8
21/09/2022, 16:17 ASSIGNMENT_I CAP535
Consider the following training data and write the observation for the test 2 points
data. How the test data will be categorized and identify the suitable way to
find the best categorization.
Probabilistic Modelling
K-Nearest Neighbour
K-Means Clustering
https://docs.google.com/forms/d/e/1FAIpQLScIni5cPZgdqu7qrOxryH5mVVuzxh_xpqSLVY80fxATaupT5w/viewform 5/8
21/09/2022, 16:17 ASSIGNMENT_I CAP535
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLScIni5cPZgdqu7qrOxryH5mVVuzxh_xpqSLVY80fxATaupT5w/viewform 6/8
21/09/2022, 16:17 ASSIGNMENT_I CAP535
Consider two random variables X and Y with joint PMF. Find the marginal 2 points
PMFs of X
a b
c d
Clear selection
https://docs.google.com/forms/d/e/1FAIpQLScIni5cPZgdqu7qrOxryH5mVVuzxh_xpqSLVY80fxATaupT5w/viewform 7/8
21/09/2022, 16:17 ASSIGNMENT_I CAP535
Clear selection
Which of the following is/are not the task of machine learning? 2 points
Anomaly detection
Sampling
Page 1 of 1
This form was created inside of SASTRA DEEMED TO BE UNIVERSITY. Report Abuse
Forms
https://docs.google.com/forms/d/e/1FAIpQLScIni5cPZgdqu7qrOxryH5mVVuzxh_xpqSLVY80fxATaupT5w/viewform 8/8
*~ ~ ~ 4G+ .,II i 85%
Clear selection
quantity is impractical.
respectively
generated by a probability
distribution over datasets
Q i.i.d. assumptions
Q identically distributed
Q density estimation
@ both
regression task?
0 70
@ 68
0 50
model involves in
ASSIGNMENT_III CAP535
[email protected] Switch account Draft saved
* Required
For which value of θ is the probability of the observed sample is the * 2 points
largest?
The highest value of θ is the probability of the observed sample is known as * 1 point
Bayesian Inference
Bayesian Statistics
Frequentist Statistics
1 of 6 09/10/22, 2:22 pm
ASSIGNMENT_III CAP535 https://docs.google.com/forms/d/e/1FAIpQLSf39UK57RNwZTmzaw...
Suppose that you would like to estimate the portion of voters in your town * 2 points
that plan to vote for Party A in an upcoming election. To do so, you take a
random sample of size n from the likely voters in the town. Since you have
a limited amount of time and resources, your sample is relatively small.
Specifically, suppose that n=20. After doing your sampling, you find out
that 6 people in your sample say they will vote for Party A.
20
0.3
3.3
2 of 6 09/10/22, 2:22 pm
ASSIGNMENT_III CAP535 https://docs.google.com/forms/d/e/1FAIpQLSf39UK57RNwZTmzaw...
Option 1 Option 2
Option 3 Option 4
3 of 6 09/10/22, 2:22 pm
ASSIGNMENT_III CAP535 https://docs.google.com/forms/d/e/1FAIpQLSf39UK57RNwZTmzaw...
which among the following illustrate the Mean Squared Error for the * 4 points
statement below.
Option 1 Option 2
Option 3 Option 4
4 of 6 09/10/22, 2:22 pm
ASSIGNMENT_III CAP535 https://docs.google.com/forms/d/e/1FAIpQLSf39UK57RNwZTmzaw...
Let T be the time that is needed for a specific task in a factory to be * 3 points
18,8,2
18,9,2
19,9,3
19,8,3
The MAP estimate of the random variable X, given that we have * 2 points
5 of 6 09/10/22, 2:22 pm
ASSIGNMENT_III CAP535 https://docs.google.com/forms/d/e/1FAIpQLSf39UK57RNwZTmzaw...
* 4 points
1,0,1,1
0,0.02,0.1,0
0,1,2,3
1,0.2,0.1,0
This form was created inside of SASTRA DEEMED TO BE UNIVERSITY. Report Abuse
6 of 6 09/10/22, 2:22 pm
ASSIGNMENT_4_CAP535 https://docs.google.com/forms/d/e/1FAIpQLSeEmt5H2k816W9nCIH...
ASSIGNMENT_4_CAP535
[email protected] Switch account Saving…
* Required
Email *
How many number of parameters( say for eg...M features in dataset) are * 2 points
M+3
M(M+1)/2
M(M+5)/2 + 1
Which of the following methods do we use to best fit the data in Logistic * 2 points
Regression?
MLE
RMSE
both
1 of 4 20/10/22, 10:26 am
ASSIGNMENT_4_CAP535 https://docs.google.com/forms/d/e/1FAIpQLSeEmt5H2k816W9nCIH...
algorithm?
True
False
True -False: IRLS uses second derivative for framing the objective function * 2 points
True
False
None of them
Both
Linear Regression
Softmax Regression
None of them
2 of 4 20/10/22, 10:26 am
ASSIGNMENT_4_CAP535 https://docs.google.com/forms/d/e/1FAIpQLSeEmt5H2k816W9nCIH...
What will be the dimension of Target matrix when 'M' features and "K" * 2 points
classes?
MXM
KXK
MXK
None of them
True - False : Gradient Descent technique uses first derivative for updating * 2 points
weight parameters?
True
False
which matrix used in Newton Rahson method for updating 'W' parameters * 2 points
Sparse matrix
Scattered Matrix
Hessian Matrix
None of them
3 of 4 20/10/22, 10:26 am
ASSIGNMENT_4_CAP535 https://docs.google.com/forms/d/e/1FAIpQLSeEmt5H2k816W9nCIH...
Find out one hot vector representation for K=6 in C(3) ? * 2 points
<0,0,0,0,0,1>
<0,0,1,0,0,0>
<1,0,0,0,0,0,0>
None of them
This form was created inside of SASTRA DEEMED TO BE UNIVERSITY. Report Abuse
4 of 4 20/10/22, 10:26 am
ASSIGNMENT_5_CAP535 https://docs.google.com/forms/d/e/1FAIpQLSddPlnrW3XCbSJYH2k...
Bayesian approach for logistic regression is more complex than for linear 2/2
regression
False
True
CDF
None of them
Both
1 of 5 26/10/22, 11:33 pm
ASSIGNMENT_5_CAP535 https://docs.google.com/forms/d/e/1FAIpQLSddPlnrW3XCbSJYH2k...
true
false
Option 1 Option 2
clustering
Regression
ClassiFcation
All of them
2 of 5 26/10/22, 11:33 pm
ASSIGNMENT_5_CAP535 https://docs.google.com/forms/d/e/1FAIpQLSddPlnrW3XCbSJYH2k...
both
none of them
Differentiation
Integration
Difference
Multiplication
Linear Regression
Logistic Regression
Probit Regression
3 of 5 26/10/22, 11:33 pm
ASSIGNMENT_5_CAP535 https://docs.google.com/forms/d/e/1FAIpQLSddPlnrW3XCbSJYH2k...
Discriminative model
Generative model
4 of 5 26/10/22, 11:33 pm
ASSIGNMENT_5_CAP535 https://docs.google.com/forms/d/e/1FAIpQLSddPlnrW3XCbSJYH2k...
5 of 5 26/10/22, 11:33 pm
ASSIGNMENT_6_CAP535 https://docs.google.com/forms/d/e/1FAIpQLSd3VVnSJ-FRYgSXUav...
None of them
True
False
1 of 4 26/10/22, 11:35 pm
ASSIGNMENT_6_CAP535 https://docs.google.com/forms/d/e/1FAIpQLSd3VVnSJ-FRYgSXUav...
None of them
Kernal function
None of them
How accurately the SVM can predict outcomes for unseen data
2 of 4 26/10/22, 11:35 pm
ASSIGNMENT_6_CAP535 https://docs.google.com/forms/d/e/1FAIpQLSd3VVnSJ-FRYgSXUav...
Selection of Kernel
Kernel Parameters
All of them
Support vectors are the data points that lie closest to the decision *2/2
surface.
True
False
Under<tting
Over<tting
3 of 4 26/10/22, 11:35 pm
ASSIGNMENT_6_CAP535 https://docs.google.com/forms/d/e/1FAIpQLSd3VVnSJ-FRYgSXUav...
Which of the following are real world applications of the SVM? 2/2
Image Classi<cation
4 of 4 26/10/22, 11:35 pm
ASSIGNMENT_VII CAP535 https://docs.google.com/forms/d/e/1FAIpQLSceAGbPM6SQd0kIUQg...
ASSIGNMENT_VII CAP535
[email protected] Switch account Draft saved
* Required
The following table shows sample data obtained from two different fruits. * 2 points
Banana
Apple
Single layer perceptrons can be used for solving XOR operations * 1 point
True
False
1 of 3 07/11/22, 2:07 pm
ASSIGNMENT_VII CAP535 https://docs.google.com/forms/d/e/1FAIpQLSceAGbPM6SQd0kIUQg...
Assume that the learning rate is 0.01, the actual output is +1 and the * 6 points
resultant is -1. what will be the updated weights of w1 (0) = -30, w2 (0)
=300, b(0)= -1230, η = 0.01 after one iteration
No change
For the data table given above, train a single layer perceptron model using * 2 points
the parameters (w1 (0) = -30, w2 (0) =300, b(0)= -1230, η = 0.01) to classify
the two fruits. Using the model parameters you have obtained, classify the
fruit with weight 114gm and length 15.2gm.
Banana
Apple
For the data table given above, train a single layer perceptron model using * 2 points
the parameters (w1 (0) = -30, w2 (0) =300, b(0)= -1230, η = 0.01) to classify
the two fruits. Using the model parameters you have obtained, classify the
fruit with weight 121gm and length 16.8cm.
Banana
Apple
2 of 3 07/11/22, 2:07 pm
ASSIGNMENT_VII CAP535 https://docs.google.com/forms/d/e/1FAIpQLSceAGbPM6SQd0kIUQg...
With the updated weights from previous question, what is the class of the * 2 points
Apple
Banana
This form was created inside of SASTRA DEEMED TO BE UNIVERSITY. Report Abuse
3 of 3 07/11/22, 2:07 pm
1/28/23, 10:37 PM Machine Learning - MCA Thalee
Machine Learning
Week 13 Assignment
Posted on December 16 : Due on December 23
import re
a=" SASTRA UNIVERSITY "
a=re.sub("\s","**",
a)
print(a)
Qe SASTRA**UNIVERSITY
SASTRAUNIVERSITY
SASTRAUNIVERSITY
None of them
import re
a=" SASTRA UNIVERSITY "
a=re.sub("\s","",a)
print(a)
SASTRA**UNIVERSITY
SASTRAUNIVERSITY
SASTRA UNIVERSITY
@© SASTRAUNIVERSITY
https://mca-thalee.netlify.app/subjects/ml/ml-home/ 1/14
1/28/23, 10:37 PM Machine Learning - MCA Thalee
import re
a="123SASTRA 456UNIVERSITY "
a=re.sub("[@-9]","",a)
print(a)
@ SASTRA UNIVERSITY
I23SASTRA 456UNIVERSITY
123S456
None of them
import re
a="123SASTRA 456UNIVERSITY "
a=re.sub("[*@-9]","",a)
print(a)
Qe 123456
1I23SASTRA 456UNIVERSITY
SASTRA UNIVERSITY
None of them
import re
a="123SASTRA 456UNIVERSITYaaa "
a=re.sub("[4@-9a-z]","",a)
print(a)
@ 123456aaa
123456
SASTRA UNIVERSITY
None of them
import string
str="aaa bbb ccc"
str="".join(i.upper() for i in str)
print(str)
https://mca-thalee.netlify.app/subjects/ml/ml-home/ 2/14
1/28/23, 10:37 PM Machine Learning - MCA Thalee
None of them
import string
str="aaa!! bbb&& ccc"
str="".join(i.upper() for i in str if i not in string.punctuation)
print(str)
@ nitk.tokenize.word_tokenize(str)
nitk.tokenize.char_tokenize(str)
none of them
stemming
© Lemmatiization
Stopwords removal
None of them
Week 12 Assignment
Posted on December 7 : Due on December 15
What function will be used to find how many items a tuple has?
print
rowcount
https://mca-thalee.netlify.app/subjects/ml/ml-home/ 3/14
1/28/23, 10:37 PM Machine Learning - MCA Thalee
@ len
None of them
one
two three
three
print("Hello world")
T = (‘aa', 'b', ‘c', ‘b’', ‘aa’, ‘a’, ‘a')
print(Counter(T))
https://mca-thalee.netlify.app/subjects/ml/ml-home/ 4/14
1/28/23, 10:37 PM Machine Learning - MCA Thalee
List = [1, 2, 3, 4, 5, 6, 7, 8, 9]
n=List[ :1]+List[6:-1]
print(n)
@ [17,8]
[1]
[1,7,8,9]
can't use -1
List = [1, 2, 3, 4, 5, 6, 7, 8, 9]
n=List[@]=180
print(List)
[100]
@ [100, 2, 3, 4,5, 6, 7, 8, 9]
can't use assignment operator on list
None of them
True
@ False
@ true
False
https://mca-thalee.netlify.app/subjects/ml/ml-home/ 5/14
1/28/23, 10:37 PM Machine Learning - MCA Thalee
D = {[2,2]: 25,
True: ‘a',
‘name': ‘Bob’}
print(D)
Week Tl Assignment
Posted on November 3@ : Due on December 7
Bool values
None of them
x=Fraction(2,7)
print(x)
@ 2/7
7/2
2.0/7.0
0.28
s = “Python”
print(s[3:])
https://mca-thalee.netlify.app/subjects/ml/ml-home/ 6/14
1/28/23, 10:37 PM Machine Learning - MCA Thalee
@ hon
h
Pyt
None of them
s=“Python”
print(s.find("an"
Q-1
x=False*88
print(x)
88
1
Qo
None of them
| T = (1, ‘abc’, 1.23, True). Is this the correct way of creation of the tuple?
No
@ Yes
print(c)
blue
green
@ Triggers ValueError: too many values to unpack
https://mca-thalee.netlify.app/subjects/ml/ml-home/ 7/14
1/28/23, 10:37 PM Machine Learning - MCA Thalee
None of them
100
None of them
(f,e/)
@ (,e)
(d','c),'b)
None of them
(‘black’green’blue’)
(‘black’)
@ Triggers TypeError: ‘tuple’ object does not support item assignment
None of them
Week 10 Assignment
https://mca-thalee.netlify.app/subjects/ml/ml-home/ 8/14
1/28/23, 10:37 PM Machine Learning - MCA Thalee
True
@ False
31 and ,Meena
@ 23 and Meena
Both have same value Meena
31 and 23
True
@ False
Cc
C++
JAVA
@ None of them
Strings
@ Comments
Line continuation
All of them
A 20
85
@ TypeeError
https://mca-thalee.netlify.app/subjects/ml/ml-home/ 9/14
1/28/23, 10:37 PM Machine Learning - MCA Thalee
None of them
@ True
False
142+3+4
10
@ 16828 3&E4
None of them
4.0
@ 4.4
None of them
Week 9 Assignment
Posted on November 13 : Due on November 21
Suppose you have a dataset from where you have to predict three classes. Then
which of the following configuration you should use in the output layer?
https://mca-thalee.netlify.app/subjects/ml/ml-home/ 10/14
1/28/23, 10:37 PM Machine Learning - MCA Thalee
What is pooling?
Decrease the features size, in order to decrease the computional power that are
needed.
It has the highest accuracy among all alghoritms that predicts images.
@ Little dependence on pre processing, decreasing the needs of human effort
developing its functionalities.
It is easy to understand and fast to implement.
Sharing weights among the features, make it easier and faster to CNN predict the
correct image
It calculate the feature’s weights and compare with other alghorithms in order to
find the best parameters.
It means that CNN use the weights of each feature in order to find the best model to
make prediction, sharing the results and returning the average
@ It is what makes CNN ‘convolutional’. Forcing the neurons of one layer to share
weights, the forward pass becomes the equivalente of convolving a filter over the
image to produce a new image. Then the training phase become a task of learning.
https://mca-thalee.netlify.app/subjects/ml/ml-home/ 11/14
1/28/23, 10:37 PM Machine Learning - MCA Thalee
Which of the following activation function can not be used in the output layer of an
image classification model?
@ Relu
Softmax
Sigmoid
None
© Mainly to process and analyse digital images, with some success cases involving
processing voice and natural language.
It is a Multi purpose algorithm that can be used for Supervised learning.
Week 8 Assignment
https://mca-thalee.netlify.app/subjects/ml/ml-home/ 12/14
1/28/23, 10:37 PM Machine Learning - MCA Thalee
C. Gradient Boosting
@ D. Decision Tree
No change
0.56,0.51
@ 0.51,0.56
0.5,0.55
@ cos(y)
cos(y) x sin(y) +1
cos(y)+xsin(y)+1
sin(y)
What is true about an ensembled classifier?
1. Classifiers that are more “sure” can vote with more conviction
2. Classifiers can be more “sure” about a particular part of the space
3. Most of the times, it performs better than a single classifier
land 2
land 3
2 and 3
@ All of the above
https://mca-thalee.netlify.app/subjects/ml/ml-home/ 13/14
1/28/23, 10:37 PM Machine Learning - MCA Thalee
[ If we didn't assign a base estimators to the bagging classifier it will use by default:
Logistic regression
Linear regression
@ Decision tree
KNN
Calculate the directional derivative of the function in the given directions and at the
stated points:
12
@ -12
-6
(x2 + Y2)%
xj/(xA2 + Y2)% + yi/ (xa2 + Y2)%
x/(xA2 + Y2)%5 + y](xA2 + y2%
@ xi/(xA2 + V2) + yj/(xa2 + Y2%
True
@ False
Select a point from the answers below at which the scalar field f(x, y, z) = x(A2yz -
xyA2z) decreases in the y direction
(1,-1,2)
@ (11)
(-1,1,2)
(1,0,1)
https://mca-thalee.netlify.app/subjects/ml/ml-home/ 14/14