David-Hervas / sNPLS
Showing 1 of 2 files from the diff.
Other files ignored by Codecov
DESCRIPTION has changed.

@@ -344,6 +344,7 @@
Loading
344 344
cv_snpls <- function(X_npls, Y_npls, ncomp = 1:3, samples=20,
345 345
                     keepJ = NULL, keepK = NULL, nfold = 10, parallel = TRUE,  method="sNPLS", ...) {
346 346
347 +
  if(!method %in% c("sNPLS", "sNPLS-SR", "sNPLS-VIP")) stop("'method' not recognized")
347 348
  if(length(dim(Y_npls)) == 3) Y_npls <- unfold3w(Y_npls)
348 349
  top <- ceiling(dim(X_npls)[1]/nfold)
349 350
  foldid <- sample(rep(1:nfold, top), dim(X_npls)[1], replace = F)
@@ -653,6 +654,7 @@
Loading
653 654
#' @importFrom stats var
654 655
#' @export
655 656
repeat_cv <- function(X_npls, Y_npls, ncomp = 1:3, samples=20, keepJ=NULL, keepK=NULL, nfold = 10, times=30, parallel = TRUE, method="sNPLS", ...){
657 +
  if(!method %in% c("sNPLS", "sNPLS-SR", "sNPLS-VIP")) stop("'method' not recognized")
656 658
  if(is.null(keepJ) | is.null(keepK)){
657 659
    cont_thresholding <- TRUE
658 660
    message("Using continuous thresholding")
Files Coverage
R/sNPLS_fit.R 0.00%
Project Totals (1 files) 0.00%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading