Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > e578866d55cd81fdb23827cdf3cec911 > files > 568

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



.. _example_svm_plot_weighted_classes.py:


================================================
SVM: Separating hyperplane with weighted classes
================================================

Fit linear SVMs with and without class weighting.
Allows to handle problems with unbalanced classes.



.. image:: images/plot_weighted_classes.png
    :align: center

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

.. literalinclude:: plot_weighted_classes.py
    :lines: 10-