I have Nearest Neighbors model, built with sklearn sklearn.neighbors.NearestNeighbors, which I use to make content based recommendations.

Sometimes I need to retrieve recommendations based on query conditions. For example, I want to get items within concrete location.

How can I add location filter to Nearest Neighbors query?



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy