CP4252 Set2
CP4252 Set2
Third Semester
(Regulations 2021)
1. Implement simple linear regression to predict profits for a food truck based on the
population of the city that the truck would be placed in.
2. Write a program to demonstrate the working of the decision tree based ID3 algorithm. Use
an appropriate data set for building the decision tree and apply this knowledge to classify a
new sample.
3. Build a classification model that estimates the probability of admission based on the exam
scores using logistic regression.
4. Write a program to implement k-Nearest Neighbour algorithm to classify the iris data set.
Print both correct and wrong predictions using Python ML library classes.
5. Write a program to implement k-Means clustering algorithm to cluster the set of data
stored in .CSV file. Compare the results of various “k” values for the quality of clustering.
Page 1 of 4
8. Using Naïve Bayes classifier make a prediction of the class to which the below cases
belongs to:
9. Write a program to implement the Naïve Bayesian classifier for a sample training data set
stored as a .CSV file. Compute the accuracy of the classifier, considering few test data
sets
10. Apply EM algorithm to cluster a set of data stored in a .CSV file. Use the above data set
for clustering using k-Means algorithm. Compare the results of these two algorithms and
comment on the quality of clustering. You can add Java/Python ML library classes/API in
the program.
Page 2 of 4
11. Consider the above training data examples stored in a .CSV file, implement and
demonstrate the Candidate-Elimination algorithm to output a description of the set of all
hypotheses consistent with the training examples.
12 Implement the non-parametric Locally Weighted Regression algorithm in order to fit data
points. Select appropriate data set for your experiment and draw graphs.
13. Write a program to implement k-Nearest Neighbour algorithm to classify the iris data set.
Print both correct and wrong predictions. Java/Python ML library classes can be used for
this problem.
14. Import any CSV file to Pandas DataFrame and perform the following:
15. Build a classification model that estimates the probability of admission based on the exam
scores using logistic regression.
16. Implement un-regularized and regularized versions of the neural network cost function and
compute gradients via the backpropagation algorithm.
17. Write a program to construct a Bayesian network considering medical data. Use this model
to demonstrate the diagnosis of heart patients using standard Heart Disease Data Set.
You can use Java/Python ML library classes/API.
Page 3 of 4
18. Build a Convolutional Neural Network for Cat vs Dog Image Classification using Kaggle.
19. Implement the non-parametric Locally Weighted Regression algorithm in order to fit data
points. Select appropriate data set for your experiment and draw graphs.
20. Build an Artificial Neural Network by implementing the Backpropagation algorithm and test
the same using appropriate data sets.
Page 4 of 4