aboutsummaryrefslogtreecommitdiff
path: root/R/gensvm.grid.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/gensvm.grid.R')
-rw-r--r--R/gensvm.grid.R4
1 files changed, 2 insertions, 2 deletions
diff --git a/R/gensvm.grid.R b/R/gensvm.grid.R
index fa4f4fe..8f875a3 100644
--- a/R/gensvm.grid.R
+++ b/R/gensvm.grid.R
@@ -158,7 +158,7 @@ gensvm.grid <- function(X, y, param.grid='tiny', refit=TRUE, scoring=NULL, cv=3,
if (n.objects != length(y)) {
cat("Error: X and y are not the same length.\n")
- return(NULL)
+ invisible(NULL)
}
if (is.character(param.grid)) {
@@ -173,7 +173,7 @@ gensvm.grid <- function(X, y, param.grid='tiny', refit=TRUE, scoring=NULL, cv=3,
# Validate the range of the values for the gridsearch
if (!gensvm.validate.param.grid(param.grid))
- return(NULL)
+ invisible(NULL)
# Sort the parameter grid for efficient warm starts
param.grid <- gensvm.sort.param.grid(param.grid)