[R] kernlab - custom kernel

2009-04-28 Thread Vivek Dikshit
hi, I am using R's "kernlab" package, exactly i am doing classification using ksvm(.) and predict.ksvm(.).I want use of custom kernel. I am getting some error. # Following R code works (with promotergene dataset): library("kernlab") s <- function(x, y) { sum((x*y)^1.25) } class(s) <- "kernel"

[R] Fwd: kernlab - custom kernel

2009-04-28 Thread Vivek Dikshit
-- Forwarded message -- From: Vivek Dikshit Date: Tue, Apr 28, 2009 at 1:20 PM Subject: kernlab - custom kernel To: r-help@r-project.org hi, I am using R's "kernlab" package, exactly i am doing classification using ksvm(.) and predict.ksvm(.).I want use of cust

[R] kernlab - custom kernel

2009-04-28 Thread Vivek Dikshit
hi, I am using R's "kernlab" package, exactly i am doing classification using ksvm(.) and predict.ksvm(.).I want use of custom kernel. I am getting some error. # Following R code works (with promotergene dataset): library("kernlab") s <- function(x, y) { sum((x*y)^1.25) } class(s) <- "kernel"