D = NP.random.randn(10000 * 10).reshape(1000, 10)
from sklearn.neighbors import BallTree as BallTree
BT = BallTree(D, leaf_size=5, p=2)
type(BT)
Most efficient way to calculate pairwise similarity of 250k lists