COURSEPACK
SCHEME
The scheme is an overview of work-integrated learning opportunities and gets students out
into the real world. This will give what a course entails.
Course Title Machine Learning with Python Course Type Comp
Course Code E1PY210B Class MCA
Activity Credits Credit Hours Total Number of Classes per Assessment in
Semester Weightage
Lecture 3 3
Instruction Tutorial 0 0 Theory Tutorial Practical Self- CIE SEE
delivery study
Practical 1 2
Self-study 0
Total 4 5
40 30 50% 50%
Course Lead Dr. Sanjiv Sharma Course Ms. Pooja Vajpaye
Coordinator
Names Theory Practical
Course ● Dr. Sanjeev Kumar Prasad ● Dr. Sanjeev Kumar Prasad
Instructors ● Dr. Sanjiv Sharma ● Dr. Sanjiv Sharma
● Ms. Pooja Vajpaye ● Ms. Pooja Vajpaye
● Dr. Avneesh Kumar ● Dr. Avneesh Kumar
● Dr. Prashant Johri ● Dr. Prashant Johri
● Dr. Sudept Yadav ● Dr. Sudept Yadav
● Dr. Charu Agrawal ● Dr. Charu Agrawal
● Dr. VDS Baghela ● Dr. VDS Baghela
● Dr. Alok Kumar ● Dr. Alok Kumar
Course Plan
Name of The Course Machine Learning L T P S C
with Python
Course Code E1PY210B 3 0 1 4
COURSE OVERVIEW
The scientific discipline of Machine Learning focuses on developing algorithms to find patterns or make
predictions from empirical data using Python. The course deals with the basic concepts of Python
followed by various Machine Learning Algorithms. The course places machine learning in its context
within AI and gives an introduction to the most important core techniques such as Supervised and
Unsupervised Learning
COURSEPACK |
FORMAT
PREREQUISITE COURSE
PREREQUISITE COURSE YES
REQUIRED
If, yes please fill in the Details Prerequisite course code: Prerequisite course name
E1PA103B Problem Solving and
Computer Programming
COURSE OBJECTIVE
The objective of this course is to develop the skills required for Machine Learning Technologies with use
of Python to analyze data and solving ML problems like Regression and Classification using machine
learning algorithms.
COURSE OUTCOMES (COs)
Course Outcomes
After the completion of the course, the student will be able to:
CO No. Course Outcome
E1PY210B.1 Apply fundamental Python programming concepts, including data structures,
loops, and libraries such as NumPy and Pandas, to manipulate and analyze
data efficiently.
E1PY210B.2 Analyze real-world datasets using machine learning principles—such as data
preprocessing, feature selection, and model evaluation—to identify patterns,
assess model effectiveness, and justify solution approaches.
E1PY210B.3 Design supervised and unsupervised machine learning models by selecting
appropriate algorithms and optimizing hyperparameters for improved
performance.
E1PY210B.4 Solve real world problems through machine learning implementation leading
to predictions.
BLOOM’S LEVEL OF THE COURSE OUTCOMES
Bloom's taxonomy is a set of hierarchical models used for the classification of educational
learning objectives into levels of complexity and specificity. The learning domains are cognitive,
affective, and psychomotor.
INTEGRATED
Remember Understand Apply Analyse Evaluate Create
KL1 KL 2 KL 3 KL 4 KL 2 KL 6
CO No.
√
E1PY210B.1
E1PY210B.2 √
COURSEPACK |
FORMAT
E1PY210B.3 √
E1PY210B.4 √ √
PROGRAM OUTCOMES (POs): AS DEFINED BY CONCERNED THE APEX BODIES
1. Computational Knowledge: Apply knowledge of computing fundamentals, computing specialization,
mathematics, and domain knowledge appropriate for the computing specialization to the abstraction
and conceptualization of computing models from defined problems and requirements.
2. Problem Analysis: Identify, formulate, research literature, and solve complex computing problems
reaching substantiated conclusions using fundamental principles of mathematics, computing sciences,
and relevant domain disciplines.
3. Design /Development of Solutions: Design and evaluate solutions for complex computing problems,
and design and evaluate systems, components, or processes that meet specified needs with appropriate
consideration for public health and safety, cultural, societal, and environmental considerations.
4. Conduct investigations of complex Computing problems: Use research-based knowledge and
research methods including design of experiments, analysis and interpretation of data, and synthesis of
the information to provide valid conclusions.
5. Modern Tool Usage: Create, select, adapt and apply appropriate techniques, resources, and modern
computing tools to complex computing activities, with an understanding of the limitations.
6. Professional Ethics: Understand and commit to professional ethics and cyber regulations,
responsibilities, and norms of professional computing practices.
7. Life-long Learning: Recognize the need, and have the ability, to engage in independent learning for
continual development as a computing professional.
8. Project management and finance: Demonstrate knowledge and understanding of the computing and
management principles and apply these to one’s own work, as a member and leader in a team, to
manage projects and in multidisciplinary environments.
9. Communication Efficacy: Communicate effectively with the computing community, and with society
at large, about complex computing activities by being able to comprehend and write effective reports,
design documentation, make effective presentations, and give and understand clear instructions.
10. Societal and Environmental Concern: Understand and assess societal, environmental, health,
safety, legal, and cultural issues within local and global contexts, and the consequential responsibilities
relevant to professional computing practices.
11. Individual and Team Work: Function effectively as an individual and as a member or leader in
diverse teams and in multidisciplinary environments.
12. Innovation and Entrepreneurship: Identify a timely opportunity and using innovation to pursue that
opportunity to create value and wealth for the betterment of the individual and society at large.
PROGRAM EDUCATIONAL OBJECTIVES
COURSEPACK |
FORMAT
The Post Graduates of Computer Application shall:
PEO1: Be able to successfully pursue research in Computer Applications and allied disciplines at
institutions of transnational reputation.
PEO2: Serve in technical or managerial roles at Government firms, Corporates and contributing to the
society as successful entrepreneurs through startup.
PEO3: Be engaged with leading Global Software services companies, Consultancy organizations and
academic Institutions.
Program Specific Outcomes (PSOs)
The students of Computer Application shall:
PSO1: Have the ability to work with contemporary technologies in computing requisite to Industry 4.0
developing and implementing solutions to real life problems.
PSO2: Demonstrate applications development skills learned through technical training and projects to
solve real world problems.
CO-PO Mapping:
CO/PO Mapping (1 / 2 / 3 indicates strength of correlation) 3 - Strong, 2 - Medium, 1 – Low
Programme Outcomes (POs) PSOs
Cos PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2
CO1 2 3 1 2 1 3 3 1 3 2 3
CO2 3 2 2 3 3 1 2 2
CO3 2 2 2 3 3 2 1 3 2 2
CO4 3 2 3 2 3 1 3 3 1 3 3 3 3
COURSE ASSESSMENT
The course assessment patterns are the assessment tools used both in formative and summative
examinations.
TOTAL
CIE
S. Assessment CIE
SEE
No. Tools LAB Marks
AI- 1 MTE AT-2 LAB
Test
Theory 50 100 100
1
Lab 25 25 50 100
COURSE BASED LAB RUBRIC:
COURSEPACK |
FORMAT
Rubrics
Assessment Tools
Performance Execution Report Viva Total
Lab Experiment 5 Marks 5 Marks 5 Marks 10 Marks 25 Marks
COURSE CONTENT
THEORY
Contents
Mudule-1 : Introduction to Python
Python: Introduction to Python Language, Syntax of Python language, Keyword and identifiers, Variable
and Data Types, operators, Boolean values, Conditional Execution, Loops List, Dictionary, Tuple,
Numpy, Pandas.(8)
Mudule-2 : Introduction to Machine Learning
Concept of Machine Learning, Artificial Intelligence VS Machine Learning, Types of Machine Learning,
Challenges in Machine Learning, Application of Machine Learning, Data Type: Ordinal, Nominal, Ratio,
Interval. Structured, Semi structured, Unstructured Data, Machine Learning Development Life Cycle.
Supervised, Unsupervised and Reinforcement Learning; (8 )
Mudule-3: Performance Parameters in Machine Learning
Overfitting and Underfitting, Hyperparameters and Understanding of Datasets: Features selection,
Train, Test and Validation Sets, Cross validation, bias, variance, Confusion matrix, Precision, Recall,
Type-1 error, Type-2 error. (8)
Mudule-4: Regression in ML
Definition of probability, Events, Sample space, sample points, Mutually exclusive event, Equally likely
events, Independent events, Joint probability, conditional probability, marginal probability. Linear
Regression, Cost Function, Logistics Regression (8)
Mudule-5: Classification in ML
Decision trees, k-Nearest Neighbor, Unsupervised learning: Clustering Algorithms: k-Means clustering,
Single Linkage Hierarchical Clustering (8)
BIBLIOGRAPHY
COURSEPACK |
FORMAT
Text Book:
● Machine Learning Using Python. Manaranjan Pradhan, U Dineah Kumar Wiley
● Machine Learning by Tom M Mitchell. Mc Graw hill, Publisher: McGraw-Hill
Science/Engineering/Math; (March 1, 1997) , ISBN: 0070428077
Reference Book:
● David Beazley, 3rd edition “Python Cookbook”: O'Reilly
● Bishop, C. (2006). Pattern Recognition and Machine Learning. Berlin: Springer-Verlag.
● Duda, Richard, Peter Hart, and David Stork. Pattern Classification. 2nd ed. New York, NY:
Wiley-Interscience, 2000. ISBN: 9780471056690.
● Andrew Ng: n,nn.n.lCS229 Lecture Notes Andrew Ng and Tengyu Ma
● Bishop, Christopher. Neural Networks for Pattern Recognition. New York, NY: Oxford
University Press, 1995. ISBN: 9780198538646.
● Introduction to Machine Learning – Ethem Alpaydin, MIT Press, Prentice Hall of India.
● Patrick Henry Winston, Artificial Intelligence, 3rd Edition, AW, 1999.
● Elaine Ric, Kevin Knight and Shiv Shankar B. Nair, Artificial Intelligence, 3rd edition,
Tata McGraw Hill, 2009.
Webliography
● Pandas Data Frame (With Examples) ([Link])
● Exploratory Data Analysis in Python ([Link])
● [Link]
● [Link]
● [Link]
ONLINE MATERIALS AND STUDY:
● [Link]
● [Link]
Swayam/NPTEL/Moocs:
● Machine Learning NPTEL (Swayam) Courses: IIT Madras: Introduction to Machine Learning.
● [Link]
COURSEPACK |
FORMAT
● [Link]
Practical Content
The objective of this lab is to introduce students to the fundamentals of machine learning using
Python programming. Through hands-on experimentation, students will:
1. Understand Machine Learning Concepts: Gain a clear understanding of supervised and
unsupervised learning, classification, regression, and clustering techniques.
2. Learn Python Libraries: Get familiar with popular Python libraries like NumPy, Pandas,
Matplotlib, Seaborn, and Scikit-learn, which are commonly used for data manipulation,
analysis, and model implementation.
3. Data Preprocessing and Cleaning: Learn the importance of data cleaning, handling
missing values, and normalizing data to prepare it for modeling.
4. Apply Machine Learning Algorithms: Implement and evaluate various machine learning
algorithms such as linear regression, logistic regression, decision trees, k-NN, SVM, and k-
means clustering.
5. Model Evaluation: Learn how to evaluate machine learning models using metrics like
accuracy, precision, recall, F1-score, and confusion matrix.
6. Real-World Applications: Apply machine learning techniques to real-world datasets and
problems, such as predicting house prices, classifying student outcomes, or detecting spam
emails.
7. Build End-to-End Projects: Understand the process of building an end-to-end machine
learning project, from data collection and preprocessing to training, evaluating, and
deploying models
L- Topic for delivery Theory Skills Competency
No.
1 Introduction to the Course T
2 Introduction to Python – History, Features T
3 Syntax of Python – Writing and Running Python Programs T
3 Keywords, Identifiers, Variables, and Data Types T
4 Operators in Python – Arithmetic, Logical, Comparison, Bitwise, T Introduction
Assignment Co-1
to Python
5 Boolean Values, Conditional Execution (if, elif, else) T
6 Loops – for Loop, while Loop, Loop Control Statements (break, T
continue, pass)
7 Data Structures in Python – List, Tuple, Dictionary, Set (Basic T
Operations)
COURSEPACK |
FORMAT
8 Introduction to NumPy and Pandas – Arrays, DataFrames, and T
Data Manipulation
9 What is Machine Learning? AI vs ML T
10 Types of Machine Learning – Supervised, Unsupervised, T
Reinforcement Learning
11 Challenges in Machine Learning – Bias, Data Availability, T
Interpretability
12 Applications of Machine Learning in Real Life T Introduction
to Machine CO-2
13 Understanding Data Types – Ordinal, Nominal, Ratio, Interval T
Learning
14 Data Categories – Structured, Semi-structured, and Unstructured T
Data
15 Data Preprocessing – Cleaning, Normalization, Handling Missing T
Values
16 Machine Learning Development Life Cycle T
17 Introduction to Supervised Learning – Definition, Use Cases, T
Examples
18 Introduction to Unsupervised Learning – Definition, Use Cases, T
Examples
19 Reinforcement Learning – Concept, Markov Decision Process, T
Rewards Supervised
20 Overfitting vs Underfitting T and
21 Hyperparameters in ML – Learning Rate, Batch Size, Epochs, T Unsupervise
Regularization CO-3
d
Revision Class Machine
Class Test 1 T Learning
22 Understanding Datasets – Features, Labels, and Feature T
Selection Techniques
23 Train, Test, and Validation Splits – Cross Validation Techniques T
24 Confusion Matrix, Accuracy, Precision, Recall, Type-1 error, T
Type-2 error
25 Basics of Probability – Events, Sample Space, Mutually Exclusive T
Events
26 Joint Probability, Conditional Probability, Marginal Probability T
27 Introduction to Regression – Concept and Applications T
28 Linear Regression – Concept, Assumptions, Mathematical T Introduction
Formulation to Basic
29 Cost Function – Mean Squared Error, Gradient Descent T Probability CO-3, CO-4
Optimization and
30 Logistic Regression – Concept and Its Use in Classification T Regression
Problems
31 Multiple Linear Regression – Handling Multiple Features in T
Regression
32 Evaluating Regression Models – RMSE, R-Squared, Adjusted R- T
Squared
33 Introduction to Classification – What and Why? T Introduction
CO-3, CO-4
34 Decision Trees T to
COURSEPACK |
FORMAT
35 k-Nearest Neighbors (k-NN) – Algorithm, Distance Metrics, T Classificatio
Applications n and
36 Introduction to Clustering T Clustering
37 k-Means Clustering – Algorithm, Centroid Calculation, T
Optimization Techniques
38 Hierarchical Clustering – Agglomerative vs Divisive Clustering T
39 Displaying Machine Learning Model T
Revision Class
Revision Class
40 Class Test 2 T
LESSON PLAN FOR THEORY COURSES (15 weeks * 3 Hours = 45 Classes)
Instructional Method and Pedagogy:
∙ At the start of course, the course delivery pattern, prerequisite of the subject will be discussed.
∙ Lectures will be conducted with the aid of multi-media projector, White board, Marker etc.
∙ Attendance is compulsory in lecture and laboratory which carries marks in overall evaluation.
∙ One internal exam will be conducted as a part of internal theory evaluation.
∙ Assignments based on the course content will be given to the students for each unit and will be
evaluated at regular interval evaluation.
∙ Surprise tests/Quizzes/Seminar/tutorial will be conducted having a share of five marks in the overall
internal evaluation.
∙ The course includes a laboratory, where students have an opportunity to build an appreciation for the
concepts being taught in lectures.
∙ Experiments shall be performed in the laboratory related to course contents.
● As this subject is Comprehensive so Group / Individual Projects will be assigned to enhance the coding
ability,
COURSEPACK |
FORMAT
LESSON PLAN FOR PRACTICAL (15 Lab Classes)
Experiment
Title Description
Number
1 1 Python Basics – Variables, Data Types, Demonstrate variables, different data types,
and Operators and arithmetic operations.
2 2 Conditional Statements and Loops Implement if-elif-else conditions and loops
(for, while) with real-world examples (e.g.,
student grades).
3 3 Functions and File Handling Create Python functions for mathematical
operations and demonstrate reading/writing
files.
4 4 Data Structures in Python – Lists, Store and manipulate data using different
Tuples data structures.
5 4.1 Data Structures in Python - Store and manipulate data using different
Dictionaries, Sets. data structures.
6 5 NumPy Use NumPy for array operations
7 5.1 NumPy Use NumPy for indexing and slicing
8 5.2 Pandas – Handling Data Pandas for data manipulation (Load a dataset
in CSV files, basic analysis).
9 6 Data Preprocessing – Cleaning Handle missing values
10 6.1 Data Preprocessing –Normalization Normalize and regularize numerical features.
and regularization
11 7 Exploratory Data Analysis (EDA) with Use visualization techniques (histograms to
Matplotlib and Seaborn explore dataset patterns.
12 7.1 Exploratory Data Analysis (EDA) with Use visualization techniques (heatmaps) to
Matplotlib and Seaborn explore dataset patterns.
13 7.2 Exploratory Data Analysis (EDA) with Use visualization techniques (scatter plot) to
Matplotlib and Seaborn explore dataset patterns.
14 8 Implementing Linear Regression Train a Linear Regression model on a dataset
(e.g., house price prediction) and evaluate
performance.
15 9 Logistic Regression for Classification Implement Logistic Regression to classify a
dataset (e.g., predicting student pass/fail).
16 10 Decision Trees for Classification Train and visualize a Decision Tree model for
classification tasks.
COURSEPACK |
FORMAT
17 11 k-Nearest Neighbors (k-NN) Algorithm Implement k-NN for classification problems
and find the optimal k value.
18 13 k-Means Clustering Apply k-Means clustering on an unlabeled
dataset and visualize cluster formation.
19 14 Evaluating ML Models – Accuracy, Compare multiple ML models using metrics
Precision, Recall, F1-score like confusion matrix, precision, recall, and F1-
score.
20 15 Building a Complete Machine Learning Implement an end-to-end ML project (e.g.,
Project spam email detection, customer churn
prediction).
COURSE-BASED PROJECT (Psychomotor skills)
To enhance their skill set in the comprehensive course, the students are advised to execute course-based
Projects. Some sample projects are given below:
COURSE-BASED PROJECT (Psychomotor skills)
S No Suggested Projects
1 Sentiment Analysis on Social Media Data: Develop a system to analyze sentiments
expressed in tweets or other social media posts using techniques like Natural Language
Processing (NLP) and machine learning classifiers.
2 Predictive Healthcare Analytics: Build a model to predict diseases or health conditions
based on patient data, incorporating features like symptoms, medical history, and
demographic information.
3 Recommendation System: Create a recommendation system for movies, music, products, or
news articles using collaborative filtering, content-based filtering, or hybrid approaches.
4 Image Recognition for Autonomous Vehicles: Implement a system that detects and
recognizes objects in real-time images captured by cameras mounted on autonomous
vehicles, aiding in navigation and decision-making.
6 Natural Language Processing (NLP) for Chatbots: Create an intelligent chatbot
capable of understanding and responding to natural language input, using NLP
techniques like intent recognition, entity extraction, and dialogue management.
7 Predicting Stock Prices: Develop a model to predict stock prices based on historical
market data, incorporating technical indicators, news sentiment analysis, and other
relevant features.
8 Gesture Recognition: Implement a system that recognizes hand gestures from video
input, enabling gesture-based control for applications such as gaming, virtual reality,
or sign language translation.
COURSEPACK |
FORMAT
9 Customer Churn Prediction: Build a model to predict customer churn for businesses,
analyzing factors such as customer demographics, usage patterns, and interactions
with the company to identify customers at risk of leaving.
10 Music Genre Classification: Create a model that automatically classifies music tracks
into different genres based on audio features such as spectrograms, MFCCs (Mel-
Frequency Cepstral Coefficients), or rhythm patterns
11 Traffic Flow Prediction: Develop a system to predict traffic congestion and flow
patterns on road networks using historical traffic data, weather conditions, and other
relevant factors, aiding in route planning and traffic management
12 Plant Disease Detection: Implement a system that detects diseases in plants based
on images of leaves or other plant parts, helping farmers identify and treat plant
diseases early to improve crop yield.
13 Recommendation System for Online Courses: Build a personalized
recommendation system for online courses, suggesting relevant courses to users
based on their interests, learning history, and skill level.
14 Facial Expression Recognition: Develop a system that recognizes facial expressions
from images or video footage, enabling applications such as emotion analysis,
human-computer interaction, or mood tracking.
15 Predictive Healthcare Analytics: Build a model to predict diseases or health
conditions based on patient data, incorporating features like symptoms, medical
history, and demographic information.
Link for more project ideas:
1. [Link]
2. [Link]
COURSEPACK |
FORMAT