L1 ML Fundamentals
L1 ML Fundamentals
VISION
AMERICAN INTERNATIONAL UNIVERSITY-BANGLADESH (AIUB)
envisions promoting professionals and excellent leadership catering to the
technological progress and development needs of the country.
MISSION
AMERICAN INTERNATIONAL UNIVERSITY-BANGLADESH (AIUB) is
committed to provide quality and excellent computer-based academic
programs responsive to the emerging challenges of the time. It is dedicated to
nurture and produce competent world class professional imbued with strong
sense of ethical values ready to face the competitive world of arts, business,
science, social science and technology.
2
Goals of AIUB
Sustain development and progress of the university
Continue to upgrade educational services and facilities responsive of the
demands for change and needs of the society
Inculcate professional culture among management, faculty and personnel in the
attainment of the institution's vision, mission and goals
Enhance research consciousness in discovering new dimensions for curriculum
development and enrichment
VISION
Provides leadership in the pursuit of quality and excellent computer
education and produce highly skilled and globally competitive IT
professionals.
MISSION
4
Goals of Computer Science Department
Enrich the computer education curriculum to suit the needs of the industry-
wide standards for both domestic and international markets
Equip the faculty and staff with professional, modern technological and
research skills
Upgrade continuously computer hardware's, facilities and instructional
materials to cope with the challenges of the information technology age
Initiate and conduct relevant research, software development and outreach
services.
Establish linkage with industry and other IT-based organizations/institutions
for sharing of resources and expertise, and better job opportunities for
students
5
Course Evaluation
Assessment Type Marks Term
Attendance 10%
Quiz (Best one of two) 30%
Project 01 20% Mid Term (40%)
Term Assessment 40%
Total 100%
Attendance 10%
Quiz (Best one of two) 30%
Final Term (60%)
Term Assessment/Project 02 60%
Total 100%
Semester Total 100%
6
Classroom Policies
Late in Class:
Student coming after 10 minutes of due time is considered late.
3 late attendances are considered as one absent.
Late during quiz/presentation are not given additional time.
Students who are regularly late might have additional deduction of marks.
A late student will be allowed to enter the class. Don’t ask permission to enter the class,
just get in slowly and silently. Same policy implies if a student wants to go out of the class
for emergency reasons.
7
Attendance
At least 80% presence is required by the student. Absent classes must
be defended by the student through application and proper
documentation to the course teacher.
8
Makeup Evaluation
◼ There will be no makeup quiz if a student have appeared in 2 quizzes.
◼ Makeup for missing evaluations like quizzes/assignment submission
date/presentation date/viva date/etc., must go through valid application
procedure with supporting document within the deadline of the actual
evaluation date.
◼ Makeup for missing Midterm/Final term must go through Set B form along
with the supporting document within the 1st working day after exam week.
The set B exam is generally scheduled from the 2nd working day after the
exam week. Must get signature and exam date from the course teacher
and get it approved by the department Head (monetary penalty might be
imposed).
◼ Students unable to attend the set B exam may apply for set C exam within
the same time limit as set B. Such applications must be supported by very
strong reason and documentation, as they are generally rejected.
◼ The course teacher will be the judge of accepting/rejecting the request for
makeup.
9
Grading Policies
◼ All the evaluation categories & marks will be uploaded to the VUES
within one week of the evaluation process except the attendance &
performance, which will be uploaded along with the major (mid/final
term) written exam marks.
◼ Letter grades ‘A+’ through ‘F’ is counted as grades. Other grades ‘I’
and ‘UW’ are considered as temporary grades which are
counted/calculated as ‘F’ grade in the CGPA. These grades
must/will be converted to the actual grades, i.e. ‘A+’ through ‘F’.
◼ ‘I: INCOMPLETE’ is given to students who have missed at most
30% of evaluation categories (quiz/assignment/etc.). Students must
contact the course teacher for makeup, through valid application
procedures immediately after grade release.
◼ ‘UW: UNOFFICIAL WITHDRAW’ is given when the missing
evaluation categories are too high (more than 30%) to makeup. A
student getting ‘UW’ has no option but to drop the course
immediately after grade release
10
Dropping the course
◼ Must fill up the drop form and get it signed by the course
teacher, write an application to the Head of Dept. and
get it signed by the department Head, and finally submit
the form & application to the registration department.
◼ The course teacher must write down the grades (if any)
obtained in midterm, final, and grand total on the drop
form.
◼ No drop is accepted during exam week.
◼ Student with ‘F’ grades in midterm, final term, or grand
total cannot drop.
11
Finally
◼ For any missing evaluation (quiz, assignment, etc.), classes,
deadlines, etc. must contact/inform/notify the teacher immediately
after missing in the consulting hour, via email, or in unavoidable
circumstances – through the guardian or friend.
◼ Always check/visit the AIUB home page for notices, rules &
regulations of academic/university policies and important
announcement for deadlines (Course drop, Exam permit, Exam
Schedule, etc.).
12
Course Prerequisite
13
Course Objective
❑ This module introduces basic concepts and algorithms in machine
learning and neural networks.
14
Course Objective
• This course provides a broad introduction to machine learning. Topics include:
• This course will also look into a variety of artificial neural networks in terms of
architectures and learning algorithms and discuss as many successful real-world
applications as possible.
At a basic level, you’ll better understand the systems and tools that you
interact with daily. And if you stick with the subject and study more, you
can help create cutting edge ML/AI applications, like the Google Self
Driving Car, or IBM’s Watson.
Studying ML/AI now can prepare you for a job as a researching neural
networks, human-machine interfaces, and quantum artificial intelligence.
17
Why “Learn” ?
◼ Machine learning is programming computers to optimize
a performance criterion using example data or past
experience.
◼ There is no need to “learn” to calculate payroll
◼ Learning is used when:
Human expertise does not exist (navigating on Mars),
Humans are unable to explain their expertise (speech
recognition)
Solution changes in time (routing on a computer network)
Solution needs to be adapted to particular cases (user
biometrics)
18
Why learn?
21
What is learning?
22
23
History of Machine Learning
◼ 1950s
Samuel’s checker player
◼ 1960s:
Neural networks: Perceptron
Minsky and Papert prove limitations of Perceptron
◼ 1970s:
Expert systems and the knowledge acquisition bottleneck
Mathematical discovery with AM
Symbolic concept induction
24
History of Machine Learning (cont.)
◼ 1980s:
Resurgence of neural networks (connectionism,
backpropagation)
Advanced decision tree and rule learning
Learning, planning and problem solving
Utility theory
Analogy
◼ 1990s
Data mining
Reinforcement learning (RL)
Inductive Logic Programming (ILP)
Ensembles: Bagging, Boosting, and Stacking
25
History of Machine Learning (cont.)
◼ 2000s
Kernel methods
◼ Support vector machines
Graphical models
Statistical relational learning
Transfer learning
◼ Applications
Adaptive software agents and web applications
Learning in robotics and vision
E-mail management (spam detection)
…
26
What Is Machine Learning (ML)?
27
What is Machine Learning ?
A computer program M is said to learn from experience E with respect to
some class of tasks T and performance P, if its performance as measured by
P on tasks in T in an environment Z improves with experience E.
Example:
T: Cancer diagnosis
E: A set of diagnosed cases
P: Accuracy of diagnosis on new cases
Z: Noisy measurements, occasionally misdiagnosed training cases
M: A program that runs on a general purpose computer; the learner
28
Dr. M M Manjurul Islam
What is Machine Learning ?
A computer program M is said to learn from experience E with respect to
some class of tasks T and performance P, if its performance as measured by
P on tasks in T in an environment Z improves with experience E.
29
Dr. M M Manjurul Islam
Why Machine Learning ?
Solving tasks that required a system to be adaptive
Speech, face, or handwriting recognition
Environment changes over time
◼ …
33
Rote Learning is Limited
◼ Memorize I/O pairs and perform exact matching with
new inputs
34
The inductive learning problem
◼ Extrapolate from a given set of examples to make
accurate predictions about future examples
35
Learning Associations
◼ Basket analysis:
P (Y | X ) probability that somebody who buys X also
buys Y where X and Y are products/services.
36
Types of supervised learning
x2=color
Tangerines Oranges
a) Classification:
• We are given the label of the training objects: {(x1,x2,y=T/O)}
x1=size
37
Types of Supervised Learning
◼ Regression
Target function is continuous rather
than class membership
For example, you have some the
selling prices of houses as their sizes
y=price
(sq-mt) changes in a particular location
that may look like this. You may
hypothesize that the prices are
governed by a particular function f(x)
f(x). Once you have this function that
“explains” this relationship, you can
guess a given house’s value, given its
sq-mt. The learning here is the
selection of this function f() . Note 60 70 90 120 150 x=size
that the problem is more meaningful
and challenging if you imagine several
input parameters, resulting in a multi-
dimensional input space. 38
Supervised Learning
Training experience: a set of labeled examples of the form
< x1, x2, …, xn, y >
This implies the existence of a “teacher” who knows the right answers
39 Goal: minimize the error (loss function) on the test examples
Classification
◼ Example: Credit
scoring
◼ Differentiating
between low-risk
and high-risk
customers from their
income and savings
40
Classification: Applications
Pattern Recognition
Test images
ORL dataset,
AT&T Laboratories, Cambridge UK
42
Supervised Learning: Uses
◼ Prediction of future cases: Use the rule or model to
predict the output for future inputs
43
Unsupervised Learning
◼ Learning “what normally happens”
◼ Example applications
Customer segmentation in CRM
Image compression: Color quantization
Bioinformatics: Learning motifs
44
Reinforcement Learning
Training experience: interaction with an environment; learning agent receives a
numerical reward
Learning to play chess: moves are rewarded if they lead to WIN, else penalized
No supervised output but delayed reward
What to learn: a way of behaving that is very rewarding in the long run - Learning a
policy: A sequence of outputs
46
Dr. M M Manjurul Islam
Learning: Key Steps
• data and assumptions
– what data is available for the learning task?
– what can we assume about the problem?
• representation
– how should we represent the examples to be classified
• method and estimation
– what are the possible hypotheses?
– what learning algorithm to use to infer the most likely hypothesis?
– how do we adjust our predictions based on the feedback?
• evaluation
– how well are we doing?
…
Theoretical
Analyze algorithms mathematically and prove theorems about their:
Computational complexity
Ability to fit training data
Sample complexity (number of training examples needed to learn an accurate
function)