Skip to content

Commit

Permalink
Update test_embedding.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gabelstein committed Apr 15, 2024
1 parent b1690e5 commit b99cf96
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
)

from pyriemann.utils.kernel import (kernel,
kernel_euclid,
kernel_logeuclid,
kernel_riemann)
kernel_functions)

rembd = [SpectralEmbedding, LocallyLinearEmbedding]

Expand Down Expand Up @@ -153,10 +151,9 @@ def test_locally_linear_none_kernel(metric, get_mats):
"""Test LocallyLinearEmbedding."""
n_matrices, n_channels, n_components = 6, 3, 2
covmats = get_mats(n_matrices, n_channels, "spd")
kernel_fun = globals()[f'kernel_{metric}']

def kfun(X, Y=None, Cref=None, metric=None):
return kernel_fun(X, Y, Cref=Cref)
return kernel_functions[metric](X, Y, Cref=Cref)

embd = LocallyLinearEmbedding(metric=metric,
n_components=n_components,
Expand Down

0 comments on commit b99cf96

Please sign in to comment.