Git Product home page Git Product logo

Comments (4)

garethjns avatar garethjns commented on May 29, 2024

Hi Yasmin,

I'm afraid my memory of the Kaggle data is a bit hazy. I think a second test set was provided along with a list of leaks in the old test set that could be moved into the training set. This is what the copyTestLeakToTrain.m script does. I think you might be able to skip this step, and manually create the directory structure (as in the readme) but just using the original data.

The trainedModelsCompactTest.mat should be produced by train.m if you can get it to run with the data you have.

from kaggle-eeg.

YasminAMassoud avatar YasminAMassoud commented on May 29, 2024

@garethjns Thanks for your input in this issue ,I have solved the trainedmodelscompacttest.mat now.
*For issue 2 ) I tried this is then have and error
Unable to read file singles1.mat , which is i believe is output from copytestleaktotrain.mat , It will be helpful if you give me advice on how to obtain this file without using copytestleaktrain.mat

*Also the New folder now will have files named pat1test_1_0.mat for example they wont be _new will this create a problem ?

from kaggle-eeg.

garethjns avatar garethjns commented on May 29, 2024

If I remember correctly, the singles_n.mat files have a list of files for each subject where the file is an independent 10 minutes of recording, rather than a 10 min segment of a consecutive 60 min recording (spread over 6 files). I think all of these will have originally been in the test set (which were all supposed to be independent 10 minute segments), before the leak was discovered. This would make sense if the singles.mat files are created by copyTestLeakToTrain.m.

I think if you just have the original set it might be worth trying to modify the method that loads the training files. This has logic to load the group 10 min segments of the 60 min groups, and logic to load the single files, and mark them as single so they aren't concatenated together.

This method is here:

function [fullFileList] = genFileListSomeSingles(subs, str, paths)
It looks like it loads all the '*.mat' files from the directories it finds in paths.dataDir, so the _new in the files names shouldn't matter as long as paths.DataDir is pointing to the correct place.

I've found copies of the singles.mat files, but I don't have access to MATLAB so can't check their contents at the moment. I've pushed them to the root of the reop on this branch https://github.com/garethjns/Kaggle-EEG/tree/singles_files, but you may not need them. Actually, another be worth trying is to use them but leave them empty (as there are no single files in your training set). That might mean you wouldn't need to modify the method that loads the files.

from kaggle-eeg.

YasminAMassoud avatar YasminAMassoud commented on May 29, 2024

Thanks to @garethjns , i managed to do it by editing copytestleaktotrain to have singles.mat file according to new data description on ecosystem website .

from kaggle-eeg.

Related Issues (18)

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.