The intuition behind weighted kNN, is to give more weight to the points which are nearby and less weight to the points which are farther away. Description. . then the pseudo-inverse or Moore-Penrose inverse of A is A+=VTW-1U If A is ‘tall’ (m>n) and has full rank A+=(ATA)-1AT (it gives the least-squares solution x lsq =A +b) If A is ’short’ (m