Code Monkey home page Code Monkey logo

teap's People

Contributors

cheulyop avatar frankkkkk avatar gijom avatar josecalero avatar msoley 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

teap's Issues

BVP_feat_BPM(sig) line 43 and 44

Hello,

When using function BVP_feat_BPM(), the following error promoted:

Error: File: BVP_feat_BPM.m Line: 43 Column: 52
Expression or statement is incorrect--possibly unbalanced (, {, or [.

Tried putting line 43 and 44 together the the following error prompted:

Error using vertcat
Dimensions of matrices being concatenated are not consistent.

Error in BVP_feat_BPM (line 43)
dataS = filtfilt(ones(1, SizeWindow)/SizeWindow, 1,[repmat(data(1), SizeWindow, 1); data]);

I used the BVP_feat_IBI_example.m to create the 'sig' and used BVP_feat_BPM(sig). So the signal should be the example signal.

Can you please have a look on this?

Cheers

Undefined function or variable 'kfold_gen'

Hello again,

While looking at the machine learning tools, I found out that there is no such files named 'kfold_gen'.

for regression i am using (parameters.classifier = 'SVR_RBF')
for classification i am using (parameters.classifier = 'SVMRbf')

Train and test Mahnob

Hi
I'm new with TEAP. Can you help me about train and test mahnob database ?

  • how can i load my labels ?
  • i want to load some of my data as train set and some of them as test set. how i do that ?

Grid Searching with SVMRbf using 'leave-one-out' through error

Hello,

I am trying to run the train_and_test_deap file with the following setting:

For Classification

parameters.verbose = false;

parameters.normalize = 3;
parameters.nbClasses = 2;
parameters.lower_limit = -0.5;
parameters.upper_limit = 0.5;
parameters.grid_search = true;
parameters.featSelection = 'Fisher';
parameters.classifier = 'SVMRbf';
parameters.is_fusion = false;
parameters.cross_validation = 'leave-one-out';

and for Regression

parameters.normalize = 3;
%regression
parameters.nbClasses = -1;
parameters.lower_limit = -0.5;
parameters.upper_limit = 0.5;
parameters.grid_search = true;
parameters.featSelection = 'none';
parameters.classifier = 'SVR_RBF';
parameters.cross_validation = 'leave-one-out';

on running the code its showing 'Index Exceed Matrix Dimension' error.

Please help me out.
untitled

feature_sel_module not found

Hello,

While executing the test codes on DEAP database MATLAB is throwing the following errors.

---feature_sel_module not found.

While looking through the toolbox I found that there is no such modules included in the toolbox. Please include the feature_sel_module.

--Undefined function or variable 'nbTrials'.

It is not clear how to set the value of nbTrials. Please resolve this issue also.

Looking forward for your quick remarks.

Thanking You

Sumeet

The condition for calculating tachogram power seems to be wrong for BVP.

In the below codes for extracting features from BVP and ECG signals, I found something that might be an issue and would like to ask for clarification.

While the condition for extracting tachogram features from ECG seems to be correctly defined as when length(IBI) is not less than welch_window_size_IBI + 1, the condition appears to be wrong for BVP as it is asking that length(IBI) < welch_window_size_**BVP** + 1 be false to compute tachogram power.

if length(IBI)< welch_window_size_IBI +1
warning('singal to short for the welch size - PSD features cannot be calcualted');
tachogram_LF = NaN;tachogram_MF = NaN;tachogram_HF = NaN;
tachogram_energy_ratio = NaN;

if length(IBI)< welch_window_size_BVP +1
warning('Signal is too short for this welch window size and the PSD features cannot be calculated');
tachogram_LF = NaN;tachogram_MF = NaN;tachogram_HF = NaN;
tachogram_energy_ratio = NaN;

Shouldn't the condition be length(IBI) < welch_window_size_IBI + 1 for BVP as well?

Why divide sample rate by 16 when calculating a window size?

Hi, I'm wondering why it is necessary to divide a sample rate by 16 in the code:

GSRsignal = Signal_filter1_low_mean(GSRsignal, round(sampRate/16));

I understand that round(sampRate/16) is passed as a windowSize argument for Signal_filter1_low_mean.m:
filtAvgEls = ones(1, windowSize)/windowSize;

However, wouldn't this result in an empty signal (1×0 empty double row vector to be precise) if the sample rate of input is lower than 8Hz? This indeed is the result I get when I try to process data collected at 4Hz.

But first of all, why would sample rate / 16 equal a window size? I've looked at docstrings, but they didn't seem to help much either:
@brief Cleans a signal adding a low-pass mean filter to it. The window equals the sample rate, aka 1 sec.
@param windowSize: the window size (in samples)

Am I missing something here?

Using loading_MAHNOB, the ECG signal waveform I obtained seems to be wrong.

Dear Dr,

Hello, can you help me with the following problem? Thank you very much !

Using "loading_MAHNOB" , I try to get the ECG signal in MAHNOB.

However, the waveform I obtained seems to be wrong, because it is unlike the standard ECG signal waveform (fig2 of the paper publishing MAHNOB database). The signal I obtained and the standard signal are attached.

the ECG  signal waveform  I obtained
【the ECG signal waveform I obtained using "loading_MAHNOB"】
the standard  ECG signal waveform
【the standard ECG signal waveform】

Note that, when I run "loading_MAHNOB", I change line 69-72 of "loading_MAHNOB", because I can not obtain the raw signal without this change. line 69-72 of "loading_MAHNOB" was changed to:

total_sec = floor(size(data.Record,2) / phys_data.srate);
phys_data.data = zeros(n_chans+1, (total_sec)*phys_data.srate);
for j = 1:n_chans
      raw_data = data.Record(strcmp(electrode_labels{j},electrode_labels_orig), 1:(total_sec) * 
                            phys_data.srate);
 end
 ECG_signal = phys_data.data(33,:)-phys_data.data(34,:);

Can you please help me have a look on this? Thank you very much for all your help!
Best regards

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.