Local Learning By Partitioning