Skip to content

Commit

Permalink
update with main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
powerfulbean committed Oct 13, 2024
2 parents cf23b46 + 6263e03 commit d161f24
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions mtrf/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,21 +366,13 @@ 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],
# 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,
regularization_split_i
[x[i] for i in idx_train_val],
[y[i] for i in idx_train_val],
fs,
tmin,
tmax,
regularization_split_i,
)
_, t_metric_test = model.predict(
[stimulus[i] for i in idx_test],
Expand Down

0 comments on commit d161f24

Please sign in to comment.