Closed Zhuxitong closed 1 year ago
Hi,
I think I found the problem.
In pls::plsr, the default segment number for cross-valiation is 10, but in my data, there are only 8 samples, so it's impossible to perform 10-fold cross-valiation. To make sure this, I tested below commands:
pls::plsr(cls ~ datmat, method = "oscorespls", ncomp = 5, validation = "CV")
&
pls::plsr(cls ~ datmat, method = "oscorespls", ncomp = 5, validation = "CV", segments = 5)
The second one works fine. So the problem left is that in the PLSDA.CV function, only 4 parameters are supported( mSetObj, methodName, compNum and choice). So how can I set the segments number parameter here without modify the source code?
Hi, can you send me your dataset (email is jasmine.chong at mail.mcgill.ca) so I can figure out how to best add a parameter for this?
Hi, can you send me your dataset (email is jasmine.chong at mail.mcgill.ca) so I can figure out how to best add a parameter for this?
My datasets is very big (180Mb per sample and 8 samples in total). So it's not ok to send you. I think whatever a datasets with less than 10 samples would meet this problem.
When I add anthor 2 samples so here are 10 sanples, this problem never appears.
A more informative error message has been added to the web. MetaboAnalystR will be updated when we release version 4.0 soon.
when I was doing PLS-DA analysis, I met below problem:
At the begining,
has no error. So what would be the problem?