πŸŽ“ Computer Science & Engineering Portal

Master Engineering Disciplines with Structured Notes

Comprehensive academic lecture notes, exam-oriented unit summaries, laboratory manuals, and previous year question papers designed strictly for university students.

πŸ“‘

University Syllabi

AKTU & AICTE aligned semester guidelines.

πŸ“

Exam Question Papers

Previous 5 years solved university papers.

πŸ’‘

Lab Manuals & Viva

Practical codes with outputs & interview Qs.

Core Subjects & Units Hub

Click on any specific unit to immediately view its lecture notes below

Viewing All Lectures

Distance-Weighted Nearest Neighbor Algorithm

  • The refinement to the k-NEAREST NEIGHBOR Algorithm is to weight the contribution of each of the k neighbors according to their distance to the query point xq, giving greater weight to closer neighbors.
  • For example, in the k-Nearest Neighbor algorithm, which approximates discrete-valued target functions, we might weight the vote of each neighbor according to the inverse square of its distance from xq

 Distance-Weighted Nearest Neighbor Algorithm for approximation a discrete-valued target functions



Distance-Weighted Nearest Neighbor Algorithm for approximation a Real-valued target functions


 

Terminology

  • Regression means approximating a real-valued target function.
  • Residual is the error 𝑓̂(x) - f (x) in approximating the target function.
  • Kernel function is the function of distance that is used to determine the weight of each training example. In other words, the kernel function is the function K such that

wi = K(d(xi, xq))

Labels: ,

Discussion & Queries (<$I18NNumComments$>):

<$CommentPager$>
<$I18NAtCommentTimeWithPermalink$>, <$I18NCommentAuthorSaid$>

<$BlogCommentBody$>

<$BlogCommentDeleteIcon$>
<$CommentPager$>