Take a look at the docstring of any classifier and look for
`sample_weight`. If this keyword is provided, you can add sample weights.
Try googling "sklearn sample_weight" or look here
https://github.com/scikit-learn/scikit-learn/search?q=sample_weight for an
overview.
Michael
On Tue, Jun 17, 2014 at 11:27 AM, Mohamed-Rafik Bouguelia <
[email protected]> wrote:
> Hello all,
>
> I've tried to associate weights to instances when training an SVM in
> sklearn (
> http://scikit-learn.org/stable/auto_examples/svm/plot_weighted_samples.html
> ). Is it possible to use instance weighting with other classifiers from
> sklearn (others than the SVM) ? Basically, I know that any classifier can
> be modified to handle instances weighting, but I don't known which
> classifiers already support that in sklearn.
>
> Thanks.
>
> Rafik.
>
>
> ------------------------------------------------------------------------------
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general