Skip to content

Commit 8a0e89d

Browse files
Multidimensional banded feat
Bug fix on coef()
1 parent 417aec9 commit 8a0e89d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

naplib/encoding/banded_trf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ def coef_(self):
6565

6666
n_targets = trial_coefs[0].shape[0]
6767
all_coefs = np.stack(trial_coefs, axis=-1)
68+
n_feat_dim = sum(self.feat_dims_)
6869

69-
return all_coefs.reshape(n_targets, n_feats, self._ndelays, n_trials)
70+
return all_coefs.reshape(n_targets, n_feat_dim, self._ndelays, n_trials)
7071

7172
def _prepare_matrix(self, X_list, feature_names, alphas_dict):
7273
processed_trials = []

0 commit comments

Comments
 (0)