Thread: Q9, SVM vs PLA
View Single Post
  #17  
Old 05-24-2013, 02:16 AM
catherine catherine is offline
Member
 
Join Date: Apr 2013
Posts: 18
Default Re: Q9, SVM vs PLA

Hi guys,

Sorry for the confusion:

1. The X matrix is my code excerpt above includes x0 (I used the same matrix for PLA), so leave out the index sub-setting if you are using a separate matrix for SVM.

2. sweep(XIn[,2:3], MARGIN=1, yIn, '*') is the same as apply(XIn[,2:3], 2, function(x) {x * yIn} )

3. Here is the kernlab documentation I used: http://cran.r-project.org/web/packag...ab/kernlab.pdf
Reply With Quote