title: How to use the function 'predict' of svm_model in libsvm?
body: <p>In recent version of libsvm(v3.17 2013.04.01), the method 'predict' in class 'svm_model' has been removed. </p>
  
  <p>The alternative method seems to be method 'svm_predict' in module 'svmutil'. But I can't understand the parameter data(y,x) of this method.</p>
  
  <p><code>
  def svm_predict(y, x, m, options=""):</p>
  
  <pre><code>"""
  svm_predict(y, x, m [, options]) -&gt; (p_labels, p_acc, p_vals)
  
  Predict data (y, x) with the SVM model m. 
  options: 
      -b probability_estimates: whether to predict probability estimates, 
          0 or 1 (default 0); for one-class SVM only 0 is supported.
      -q : quiet mode (no outputs).
  
  The return tuple contains
  p_labels: a list of predicted labels
  p_acc: a tuple including  accuracy (for classification), mean-squared 
         error, and squared correlation coefficient (for regression).
  p_vals: a list of decision values or probability estimates (if '-b 1' 
          is specified). If k is the number of classes, for decision values,
          each element includes results of predicting k(k-1)/2 binary-class
          SVMs. For probabilities, each element contains k values indicating
          the probability that the testing instance is in each class.
          Note that the order of classes here is the same as 'model.label'
          field in the model structure.
  """
  </code></pre>
  
  <p></code></p>