Skip to content

Commit

Permalink
Fix filterbank rCCA example and pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordy Thielen committed Mar 22, 2024
1 parent a91ebdc commit e6597dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/fbrcca.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
# Setup classifier
rcca = pyntbci.classifiers.rCCA(stimulus=V, fs=fs, event=event, encoding_length=encoding_length,
onset_event=onset_event)
fbrcca = pyntbci.classifiers.Ensemble(estimator=rcca, gating="mean")
gate = pyntbci.gating.AggregateGate("mean")
fbrcca = pyntbci.classifiers.Ensemble(estimator=rcca, gating=gate)

# Train classifier
fbrcca.fit(X_trn, y_trn)
Expand Down
3 changes: 2 additions & 1 deletion pipelines/thielen2021_fbrcca.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@
# Setup classifier
rcca = pyntbci.classifiers.rCCA(stimulus=V, fs=fs, event=event, encoding_length=encoding_length,
onset_event=onset_event)
fbrcca = pyntbci.classifiers.Ensemble(estimator=rcca, gating="mean")
gate = pyntbci.gating.AggregateGate("mean")
fbrcca = pyntbci.classifiers.Ensemble(estimator=rcca, gating=gate)

# Train classifier
fbrcca.fit(X_trn, y_trn)
Expand Down

0 comments on commit e6597dc

Please sign in to comment.