SRINIVAS UNIVERSITY
Lab Question Bank - III SEMESTER MCA 2024
MACHINE LEARNING
1. Write a python program to Pre-process the given data set such as
cleaning, removing duplicate, outlier etc.
Problem: Employee Dataset with problems
Task
Display Original DataFrame
Display DataFrame after removing rows with missing values
Dispaly DataFrame after removing duplicate rows
Dispaly DataFrame after removing outliers
Dispaly Final Cleaned DataFrame
2. Write a Python program to illustrate Gaussian Naive Bayes algorithm
with minimum15 training data set and prediction for the new data.
3. Write a Python program to classify features as Cat or Dog using Gaussian
Naive Bayes algorithm with minimum 10 training data set. Features to be
considered ['mean', 'stddev'] and prediction for the new data [219.74617433,
53.87654393].
4. Write a Python program to illustrate Linear regression algorithm. Features to
be considered [year, GDP] with minimum 15 data.
5. Write a Python program to illustrate Linear regression algorithm on the
data features [Year, Rainfall] with minimum15 data.
Predict for the new year 2026
Display the result Year vs Rainfall in scatter plot.
6. Write a Python program to illustrate Logistic regression algorithm.
7. Write a Python program to illustrate SVM algorithm to predict 'Man' or
'woman' with the data features ['height','age']. Minimum training data set=20
8. Write a Python program to illustrate KNN algorithm with minimum 20
training dataset, data features (Height in cm, Weight in kg), Labels (e.g., Class 0
or 1) and predict the class for the new data [[165, 60]]
9. Write a Python program to illustrate K-means algorithm for the data_features =
["Hieght", "Age"] with minimum 20 training data. Display the the output in scatter
plot.
10. Write a Python program to illustrate Market Basket Analysis using
Apriori algorithm.
11 Write a Python program to illustrate the working of Random Forest by loading Iris
data set.
12. Write a Python program to illustrate the working of Decision Tree by loading
Iris data set.
13. Write a python program to extract two simple 2D features from an image.