changeset 752:80123baa4544

fixed typos in wrap_libsvm
author James Bergstra <bergstrj@iro.umontreal.ca>
date Tue, 02 Jun 2009 20:20:48 -0400
parents 88839ba37b97
children 0eee6693f149
files pylearn/external/wrap_libsvm.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pylearn/external/wrap_libsvm.py	Tue Jun 02 20:20:03 2009 -0400
+++ b/pylearn/external/wrap_libsvm.py	Tue Jun 02 20:20:48 2009 -0400
@@ -66,7 +66,7 @@
 
 svm_problem = libsvm.svm_problem
 svm_parameter = libsvm.svm_parameter
-RBF = libsvm.svm_RBF
+RBF = libsvm.RBF
 
 
 ####################################
@@ -159,7 +159,7 @@
 def train_rbf_model(train_X, train_Y, C, gamma):
     param = libsvm.svm_parameter(C=C, kernel_type=libsvm.RBF, gamma=gamma)
     problem = libsvm.svm_problem(train_Y, train_X)
-    model libsvm.svm_model(problem, param)
+    model = svm_model(problem, param)
 
     #save_filename = state.save_filename
     #model.save(save_filename)
@@ -181,7 +181,7 @@
         train_set=None,
         svm_param=dict(kernel='RBF', C=C, gamma=g),
         save_filename='model_RBF_C%f_G%f.libsvm')
-            for C in C_grid,
+            for C in C_grid
             for g in gamma_grid]
 
     # will return quickly if jobs have already run