Professional Documents
Culture Documents
com
Code Code
ML Algorithm ML model
TRAINING DATA Written by a human ML expert Produced automatically by the ML algo
STRESSED
SPAM HAPPY
NON-SPAM
ML primitives by type of action on test data
@ @
Subject: Tax Assessment Subject: New Post
Sender: incometax.gov Sender: reddit.com
This is often called multi- What if I want to send a point to more than one bin?
@ class classification @ What if I want to send a point to no bin?
Subject: Free movie tickets Subject: Friend Request
Sender: winfabulous.xyz Sender: facebook.com
ML primitives by type of action on test data
That is called zero-shot learning,
@ which we might discuss later!
This is often called multi-
Subject: Tax Assessment
Sender: incometax.gov label classification
@
Subject: Friend Request A data point maybe
Sender: facebook.com associated with zero or
more labels
@
Subject: Free movie tickets
Sender: winfabulous.xyz
What if I want to add more
@ classes or more labels later?
Subject: New Post
Sender: reddit.com
Money
Entertainment Work Friends Urgent Family
Matters
ML primitives by type of action on test data
This is often called regression
@ or real-valued regression to
Subject: Tax Assessment
Sender: incometax.gov 0.63
9.99 be more precise
ML is as much an art as a
@ science. Selecting the most
3.13
4.21
Subject: Friend Request suitable primitive brings out
Sender: facebook.com the artistic side of ML
0
1 10
5
Least
Notlikely
urgent
to be
at all
spam I better
Definitely
checkspam
it ASAP
Exercise
Recall the daily activity A2 you had thought of (refer to the
video “Getting Started”) for which it was difficult for you to
specify a step-by-step procedure to solve it.
Code Code
ML Algorithm ML model
TRAINING DATA
? Code Code
ML Algorithm ML model
TRAINING DATA
Code Code
ML Algorithm ML model
PREDICTED TRUE
ML primitives by type of model
Geometric Models @
Neural Models
multi-layer perceptron, convolutional networks, transformers
@
@
@
@
@
@
@
ML primitives by type of model
Probabilistic Models Distribution
of
logistic regression, Bayesian models spam emails
Distribution of
non-spam emails
ℙ ¿ @