Skip to content

Commit 73072fb

Browse files
committed
remove examples
1 parent 4ab9a95 commit 73072fb

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

aeon_neuro/distances/_reimannian.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@ def affine_invariant_distance(P, Q):
3232
-----
3333
Both `P` and `Q` must be symmetric positive definite. If matrices are close to
3434
singular, regularisation (e.g., adding epsilon * I) may be needed.
35-
36-
Examples
37-
--------
38-
>>> import numpy as np
39-
>>> from scipy.linalg import sqrtm
40-
>>> P = np.cov(np.random.randn(32, 100))
41-
>>> Q = np.cov(np.random.randn(32, 100))
42-
>>> affine_invariant_distance(P, Q)
43-
1.54 # example output (will vary)
4435
"""
4536
P_inv_sqrt = np.linalg.inv(sqrtm(P))
4637
middle = P_inv_sqrt @ Q @ P_inv_sqrt
@@ -79,15 +70,6 @@ def log_euclidean_distance(P, Q):
7970
-----
8071
The input matrices must be symmetric and positive definite.
8172
The matrix logarithm is computed using `scipy.linalg.logm`.
82-
83-
Examples
84-
--------
85-
>>> import numpy as np
86-
>>> from scipy.linalg import logm
87-
>>> P = np.cov(np.random.randn(32, 100))
88-
>>> Q = np.cov(np.random.randn(32, 100))
89-
>>> log_euclidean_distance(P, Q)
90-
1.82 # example output (actual value will vary)
9173
"""
9274
log_P = logm(P)
9375
log_Q = logm(Q)

0 commit comments

Comments
 (0)