mahehu / decmeg Goto Github PK
View Code? Open in Web Editor NEW2nd place submission to the MEG decoding competition https://www.kaggle.com/c/decoding-the-human-brain
License: Other
2nd place submission to the MEG decoding competition https://www.kaggle.com/c/decoding-the-human-brain
License: Other
I am new to this field and I wanted to recreate what you have done. However, when I executed python train.py I got a few warnings and the following error. Can you please take a look at those? Thank you.
warning 1: In the decimate() method (line number 125)
/home/chandrahas/anaconda3/envs/mne/lib/python3.6/site-packages/scipy/signal/_arraytools.py:45: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use arr[tuple(seq)]
instead of arr[seq]
. In the future this will be interpreted as an array index, arr[np.array(seq)]
, which will result either in an error or a different result.
b = a[a_slice]
/home/chandrahas/anaconda3/envs/mne/lib/python3.6/site-packages/scipy/signal/signaltools.py:3463: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use arr[tuple(seq)]
instead of arr[seq]
. In the future this will be interpreted as an array index, arr[np.array(seq)]
, which will result either in an error or a different result.
return y[sl]
warning 2: at train.py --> clf.fit(X, y, X_subj) (line number 329)
/home/chandrahas/anaconda3/envs/mne/lib/python3.6/site-packages/sklearn/linear_model/logistic.py:433: FutureWarning: Default solver will be changed to 'lbfgs' in 0.22. Specify a solver to silence this warning.
FutureWarning)
ERROR:
Traceback (most recent call last):
File "train.py", line 380, in
estimateCvScore = estimateCvScore)
File "train.py", line 332, in run
clf.fit(X, y, X_subj)
File "/home/chandrahas/Downloads/Thesis/DecMeg2014_kaggle_competition/Second_Place/decmeg-master/IterativeTrainer.py", line 138, in fit
self.clf.fit(X_aug, y_aug)
File "/home/chandrahas/Downloads/Thesis/DecMeg2014_kaggle_competition/Second_Place/decmeg-master/LrCollection.py", line 165, in fit
clf.fit(view, y)
File "/home/chandrahas/anaconda3/envs/mne/lib/python3.6/site-packages/sklearn/linear_model/logistic.py", line 1305, in fit
sample_weight=sample_weight)
File "/home/chandrahas/anaconda3/envs/mne/lib/python3.6/site-packages/sklearn/svm/base.py", line 881, in fit_liblinear
" class: %r" % classes[0])
ValueError: This solver needs samples of at least 2 classes in the data, but the data contains only one class: 1.0
Hi, I am trying to use LinearSVC + Randomforest in your code. My data has 578 trials, 70 channels and 11 features but it is throwing me the following error. Can you tell me what is the problem?
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Sarwat\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 685, in runfile
execfile(filename, namespace)
File "C:\Users\Sarwat\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 85, in execfile
exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace)
File "C:/Users/Sarwat/Desktop/EEG/EEG.py", line 352, in
estimateCvScore = estimateCvScore,
File "C:/Users/Sarwat/Desktop/EEG/EEG.py", line 274, in run
clf.fit(X[trainIdx, :, :,np.newaxis], y[trainIdx], X[testIdx,:,:])
File "C:\Users\Sarwat\Desktop\EEG\IterativeTrainer.py", line 141, in fit
self.clf.fit(X_aug, y_aug)
File "C:\Users\Sarwat\Desktop\EEG\LrCollection.py", line 147, in fit
for col in range(X.shape[1]):
IndexError: tuple index out of range
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.