this is the __init__ function.
def __init__(self, base_estimator, n_estimators=10, max_samples=1.0,
bootstrap=True, oob_score=False, n_jobs=1,
random_state=None, verbose=0):
if base_estimator == None:
base_estimator = DecisionTreeRegressor
super(BaggingRegressor, self).__init__(base_estimator,
n_estimators=n_estimators, max_samples=max_samples,
bootstrap=bootstrap, oob_score=oob_score,
n_jobs=n_jobs, random_state=random_state, verbose=verbose)
On Tue, Sep 17, 2013 at 3:36 PM, Gael Varoquaux <
gael.varoqu...@normalesup.org> wrote:
> On Tue, Sep 17, 2013 at 03:32:26PM +0530, Maheshakya Wijewardena wrote:
> > @Lars: I have followed the coding guidelines.
>
> In particular:
>
> http://scikit-learn.org/dev/developers/index.html#rolling-your-own-estimator
>
> ?
>
> > It doesn't seems that this problem is related to that.
>
> The test failure that you are getting is because some code that you have
> added does not follow the scikit-learn API.
>
> Gaƫl
>
>
> ------------------------------------------------------------------------------
> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
> SharePoint
> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
> includes
> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general