If you're writing an external "script" that just interfaces with scikit-learn and you intend to keep it separately distributable (3rd party), you can replace them with absolute imports:
``` from sklearn.base import ClassifierMixin, RegressorMixin from sklearn.externals.joblib import Parallel, delayed, cpu_count ``` If you want to extend scikit-learn and contribute, there has been another thread just a few hours ago titled "Development Best Practices". Alex and Olivier described the workflow, and also pointed to the appropriate section of the documentation that describes it. Note however that there already is a PR that implements bagging: https://github.com/scikit-learn/scikit-learn/pull/2375 and it seems to be almost finished. Cheers, Vlad On Thu, Aug 29, 2013 at 1:21 PM, Maheshakya Wijewardena <pmaheshak...@gmail.com> wrote: > Hi > I'm trying to implements a general Bagging module for Scikit-learn for an > university project. I want to test the methods and classes I've written. > Even for a simple implementation I've to 'make' the entire thing from the > scratch and write tests and do Nosetests for the entire thing. And with that > relative imports in the code like > > from ..base import ClassifierMixin, RegressorMixin > from ..externals.joblib import Parallel, delayed, cpu_count > > I can't test manually what I've written. I want to test simple code pieces > used to create the main module. > > Is there a way how to resolve this. Can you explain how the development > process works if I start coding a new module. > BTW I couldn't get a clear idea about this from the documentation. > > Thank you, > > Best regards, > Maheshakya > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > Scikit-learn-general mailing list > Scikit-learn-general@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/scikit-learn-general > ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general