Seems you want to train with different class cost? Maybe you can try to set
different class_weight in SVC training.

You may refer to http://scikit-learn.org/stable/modules/svm.html for the
unbalanced class training. You should tune both the class weight and the
penalty factor together to satisfy your need. Also, you can use
cross-validation score to tune the paramters with respect to training set.

Hope this will help


On Tue, Jun 5, 2012 at 9:30 AM, Emily Wong <[email protected]> wrote:

>  Hi,
> I'm new to scikit and machine learning in general and I trying to use svm
> to find the best way to classify a dataset containing lots of negatives. I
> was wondering if there is a way to increase the penalty factor associated
> with misclassification of the positive class?
> Thanks,
> Emily
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to