Giter VIP home page Giter VIP logo

decmeg's People

Contributors

j4ps4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

decmeg's Issues

Issue while regenerating your work.

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

IndexError: tuple index out of range

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.