To suppress the output of training and forecasting, you need to combine the solutions provided by has2k1 (to suppress the learning) and vonPetrushev (to suppress the output of the forecast).
Unfortunately, you cannot do something like the following:
# Test matrix built, execute prediction. paramString = "" if useVerbosity else " -q " predLabels, predAccuracy, predDiscriminants = \ svmutil.svm_predict( targetLabels, testData, svModel.representation, paramString )
Due to the current python interface, you will get the following error:
File "/home/jbbrown/local_bin/pyLibSVM/pyLibSVM/svmutil.py", line 193, in svm_predict raise ValueError("Wrong options") ValueError: Wrong options
source share