Coder Social home page Coder Social logo

Comments (3)

HUAjijiji avatar HUAjijiji commented on July 29, 2024 1

I am very excited and grateful to receive your reply;
I acted on the solution you gave immediately;
I've found other scripts where i need to change paths, but that's easy enough.Now that the code is working, I'm doing further research.
Thank you for your generous and timely reply and have a great life,:)

from mi-eeg-1d-cnn.

ambitious-octopus avatar ambitious-octopus commented on July 29, 2024

Referring to generator.py:

https://github.com/Kubasinska/MI-EEG-1D-CNN/blob/dadb6cc3d23487818028badf2aa0d50e98963b46/dataset_generator/generator.py#L40-L44

On line 41, you should specify the absolute folder of the downloaded dataset.
On line 43, you should specify a folder where the new dataset will be saved.

Example:

data_path = "D:\CODE\MI-EEG-1D-CNN-master\THE-FOLDER-NAME" 
for couple in channels:
    base_path = "D:\CODE\generated_dataset" 

The code below assumes that you have the folder "D:\CODE\generated_dataset" in your directory tree.
If you don't want to create the folder manually you can change the code as follow:

runs = [4, 6, 8, 10, 12, 14]
data_path = "D:\CODE\MI-EEG-1D-CNN-master\THE-FOLDER-NAME" 
base_path = "D:\CODE\generated_dataset" 
os.mkdir(base_path)
for couple in channels:
    save_path = os.path.join(base_path, couple[0] + couple[1])
    os.mkdir(save_path)
    for sub in subjects:

The code below creates a directory called generated_dataset in D:\CODE\.

I'm sorry you're having trouble with the manual installation. In case you have any problems please do not hesitate to write again. :)

from mi-eeg-1d-cnn.

ambitious-octopus avatar ambitious-octopus commented on July 29, 2024

Thanks for your interest. If you need anything else, do not hesitate to write me. I will close the issue. 😄

from mi-eeg-1d-cnn.

Related Issues (17)

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.