nlapidot3's picture
Creating app.py
92ec943
raw
history blame contribute delete
108 Bytes
from numpy.linalg import norm
import numpy as np
def cosine(x, y):
return np.dot(x,y)/(norm(x)*norm(y))