Skip to content

Commit

Permalink
Merge pull request #33 from powerfulbean/fix-nested_crossval
Browse files Browse the repository at this point in the history
fix bug of decoder training in nested_crossval
  • Loading branch information
OleBialas authored Jun 26, 2024
2 parents 53838c8 + 6a75d47 commit 2bc5c49
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions mtrf/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,17 @@ def nested_crossval(
regularization_split_i = list(regularization)[np.argmax(metric)]
else:
regularization_split_i = regularization
model.train(
[stimulus[i] for i in idx_train_val],
[response[i] for i in idx_train_val],
# model.train(
# [stimulus[i] for i in idx_train_val],
# [response[i] for i in idx_train_val],
# fs,
# tmin,
# tmax,
# regularization_split_i,
# )
model._train(
[x[i] for i in idx_train_val],
[y[i] for i in idx_train_val],
fs,
tmin,
tmax,
Expand Down

0 comments on commit 2bc5c49

Please sign in to comment.