Skip to content

Commit

Permalink
Missing RD file
Browse files Browse the repository at this point in the history
  • Loading branch information
kudkudak committed Aug 31, 2015
1 parent 4e90a01 commit c7f7c64
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions man/svm.accuracy.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/svm.utils.R
\name{svm.accuracy}
\alias{svm.accuracy}
\title{Measure accuracy scoreof a prediction}
\usage{
svm.accuracy(prediction, target)
}
\arguments{
\item{prediction}{factor or 1 dim vector with predicted classes}

\item{target}{factor or 1 dim vector with true classes

#'}
}
\description{
Calculates accuracy of a prediction, returns precent of correctly predicted examples
over all test examples.
}
\examples{
\dontrun{
# firstly, SVM model needs to be trained
svm <- SVM(x, y, core="libsvm", kernel="linear", C=1)
# then we can use it to predict unknown samples
p <- predcit(svm, x_test)
acc <- svm.accuracy(p, y)
}
}

0 comments on commit c7f7c64

Please sign in to comment.