Skip to content

Commit

Permalink
Updated OCR application due to multiclass labels
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Sep 2, 2012
1 parent 091ebdc commit 2cbba38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions applications/ocr/Ai.py
@@ -1,7 +1,7 @@
# File : $HeadURL$
# Version: $Id$

from modshogun import RealFeatures, Labels
from modshogun import RealFeatures, MulticlassLabels
from modshogun import GaussianKernel
from modshogun import GMNPSVM

Expand Down Expand Up @@ -35,7 +35,7 @@ def _svm_new(self, kernel_width, c, epsilon):
raise Exception("No training data loaded.")

x = RealFeatures(self.x)
y = Labels(self.y)
y = MulticlassLabels(self.y)

self.svm = GMNPSVM(c, GaussianKernel(x, x, kernel_width), y)
self.svm.set_epsilon(epsilon)
Expand Down

0 comments on commit 2cbba38

Please sign in to comment.