What's the fastest way in Python to calculate cosine similarity given sparse matrix data? What's the fastest way in Python to calculate cosine similarity given sparse matrix data? python python