selbouhaddani / o2pls Goto Github PK
View Code? Open in Web Editor NEWNOTE: Obsolete!!! see the OmicsPLS repo!!!
Home Page: https://github.com/selbouhaddani/OmicsPLS
NOTE: Obsolete!!! see the OmicsPLS repo!!!
Home Page: https://github.com/selbouhaddani/OmicsPLS
Here are still some problems. When I use the function crossval_o2m_adjR2 or crossval_o2m, it reports as shown below
crossval_o2m(rna_e,pro_e, a = 1:2, ax = 1:2, ay = 1:2, nr_folds=2)
1: In (function (X, Y, n, nx, ny, stripped = FALSE, p_thresh = 3000, :
n + max(nx, ny) = 3 equals sample size
2: In (function (X, Y, n, nx, ny, stripped = FALSE, p_thresh = 3000, :
n + max(nx, ny) = 3 equals sample size
3: In loocv_combi(X, Y, e$a, ax[nxny[2]], ay[nxny[1]], app_err = app_err, :
Error in (function (X, Y, n, nx, ny, stripped = FALSE, p_thresh = 3000, :
n + max(nx, ny) = 4 exceed sample size N = 3
4: In loocv_combi(X, Y, e$a, ax[nxny[2]], ay[nxny[1]], app_err = app_err, :
Error in (function (X, Y, n, nx, ny, stripped = FALSE, p_thresh = 3000, :
n + max(nx, ny) = 4 exceed sample size N = 3
So I check the source code of o2m, I found that
if(nrow(X) < n + max(nx, ny))
stop("n + max(nx, ny) = ", n + max(nx, ny), " exceed sample size N = ",nrow(X))
if(nrow(X) == n + max(nx, ny))
warning("n + max(nx, ny) = ", n + max(nx, ny)," equals sample size")
you know my matrix was 6 rows(rna,pro), I use the params in cross_o2m_adjR2 is a=1:2,ax=1:2,ay=1:2, so the max value n+max(nx,ny) was 4, it could not exceed the sample size. If I use o2m function only as shown below
fit<-o2m(rna_e,pro_e,2,2,2)
it works well. So I think there is something wrong in the cross* function.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.