ML assignment-2 pdf
ML assignment-2 pdf
Assignment -2
1. Consider the training dataset of 4 instances of Enjoy sport. Apply the Find S-
Algorithm.
Example Sky Air Temp Humidity Wind Water Forecast Enjoysport
1 Sunny Warm Normal Strong Warm Same Yes
2 Sunny Warm High Strong Warm Same Yes
3 Rainy Cold High Strong Warm Same No
4 Sunny Warm High Strong Warm Same Yes
2. What is learning System ? Explain the steps that focuses on learning system.
3. What is concept Learning ? Explain the representation of a Hypothesis.
4. What is Model selection and Model Evaluation ? Explain the terms : i) Cross Validation
ii) Holdout Method iii) K-fold Cross Validation.
5. What is Model performance ? Explain the metrics that can be derived from this
Contingency table and list over it.
Contingency Table :
6. Consider the student performance training dataset of 8 instances given in the table,
classify whether a student will pass or fail in the course based on K-NN method.
Find (K=3).
7. Consider an example where the five weeks data. Apply linear regression technique
to predict the 7th and 9th month sales.
X1 (Week) Y1 (sales in thousand)
1. 1.2
2. 1.8
3. 2.6
4. 3.2
5. 3.8
8. What is Linearity and non- linearity relationships ? with diagram explain types of
regression methods.
9. Consider the given data provided and Apply Polynomial Regression and solve it.
X Y
1 1
2 4
3 9
4 15
10.Explain the structure of Decision tree ? What the advantages and disadvantages of
Decision Tree.
Practical Knowledge
S.No. CGPA
1. ≥9 Very good
2. ≥8 Good
3. ≥9 Average
4. <8 Average
5. ≥8 Good
6. ≥9 Good
7. <8 Good
8. ≥9 Very good
9. ≥8 Good
10. ≥8 Average
12.Construct a regression tree using the following which 10 instances, 2 Attributes and
target attributes ‘Result’. Apply the Regression Tree method.
S.No. Assessment Assignment Result
%
1. Good Yes 95
2. Average Yes 70
3. Good No 75
4. Poor No 45
5. Good Yes 98
6. Average No 80
7. Good No 75
8. Poor Yes 65
9. Average No 58
10. Good Yes 89
13.Assess a student’s performance using Naïve Bayes algorithm with the dataset
provided in table. Predict whether a student gets a job offer or not.
14. Consider the sample data given in the table, with 2 features x and y. The target classes
are ‘A’ or ‘B’. Predict the class using Nearest centroid classifier.
Note : Given Test Instance is (6,5), we can predict the class.
X Y Class
3 1 A
5 2 A
4 3 A
7 6 B
6 7 B
8 5 B