Instance Based Learning
Instance Based Learning
Chapter 8
Instance Based Learning
4
• Approaches in previous chapters
Training examples
…
New instances Target function Classified
• Instance-based learning
Training examples
5
Introduction
6
Outline
7
K nearest neighbors
K nearest neighbors is a simple algorithm that
stores all available cases and classifies new
cases based on a similarity measure (e.g.,
distance functions).
K nearest neighbors
2. Take the K nearest neighbors of the new data point according to their
Euclidean distance.
K nearest neighbors
8
K-nearest neighbor learning
9
KNN Algorithm for classification
10
K-NN Hypothesis Space
11
K-NN Hypothesis Space
Voronoi diagram
11
K-nearest neighbor learning
12
Distance Weighted Nearest Neighbor
13
Remarks on K-NN
14
Chapter 8: Instance Based Learning
1. Introduction
2. K-nearest neighbor Learning
3. Locally Weighted regression
4. Radial basis functions
5. Case based reasoning
6. Summary
15
Locally Weighted Regression
16
Locally Weighted Regression
18
Locally weighted linear regression
19
Locally weighted linear regression
20
Outline
22
Radial basis function
23
Radial basis function
( for regression)
24
Radial basis function
25
Radial basis function
Given a set of training examples of the target function, RBF
networks are typically trained in a two-stage process.
• First, the number k of hidden units is determined and each
hidden unit u is defined by choosing the values of xu and a:
that define its kernel function Ku(d(xu , x)).
Because the kernel functions are held fixed during this second
stage, the linear weight values wu can be trained very 25
efficiently.
Outline
29
Case Based Reasoning
31
Case Based Reasoning
•CBRhas been applied to problems such as conceptual
design of mechanical devices based on a stored library
of previous designs (Sycara et al. 1992),
•reasoning about new legal cases based on previous
rulings (Ashley 1990),
•solving planning and scheduling problems by reusing
and combining portions of previous solutions to
similar problems (Veloso 1992).
31
Case Study
32
CADET (Case-based Design Tool)
32
CADET (Case-based Design Tool)
32
32
32
32
32
Summary
33