Skip to content

Commit

Permalink
fix error and update results
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebarachant committed Jun 11, 2017
1 parent 1cc1bfa commit 5ece1c6
Show file tree
Hide file tree
Showing 8 changed files with 994 additions and 965 deletions.
2 changes: 1 addition & 1 deletion examples/MotorImagery/two_class_motor_imagery.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
results = context.evaluate(verbose=True)

for p in results.keys():
results[p].to_csv('../../results/MotorImagery/TwoClass/%s.csv' % p)
results[p].to_csv('../../results/MotorImagery/TwoClass/%s.csv2' % p)

results = pd.concat(results.values())
print(results.groupby('Pipeline').mean())
Expand Down
8 changes: 2 additions & 6 deletions moabb/contexts/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,8 @@ def evaluate(self, verbose=False):
for pipeline in self.pipelines:
clf = self.pipelines[pipeline]
t_start = time()
try:
score = self.score(clf, X=X, y=y, groups=groups)
except:
e = sys.exc_info()[0]
print(e)
score = np.nan
score = self.score(clf, X=X, y=y, groups=groups)

duration = time() - t_start
row = [score, dataset_name, subject, pipeline, duration]
results[pipeline].loc[len(results[pipeline])] = row
Expand Down
2 changes: 1 addition & 1 deletion moabb/datasets/bnci.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, left_hand=True, right_hand=True, feets=True,
if left_hand:
event_id['left_hand'] = 1
if right_hand:
event_id['left_hand'] = 2
event_id['right_hand'] = 2
if feets:
event_id['feets'] = 3
if tongue:
Expand Down
198 changes: 0 additions & 198 deletions notebooks/2 classes Motor Imagery .ipynb

This file was deleted.

231 changes: 231 additions & 0 deletions notebooks/2 classes Motor Imagery.ipynb

Large diffs are not rendered by default.

506 changes: 253 additions & 253 deletions results/MotorImagery/TwoClass/CSP+LDA.csv

Large diffs are not rendered by default.

506 changes: 253 additions & 253 deletions results/MotorImagery/TwoClass/MDM.csv

Large diffs are not rendered by default.

506 changes: 253 additions & 253 deletions results/MotorImagery/TwoClass/TS.csv

Large diffs are not rendered by default.

0 comments on commit 5ece1c6

Please sign in to comment.