diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2018-04-03 23:21:12 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2018-04-03 23:21:12 +0100 |
| commit | f6c4360090c1235ce54f84ddc8ab6a2629f8d8e4 (patch) | |
| tree | cbffa0c4c2a5f22ad7e1c379274488de5421a7bc /R/validate.R | |
| parent | Add fitted for grid class (diff) | |
| download | rgensvm-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.R | 2 |
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") } ) } |
