We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa915da commit e8603cdCopy full SHA for e8603cd
src/tdamapper/utils/_metrics.py
@@ -2,27 +2,27 @@
2
from numba import njit
3
4
5
-@njit(fastmath=True)
+@njit(fastmath=True) # pragma: no cover
6
def euclidean(x, y):
7
return np.linalg.norm(x - y)
8
9
10
11
def manhattan(x, y):
12
return np.linalg.norm(x - y, ord=1)
13
14
15
16
def chebyshev(x, y):
17
return np.linalg.norm(x - y, ord=np.inf)
18
19
20
21
def minkowski(p, x, y):
22
return np.linalg.norm(x - y, ord=p)
23
24
25
26
def cosine(x, y):
27
xy = np.dot(x, y)
28
xx = np.linalg.norm(x)
0 commit comments