CSE-4119 Assignment
CSE-4119 Assignment
Machine Learning
CSE-4119
Student ID Assigned Question
20221001010 1
20221002010 2
20221003010 3
20221004010 4
20221005010 5
20221006010 6
20221007010 7
20221008010 8
20221009010 9
20221010010 8
20221013010 5
20221015010 8
20221016010 2
20221017010 7
2022018010 3
20221021010 7
20221022010 1
20221023010 2
20221026010 3
20221027010 4
20221029010 5
20221030010 6
20221031010 7
20221033010 8
20221036010 9
20221037010 6
20221038010 7
20221039010 9
20221040010 5
20221044010 1
20221171010 7
20221153010 3
20221066010 1
20221068010 2
20221075010 3
20221061010 5
20221046010 2
20221052010 8
20221121010 3
20221180010 7
List of Questions
Sl. Question
1 Build a Decision Tree model using ID3 algorithm that computes the logical (i) AND (ii)
NAND and (iii) NOR function. (Sketch the final trees also)
2 Build a Decision Tree model using ID3 algorithm that computes the logical (i) OR (ii)
XOR and (iii) XNOR function. (Sketch the final trees also)
3 Build a Decision Tree model using C4.5 algorithm that computes the logical (i) AND (ii)
NAND and (iii) NOR function. (Sketch the final trees also)
4 Build a Decision Tree model using C4.5 algorithm that computes the logical (i) OR (ii)
XOR and (iii) XNOR function. (Sketch the final trees also)
5 Build a Decision Tree model using CART algorithm that computes the logical (i) AND
(ii) NAND and (iii) NOR function. (Sketch the final trees also)
6 Build a Decision Tree model using CART algorithm that computes the logical (i) OR (ii)
XOR and (iii) XNOR function. (Sketch the final trees also)
7 You have been hired by the European Space Agency to build a model that predicts the
amount of oxygen that an astronaut consumes when performing five minutes of intense
physical work. The descriptive features for the model will be the age of the astronaut and
their average heart rate throughout the work.
ID Age Heart OxyCon
Rate
1 41 138 37.99
2 42 153 47.34
3 37 151 44.38
4 46 133 28.17
5 48 126 27.07
6 44 144 37.85
Assuming that the current weights in a multivariate linear regression model are w[0] =
−59.50, w[1] = −0.15, and w[2] = 0.60 and a learning rate of 0.000002, calculate the
weights after 5 iterations using gradient descent algorithm, and show the linear regression
model. Then Test the following test data.
ID Age Heart OxyCon
Rate
1 48 149 ?
8 You have been hired by the European Space Agency to build a model that predicts the
amount of oxygen that an astronaut consumes when performing five minutes of intense
physical work. The descriptive features for the model will be the age of the astronaut and
their average heart rate throughout the work.
ID Age Heart OxyCon
Rate
1 41 138 37.99
2 42 153 47.34
3 37 151 44.38
4 46 133 28.17
5 48 126 27.07
6 44 144 37.85
Propose a multivariate linear regression model using matrix-based direct method. Then
Test the following test data.
ID Age Heart OxyCon
Rate
1 48 149 ?
9 You have been hired by the Khulna Development Authority (KDA) to build a model that
predicts the ownership of land in Khulna city The descriptive features for the model will
be the income of the owner in dollar and the plot size.
ID Income Plot Size Ownership
1 60.0 18.4 Owner
2 64.8 21.6 Owner
3 84.0 17.6 Non-owner
4 59.4 16.0 Non-owner
5 108.0 17.6 Owner
6 75.0 19.6 Non-owner
Assuming that the current weights in a multivariate linear regression model are w[0] =
−25.93, w[1] = 0.11, and w[2] = 0.96 and a learning rate of 0.000002, calculate the weights
after 5 iterations using gradient descent algorithm, and show the logistic regression model.
Then Test the following test data.