This is because LinearSVC doesn't support sample_weight.
I added a new issue for raising a more explicit error message:
https://github.com/scikit-learn/scikit-learn/issues/3711
BTW, a linear combination of linear models is a linear model itself. So you
can't learn a better model than a LinearSVC() with
AdaBoostClassifier(svm.LinearSVC())
M.
On Sat, Sep 27, 2014 at 10:06 AM, Pagliari, Roberto <rpagli...@appcomsci.com
> wrote:
> I’m trying to run AdaBoost with linear SVM and got this error:
>
>
>
> TypeError: fit() got an unexpected keyword argument 'sample_weight'
>
>
>
> The code looks like this:
>
> clf = AdaBoostClassifier(svm.LinearSVC(),
> n_estimators=args.ada_estimators, algorithm='SAMME')
>
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general