kaurao / svmPerf

A simple interface to the SVMperf in R

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

svmPerf

A simple interface to the SVMperf in R

Usage:

Download the SVMperf from: http://www.cs.cornell.edu/people/tj/svm%5Flight/svm_perf.html

Set the corresponding paths to learn and classify in the svmPerfLinear.R

source('svmPerfLinear.R')
data("iris")
x = iris[1:100,1:4]
y = factor(make.names(as.integer(iris[1:100,5])))
model = svmPerfLinear$fit(x,y,lev=levels(y),param=list(C=1))
pred = svmPerfLinear$predict(model, newdata=x)

About

A simple interface to the SVMperf in R


Languages

Language:R 100.0%