def get_cosine(vec1, vec2):
 return (numpy.dot(vec1, vec2) / (numpy.linalg.norm(vec1) * numpy.linalg.norm(vec2)))

def get_cosine ( vec1 , vec2 ) : return ( numpy . dot ( vec1 , vec2 ) / ( numpy . linalg . norm ( vec1 ) * numpy . linalg . norm ( vec2 ) ) )
get cosine for two given vectors .