title: OpenCV SVM Kernel Sample
body: <p>The OpenCV docs <a href="http://docs.opencv.org/master/dd/ded/group__ml.html#gaad7f1aaccced3c33bb256640910a0e56" rel="nofollow noreferrer">give the following SVM kernel type example</a>:</p>
  <blockquote>
  <p><em>A comparison of different kernels on the following 2D test case with four classes. Four SVM::C_SVC SVMs have been trained (one against rest) with auto_train. Evaluation on three different kernels (SVM::CHI2, SVM::INTER, SVM::RBF). The color depicts the class with max score. Bright means max-score &gt; 0, dark means max-score &lt; 0.</em></p>
  </blockquote>
  <p>Where can I find the sample code that generates this example?</p>
  <p>Specifically, the SVM <code>predict()</code> method presumably returns a label value and not a <em>max-score</em>. How can it return a <em>max-score</em>?</p>
  <p><a href="https://i.stack.imgur.com/rmEdP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rmEdP.png" alt="enter image description here" /></a></p>
  <p>Note that the quote states that it uses <code>SVM::C_SVC</code> which is a <em>classification</em>, not a <em>regression</em>, type.</p>