aboutsummaryrefslogtreecommitdiff
path: root/R/validate.R
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2018-04-03 23:21:12 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2018-04-03 23:21:12 +0100
commitf6c4360090c1235ce54f84ddc8ab6a2629f8d8e4 (patch)
treecbffa0c4c2a5f22ad7e1c379274488de5421a7bc /R/validate.R
parentAdd fitted for grid class (diff)
downloadrgensvm-f6c4360090c1235ce54f84ddc8ab6a2629f8d8e4.tar.gz
rgensvm-f6c4360090c1235ce54f84ddc8ab6a2629f8d8e4.zip
Add support for raw weight vector in gensvm()
Diffstat (limited to 'R/validate.R')
-rw-r--r--R/validate.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/validate.R b/R/validate.R
index b0f3f39..5960a38 100644
--- a/R/validate.R
+++ b/R/validate.R
@@ -64,7 +64,7 @@ gensvm.param.conditions <- function()
lambda=function(x) {x > 0.0 },
epsilon=function(x) { x > 0.0 },
gamma=function(x) { x != 0.0 },
- weights=function(x) { x %in% c("unit", "group") },
+ weights=function(x) { x %in% c("raw", "unit", "group") },
kernel=function(x) { x %in% c("linear", "poly", "rbf", "sigmoid") }
)
}