Giter VIP home page Giter VIP logo

bci-workshop's People

Contributors

hubertjb avatar jdpigeon avatar micuat avatar rcassani avatar syswsi avatar

Stargazers

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

Watchers

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

bci-workshop's Issues

pylsl.pylsl.InternalError: an internal error on Linux

I'm encountering this error when running lsl-viewer.py on Ubuntu 18.04 (64 bit):

pylsl.pylsl.InternalError: an internal error has occurred.

I traced it back to self.inlet.pull_chunk() method which for some reason is returning this error. Testing with a simple script using self.inlet.pull_sample() works fine.

This seems to be caused by the latest pylsl library (1.12.0), and installing previous version resolves the issue:

pip install -I pylsl==1.10.5

Suggestion to edit the guide to fix pylsl version.

How to make multiclass classification using exercise two ?

Hi, i am getting confuse, when i try to make multiclass classification using exercise two. How to make multiclass classification using binary classifier. Can i just add class, and feature_matrix in this code ?

def train_classifier(feature_matrix_0, feature_matrix_1, algorithm='SVM'):
"""Train a binary classifier.

Train a binary classifier. First perform Z-score normalization, then
fit

Args:
    feature_matrix_0 (numpy.ndarray): array of shape (n_samples,
        n_features) with examples for Class 0
    feature_matrix_0 (numpy.ndarray): array of shape (n_samples,
        n_features) with examples for Class 1
    alg (str): Type of classifer to use. Currently only SVM is
        supported.

Returns:
    (sklearn object): trained classifier (scikit object)
    (numpy.ndarray): normalization mean
    (numpy.ndarray): normalization standard deviation
"""
# Create vector Y (class labels)
class0 = np.zeros((feature_matrix_0.shape[0], 1))
class1 = np.ones((feature_matrix_1.shape[0], 1))

# Concatenate feature matrices and their respective labels
y = np.concatenate((class0, class1), axis=0)
features_all = np.concatenate((feature_matrix_0, feature_matrix_1),
                              axis=0)

Exercize 1 not working

Hi,

i am trying to start exercize number 1, but when i run it returns me this error:

File "C:\Users\RoY\Desktop\VRscience\bci_workshop-master\mules.py", line 93, in sendcommand
self.client.send(command)

TypeError: a bytes-like object is required, not 'str'

I am not a coder, i have just started learning.

edit: I fixed it by adding a b in the line: self.client.send(b'command')

Now i get this message:

Attempting connection
Connection successful
Header request

But no windows showing signal pop up

Thanks in advance for the help.

Cheers,

V.

Allow selecting of particular channels in BCI classifier

In a workshop environment, it's sometimes difficult for all electrodes to get good enough signal. It would be helpful to be able to select only certain channels to feed to the classifier.

It might also be helpful to have a signal quality indicator widget like in EEG 101

lsl-viewer throws exception

Hi,

when I try to setup the workshop files on a macbook pro, macos 10.13.5 I always get the following error, when starting the lsl-viewer:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/anaconda2/envs/py36/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/anaconda2/envs/py36/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "lsl-viewer.py", line 120, in update_plot
    max_samples=12)
  File "/anaconda2/envs/py36/lib/python3.6/site-packages/pylsl/pylsl.py", line 844, in pull_chunk
    handle_error(errcode)
  File "/anaconda2/envs/py36/lib/python3.6/site-packages/pylsl/pylsl.py", line 1134, in handle_error
    raise InternalError("an internal error has occurred.")
pylsl.pylsl.InternalError: an internal error has occurred.

Any help is highly appreciated.

Best regards,
Thomas

Windows 10 pygatt error

I am getting the following error even after making the 0.25 second delay fix in the pygatt file :

Traceback (most recent call last):
  File "muse-lsl.py", line 44, in <module>
    muse.connect()
  File "...\bci-workshop-master\python\muse\muse.py", line 44, in connect
    self.adapter.start()
  File "...\pygatt\backends\bgapi\bgapi.py", line 204, in start
    self._detect_device_port()
  File "...\pygatt\backends\bgapi\bgapi.py", line 147, in _detect_device_port
    raise BGAPIError("Unable to auto-detect BLED112 serial port")
pygatt.backends.bgapi.exceptions.BGAPIError: Unable to auto-detect BLED112 serial port

Any idea on how to solve this? Already tried resetting :(

BCIworkshop Function

Was wondering what the function was made of and what it consisted of as I am trying to implement some of this code into my own project but cannot access the BCIworkshop function in my own code.

Muse SDK link broken

In the INSTRUCTIONS.md,

To install the SDK, download and execute the Muse SDK Tools 3.4.1 installer for Windows.

When open the link, it is automatically redirected to http://developer.choosemuse.com. Although it is not apparent, Research Tools > (Windows Logo) Download link is the SDK 3.4.1.

manually set muse-io arguments

Hi Ray,
Is it possible to manually set command line arguments for muse-io? For example, this enables to get blink events in other apps (python, processing, etc). For now, I found a workaround: first, launch muse-io with

$ muse-io --device Muse-XXXX --osc 'osc.tcp://localhost:5000' --osc-bp-urls 'osc.udp://localhost:12000'

then launch MuLES, start device and close the command prompt opend by MuLES.

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.