You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a quick way of calculating knn distance from one set of points to another? i.e., I have pts and otherPts and for each point in pts want to calculate the average distance to knn in otherPoints. Current use case is an assignment for home sale price prediction in Public Policy Analytics in which we're asked, among other potential features, to consider the average distance to k nearest crimes.
Current custom function proposed by our textbook is:
Is there a quick way of calculating knn distance from one set of points to another? i.e., I have pts and otherPts and for each point in pts want to calculate the average distance to knn in otherPoints. Current use case is an assignment for home sale price prediction in Public Policy Analytics in which we're asked, among other potential features, to consider the average distance to k nearest crimes.
Current custom function proposed by our textbook is:
The text was updated successfully, but these errors were encountered: