Chapter 2
Chapter 2
where r is a parameter that determines the type of metric being used, p and
q are L dimensional vectors.
Different Norms based on “r”:
Weighted Distance Measure
• To assign greater importance to certain attributes, a weight can be
applied to their values in the weighted distance metric.
where xj is the jth training pattern and d(x, xj) is the distance between
x and xj.
• Test pattern T(2.1, 0.7) is assigned to class 1,
since its Euclidean distance from x3 is
minimum (i.e., 1 unit)
k-Nearest Neighbour Classifier
• Similar to Nearest Neighbors Classifier (NNC) algorithm, where we
find the k nearest neighbors of a test pattern x from the training data
, and then assigning the majority class label among the k neighbors
to x.
➢If Br(T) is empty, output the majority class of the entire dataset.
➢If Br(T) is not empty, output the majority class of the data points within Br(T).
Radius distance Near Neighbours Algorithm
1-frequent itemset :
(12: 5), (1: 4), (16: 4), (4: 3), (5: 3), (8:3),
(9: 3), and (15: 3)
(With minimum support = 3)
Transaction database