# HG changeset patch # User James Bergstra # Date 1243988448 14400 # Node ID 80123baa454420a0a6c096f3ef7480d2787289fd # Parent 88839ba37b97322db7f9cfc4724ea8dc09b46d97 fixed typos in wrap_libsvm diff -r 88839ba37b97 -r 80123baa4544 pylearn/external/wrap_libsvm.py --- 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