Local prediction and classification techniques for machine learning and data mining