0% found this document useful (0 votes)
7 views

ML assignment-2 pdf

The document outlines an assignment on machine learning covering various topics including the Find S Algorithm, learning systems, concept learning, model selection and evaluation, model performance metrics, K-NN classification, linear and polynomial regression, decision trees, ID3 tree construction, regression trees, Naïve Bayes algorithm, and nearest centroid classification. It includes practical exercises with datasets for students to apply these concepts. Each section requires the application of specific algorithms or methods to analyze the provided data.

Uploaded by

zahedabanup
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

ML assignment-2 pdf

The document outlines an assignment on machine learning covering various topics including the Find S Algorithm, learning systems, concept learning, model selection and evaluation, model performance metrics, K-NN classification, linear and polynomial regression, decision trees, ID3 tree construction, regression trees, Naïve Bayes algorithm, and nearest centroid classification. It includes practical exercises with datasets for students to apply these concepts. Each section requires the application of specific algorithms or methods to analyze the provided data.

Uploaded by

zahedabanup
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Machine Learning.

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 :

Test vs Disease Has Disease cancer Has No Disease as cancer


positive True positive False positive
Negative False Negative True Negative

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).

S.No. CGPA Assessment Project submitted Result


1. 9.2 85 8 Pass
2. 8 80 7 Pass
3. 8.5 81 8 Pass
4. 6 45 5 Fail
5. 6.5 50 4 Fail
6. 8.2 72 7 Pass
7. 5.8 38 5 Fail
8. 8.9 91 9 Pass

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.

11.Consider training dataset T Consists 10 instances with Attributes such as CGPA,


Practical Knowledge. The target attributes is Job offer. Apply ID3 Tree
Construction, Find Entropy_Info and Gain.

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.

S.No. CGPA Interactiveness


1. ≥9 Yes
2. ≥8 No
3. ≥9 No
4. <8 No
5. ≥8 Yes
6. ≥9 Yes
7. <8 Yes
8. ≥9 No
9. ≥8 Yes
10. ≥8 Yes

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

You might also like