Introduction To AI - Prof - NiloyGanguly
Introduction To AI - Prof - NiloyGanguly
Niloy Ganguly
Professor IIT Kharagpur
Turing Test
image from
http://en.wikipedia.org/wiki/Turing_test
Turing Test on Unsuspecting
Judges
• Logic
• Rules
• Semantic Graphs/Nets
A Few Statements
• Someone is graduating.
Animal
Is a
Is a
Elephant has
Nellie
Lives in head
Africa
Hit the Wall
– Ambiguity: highly funded translation programs (Russian
to English) were good at syntactic manipulation but bad
at disambiguation
一 Collection of
measurements or
observations that can be
used to train a model.
一 Can be categorical
(cats,dogs,lion,etc),
ordinal (tall, medium,
short), continuous (10-
15,15-20,20-25,...).
Data
Machine Learning
—a field of study in artificial intelligence concerned with
the development and study of statistical algorithms that
can learn from data (seen data) and generalize to unseen
data and thus perform tasks without explicit instructions.
Cats Dogs
Supervised Learning
Human Perspective
– Scenario [How a child learns]
• Now, we provide the child with some images and ask
the child which is what?
Supervised Learning
Human Perspective
– Scenario [How a child learns]
• Child guesses the images are cats and dogs as shown
below.
Cats Dogs
Facial Features
Supervised Learning
Model Perspective
– Model Perspective
• If we are to use a machine learning model which tells
us how to decide/classify which is a cat or dog, we train
the model on the images as shown below
Cats Dogs
Train
Machine Learning
Model
Supervised Learning
Model Perspective
– Procedure :
• Divide Dataset into Train and Test
Cats Dogs
Problems with
Data Annotation
– Supervised Learning requires labelled data.
– Large amounts of data available (in Zettabytes).
– Almost all are unlabelled.
– Cannot label each and every data be it image, text, audio,
video, molecules etc. Labour Intensive
– What can we do?
Unsupervised Learning
When data is unlabelled
Unsupervised Learning
– Definition :
Type of learning where data is unlabelled/unknown and
models learn these type of data for hidden patterns or data
groupings.
– Types :
● Clustering : Discover groupings from unknown data.
Example : Spam Emails
● Association : Find out rules to express your unknown
data. Example : Recommendation System
Unsupervised Learning
– Scenario [Human Behavior]
• Suppose your class is being ready for a group photograph and
taking positions in order of heights.
• You do not possess any prior knowledge of the heights of your
classmates.
Unsupervised Learning
– Scenario [Human Behavior]
• You try to get into a position according to the height.
• You figure it out without being told as to where to
stand.
Unsupervised Learning
Cluster of
Detective
Novels also bought these
Recommender Systems
Example of Unsupervised Learning
Semi Supervised Learning
– Definition :
● Supervised Unsupervised
● Using labelled and unlabelled data for classification and
regression tasks.
● Number of labelled data is usually much less than that
of unlabelled data.
● Primarily dealing with unlabelled data.
– One such example is pseudo labelling.
Semi Supervised Learning
Books are
present, know
labels of some
and not of
others
Semi Supervised Learning
History Chemistry
History Chemistry
History Chemistry
Model Learned
Parameters
History Chemistry
— Generative Tasks :
• Generates sentences based on instruction.
• ChatGpt
Generative Task is a
Discriminative Task!
Consider the well known sentence containing all the
English Alphabets -
Suppose Given
Recursively Given “The quick brown fox”, classify which word will be
the next word — the model classify “jumps”
Given .“The quick brown fox jumps”, classify which word will be the
next word — the model will classify “over” and so on….
niloy@cse.iitkgp.ac.in
End of Slides