Skip to content

Commit

Permalink
update input descript
Browse files Browse the repository at this point in the history
  • Loading branch information
Rattanaphon Chaisaen authored Feb 2, 2021
1 parent 41a63f3 commit 7565413
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pysitstand/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
from pysitstand.utils import sen_spec, butter_bandpass_filter

def fbcsp(X_train, y_train, X_test, y_test, filter_order=2, session='mi'):

'''
X_train, X_test: EEG data, 3D numpy array (#windows, #channels #timepoint)
y_train, y_test: labels, 1D numpy array (#windows)
'''

if session == 'mi':
filters = [[4, 8], [8, 12], [12, 16],
Expand Down Expand Up @@ -82,4 +87,4 @@ def fbcsp(X_train, y_train, X_test, y_test, filter_order=2, session='mi'):

model = {'filters': filters,'fbcsp': fbcsp,'SelectKBest': selector, 'classifier': classifier}

return svm_acc, report, sen, spec, X_test_fbcsp, y_true, y_pred, model
return svm_acc, report, sen, spec, X_test_fbcsp, y_true, y_pred, model

0 comments on commit 7565413

Please sign in to comment.