Skip to content

Commit

Permalink
removed shape change in free orient for eloreta
Browse files Browse the repository at this point in the history
  • Loading branch information
anujanegi committed Feb 8, 2024
1 parent df936c4 commit bfb221a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bsi_zoo/estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ def __init__(self, solver, alpha, cov_type, cov, n_orient, extra_params={}):
self.cov_type = cov_type
self.n_orient = n_orient
self.extra_params = extra_params
self.classes_ = np.array([0, 0])

def fit(self, L, y):
self.L_ = L
Expand Down Expand Up @@ -716,8 +717,8 @@ def eloreta(L, y, cov=1, alpha=1 / 9, n_orient=1):
K = _compute_eloreta_kernel(L, lambda2=alpha, n_orient=n_orient, whitener=whitener)
x = K @ y # get the source time courses with simple dot product

if n_orient > 1:
x = x.reshape((-1, n_orient, x.shape[1]))
# if n_orient > 1:
# x = x.reshape((-1, n_orient, x.shape[1]))
return x


Expand Down

0 comments on commit bfb221a

Please sign in to comment.