def cosineDistance(x, y):

    denom = math.sqrt(sum(x**2)*sum(y**2))
    dist = 1.0-(np.dot(x, y.conj().transpose()))/denom
    return round(dist, 6)
Broken out so derived classes can define their own trait list.
dataset/ETHPy150Open bt3gl/Advanced-Machine-Learning/k-NN/calculate_cosine_distance.py/cosineDistance--crossover with--dataset/ETHPy150Open openstack/stacktach-winchester/winchester/pipeline_handler.py/UsageHandler._get_core_fields