MACHINE LEARNING AND ARTIFICIAL INTELLIGENCE
USING PYTHON
Course Credit: 3 Contact Hours: 36 hours
Course objectives: This course will enable students to
1. Make use of Data sets in implementing the machine learning algorithms
2. Implement the machine learning and artificial intelligence concepts and algorithms
using python
Lecture contents
Basic Concepts and understanding the application & usage of Machine Learning.
Meaning and basics of AI and is practical scenario and its application in medical,
manufacturing etc. Introduction to Neural Network
S.N Lab Module Lab
work/
Class
1 Write a Python program to load the iris data from a given csv file into 2
a data frame and print the shape of the data, type of the data and first
3 rows.
2 Write a Python program using Scikit-learn to print the keys, number 2
of rows- columns, feature names and the description of the Iris data
3 Write a Python program to split the iris dataset into its attributes (X) 2
and labels (y). The X variable contains the first four columns (i.e.
attributes) and y contains the labels of the dataset
4 Write a Python program to draw a scatterplot, then add a joint 2
density estimate to describe individual distributions on the same plot
between Sepal length and Sepal width.
5 Write a Python program using Scikit-learn to split the iris dataset 2
into 70% train data and 30% test data. Out of total 150 records, the
training set will contain 120 records and the test set contains 30 of
those records. Print both datasets.
6 Implement and demonstrate the any suitable algorithm for finding 2
the most specific hypothesis based on a given set of training data
samples. Read the training data from a .CSV file.
7 For a given set of training data examples stored in a .CSV file, 2
implement and demonstrate the Candidate-Elimination algorithm to
output a description of the set of all hypotheses consistent with the
training examples.
8 Write a program to demonstrate the working of the decision tree using any 2
suitable algorithm. Use an appropriate data set for building the decision tree
and apply this knowledge to classify a new sample.
9 Build an Artificial Neural Network by implementing the Backpropagation 2
algorithm.
10 Write a program to implement the naïve Bayesian classifier for a sample 2
training data set stored as a .CSV file
11 Write a program to construct a Bayesian network considering medical data. 2
Use this model to demonstrate the diagnosis of heart patients using standard
Heart Disease Data Set.
12 Apply any suitable algorithm to cluster a set of data stored in a .CSV file. Use 1
the same data set for clustering using k-Means algorithm. Compare the results
of these two algorithms and comment on the quality of clustering.
13 Write a program to implement k-Nearest Neighbor algorithm to classify the 1
iris data set.
14 Implement the non-parametric Regression algorithm in order to fit data points. 1
Select appropriate data set for your experiment and draw graphs.
15 Write a Python program to get the accuracy of the Logistic Regression. 1
Course Outcomes:
Course Outcome Bloom’s Taxonomy
CO1: Ability to use data sets in implementing the Understand (K2)
machine Apply (K4)
learning algorithms
CO2: Ability to build an Artificial Neural Network Understand (K2) Apply
(K4)
CO3: Understand and ability to implement k-Nearest Understand (K2)
Neighbor algorithm Apply (K4)
CO4: Ability to implement the Regression algorithms Understand (K2) Apply
(K4)
CO5: Ability to use Scikit-learn for machine learning Apply (K4)