From f6c4360090c1235ce54f84ddc8ab6a2629f8d8e4 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Tue, 3 Apr 2018 23:21:12 +0100 Subject: Add support for raw weight vector in gensvm() --- R/validate.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'R/validate.R') 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") } ) } -- cgit v1.2.3