Advanced Machine Learning
Advanced Machine Learning
f( ) = “apple”
f( ) = “tomato”
f( ) = “cow”
y = f(x)
output prediction Image
function feature
● Supervised learning
● Unsupervised learning
● Reinforcement learning
● Supervised learning
○ Clustering
○ Association
Reinforcement learning
Probability basics
20AIPC403
ADVANCED MACHINE LEARNING
Axioms of Probability
For any propositions A, B
1. 0<=P(a) <= 1
2. P(true) = 1 and P(false) = 0
3. P (a ∨ b) = P(a) + P (b) − P (a ∧ b)
Remembrance
!Conditional Probability
!Product Rule
!Bayes Rule
20AIPC403
ADVANCED MACHINE LEARNING
Bayesian Networks
20AIPC403
ADVANCED MACHINE LEARNING
Definition
"A Bayesian network is a probabilistic graphical model which
•
represents a set of random variables and their conditional
dependencies using a directed acyclic graph(DAG).”
• Real world applications are probabilistic in nature, and to represent
the relationship between multiple events, we need a Bayesian
Syntax:
network.
• a set of nodes, one per random variable
• a directed, acyclic graph (link ≈ "directly influences")
• a conditional distribution for each node given its parents: P
(Xi | Parents (Xi))
Bayesian
A Bayesian network graph is network
made up of nodes and Arcs
(directed links)
Each node corresponds to the
random variables, and a variable
can be continuous or discrete.
• i.e., grows linearly with n, vs. O(2n) for the full joint
distribution
Global Semantics
Global semantics defines the full joint distribution is defined as the
product of the local conditional distributions:
P(x ,x ,x ,…x ) =# P(x /parents(x )
1 2 3 n i=1 to n i i
Ex:
Ex:
Ex 2: For E, given C, D then A, B
are independent of E
Ex:1 Ex 2:
Constructing Bayesian
1. Choose an ordering of variables X , … ,X
networks
1 n
2. For i = 1 to n
– add
– selectXparents
i
to the network
from X , …,X such that
1 i-1
P (X | Parents(X )) = P (X | X , ... X )
i i i 1 i-1
Example
• I'm at work, neighbor David calls to say my alarm is ringing,
but neighbor Sophia doesn't call. Sometimes it's set off by
minor earthquakes. Is there a burglar?
• Variables:
• Burglary, Earthquake, Alarm, DavidCalls, SophiaCalls
Burglary Example
20AIPC403
ADVANCED MACHINE LEARNING
Applications
It can be used in various tasks including