Machine Learning Lab
Machine Learning Lab
COURSEOBJECTIVES
COURSEOUTCOMES
LIST OF EXPERIMENTS
BASICS
WEEK-1
Write a program to demonstrate the following
a) Operation of data types in Python.
b) Different Arithmetic Operations on numbers in Python.
c) Create, concatenate and print a string and access substring from a given string.
d) Append, and remove lists in python.
e) Demonstrate working with tuples in python.
f) Demonstrate working with dictionaries in python.
STATISTICAL OPERATIONS
WEEK-2 Using python write a NumPy program to compute the
a) Expected Value
b) Mean
c) Standard deviation
d) Variance
e) Covariance
f) Covariance Matrix of two given arrays.
DATA PREPROCESSING – CONTINUOUS / DISCRETE DATA
WEEK-3 For a given set of training data examples stored in a .CSV file, demonstrate Data Preprocessing
in Machine learning with the following steps
a) Getting the dataset.
b) Importing libraries.
c) Importing datasets.
d) Finding Missing Data.
e) Finding Outliers
f) Splitting dataset into training and test set.
g) Feature scaling.
DATA PREPROCESSING – CATEGORICAL DATA
WEEK-4 For a given set of training data examples stored in a .CSV file, demonstrate Data Preprocessing
In Machine learning with the following steps
a) Getting the dataset.
b) Importing libraries.
c) Importing datasets.
d) Finding Missing Data.
e) Encoding Categorical Data.
f) Splitting dataset into training and test set.
g) Feature scaling.
WEEK-5 DECISION TREE
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.
LINEAR REGRESSION
WEEK-6 Build a linear regression model using python for a particular data set by
a) Splitting Training data and Test data.
b) Evaluate the model (intercept and slope).
c) Visualize the training set and testing set
d) predicting the test set result
e) compare actual output values with predicted values.
MULTIPLE LINEAR REGRESSION
WEEK-7
Build a multiple linear regression model using python for a particular data set by
a) Splitting Training data and Test data.
b) Evaluate the model (intercept and slope).
c) Visualize the training set and testing set
d) predicting the test set result
e) compare actual output values with predicted values.
LOGISTIC REGRESSION
WEEK-8 The dataset contains information of users from a company‘s database. It contains information
about UserID, Gender, Age, EstimatedSalary, and Purchased. Use this dataset for predicting that a
user will purchase the company‘s newly launched product or not by Logistic Regression model.
WEEK-9 CLUSTERING
A python program to implement K-Means, Hierarchical Clustering and PCA.
WEEK-10 KNN & SVM
Write a Python program to implement KNN and SVM.
1. Aurelien Géron - Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 2nd E
September 21019, O'Reilly Media, Inc., ISBN: 9781492032649.
2. Tom Mitchel “Machine Learning”, Tata McGraW Hill, 2017.