Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-backports > by-pkgid > e578866d55cd81fdb23827cdf3cec911 > files > 501

python-scikits-learn-0.6-1mdv2010.2.i586.rpm



.. _example_applications_svm_gui.py:


==========
Libsvm GUI
==========

A simple graphical frontend for Libsvm mainly intended for didactic
purposes. You can create data points by point and click and visualize
the decision region induced by different kernels and parameter settings.

To create positive examples click the left mouse button; to create
negative examples click the right button.

If all examples are from the same class, it uses a one-class SVM.

TODO add labels to the panel.

Requirements
------------

 - Tkinter
 - scikits.learn
 - matplotlib with TkAgg



**Python source code:** :download:`svm_gui.py <svm_gui.py>`

.. literalinclude:: svm_gui.py
    :lines: 25-