Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
7 views2 pages

ML Lab Programs

This document is a question bank for the III Semester MCA 2024 course at Srinivas University, focusing on machine learning. It includes various programming tasks using Python, such as data pre-processing, implementing algorithms like Gaussian Naive Bayes, Linear Regression, Logistic Regression, SVM, KNN, K-means, and Random Forest, as well as Market Basket Analysis. Each task specifies the required dataset size and features for implementation.

Uploaded by

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

ML Lab Programs

This document is a question bank for the III Semester MCA 2024 course at Srinivas University, focusing on machine learning. It includes various programming tasks using Python, such as data pre-processing, implementing algorithms like Gaussian Naive Bayes, Linear Regression, Logistic Regression, SVM, KNN, K-means, and Random Forest, as well as Market Basket Analysis. Each task specifies the required dataset size and features for implementation.

Uploaded by

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

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.

You might also like