Machine Learning Lab Programs
1. Implement linear regression using python
2. Python Implementation of Support Vector Machine.
3. 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.
4. Write a program to implement K-Nearest Neighbors algorithm to classify the iris data set.
Print both correct and wrong predictions. Java/Python ML library classes can be used for
this problem.
5. Write a Program to implement the naive Bayesian classifier for a sample training data set
stored as a .CSV file. Compute the accuracy of the classifier few test data sets.
6. The probability that it is Friday and that a student is absent is 3%. Since there are 5 school
days in a week, the probability that it is Friday is 20%. What is the probability that a
student is absent given that today is Friday? Apply Bayes’ rule in python to get the result.
(Ans: 15%).
7. 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.
8. Implement and demonstrate a program for dimensionality reduction.
9. Implement clustering Algorithm in python.
10. Write a program to Implementing a Random Forest classifier