Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matlab reports an error that Matrix is close to singular or badly scaled #11

Open
hasibagen opened this issue Apr 23, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@hasibagen
Copy link

Describe the bug

A clear and concise description of what the bug is.
When mTRF-Toolbox is cross-validating discrete variables (e.g. Phonetic feature), Matlab reports an error that Matrix is close to singular or badly scaled. Is there any way to fix or improve this error? Does it have a big impact on the results?​

To Reproduce
Steps to reproduce the behavior:

  1. mTRFcrossval
  2. Input data size and type [e.g. stim =9920x19 double array]
  3. Input data contains '...' [e.g. 0 ,1 ]
    sitm: load('./data/LalorNatSpeech/dataCND/dataStim.mat','stim');
    phon_feat = stim.data{3,1};

TRFtutorial_examples.m.zip

I ran lines 1 to 456 of this tutorial document and it reports this error. I trained the encoding model with phoneme features on my own data and it also reports the same error.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Training/validating model

0/16 [ ]
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 5.577082e-13.

In mTRFcrossval (line 242)

Desktop (please complete the following information):

  • OS: ubuntu20.04
  • Software: MATLAB
  • Version R2021a
@hasibagen hasibagen added the bug Something isn't working label Apr 23, 2022
@alexisdmacintyre
Copy link

I came here to log the same issue, with this warning message appearing whatever stimulus/response I use.

@hasibagen
Copy link
Author

I came here to log the same issue, with this warning message appearing whatever stimulus/response I use.

I would like to ask if you have written an email to the developers to give feedback? I did write an email, but I didn't receive a reply. I don't know if there is something wrong with my part.

@diliberg
Copy link
Collaborator

diliberg commented Jun 3, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants