Re: [Scikit-learn-general] Testing small code peices

2013-09-02 Thread Kenneth C. Arnold
Oh I see. Try: python setup.py develop to "install" your development checkout. You can also do "pip install -e ." which has the same effect. (e for editable.) -Ken On Sep 2, 2013 2:12 AM, "Maheshakya Wijewardena" wrote: > About IPython notebook. > Is there way to work around relative imports

Re: [Scikit-learn-general] Testing small code peices

2013-09-01 Thread Maheshakya Wijewardena
About IPython notebook. Is there way to work around relative imports in notebook? they doesn't seem to work as absolute imports. but absolute imports are taken from the installed package. I want to import from the version I'm working on. -Maheshakya On Mon, Sep 2, 2013 at 3:58 AM, Kenneth C. Arn

Re: [Scikit-learn-general] Testing small code peices

2013-09-01 Thread Kenneth C. Arnold
In addition to what everyone else has responded: you'd probably enjoy working in an ipython notebook. -Ken On Aug 29, 2013 6:22 AM, "Maheshakya Wijewardena" wrote: > Hi > I'm trying to implements a general Bagging module for Scikit-learn for an > university project. I want to test the methods an

Re: [Scikit-learn-general] Testing small code peices

2013-09-01 Thread Joel Nothman
> > 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 assume by that you mean you can't do `python path/to/module.py` on the command-line.

Re: [Scikit-learn-general] Testing small code peices

2013-09-01 Thread Andreas Mueller
On 08/29/2013 01:22 PM, Olivier Grisel wrote: > 2013/8/29 Maheshakya Wijewardena : >> I've had a look at Gilles s previous pull request. My intention for now is >> get an exposure to development on Scikit-learn, so that I can contribute >> later with others. Thought this bagging would be a suitable

Re: [Scikit-learn-general] Testing small code peices

2013-08-29 Thread Maheshakya Wijewardena
Thank you. On Thu, Aug 29, 2013 at 4:52 PM, Olivier Grisel wrote: > 2013/8/29 Maheshakya Wijewardena : > > I've had a look at Gilles s previous pull request. My intention for now > is > > get an exposure to development on Scikit-learn, so that I can contribute > > later with others. Thought this

Re: [Scikit-learn-general] Testing small code peices

2013-08-29 Thread Olivier Grisel
2013/8/29 Maheshakya Wijewardena : > I've had a look at Gilles s previous pull request. My intention for now is > get an exposure to development on Scikit-learn, so that I can contribute > later with others. Thought this bagging would be a suitable point to start. > I'm passably experienced with gi

Re: [Scikit-learn-general] Testing small code peices

2013-08-29 Thread Maheshakya Wijewardena
I've had a look at Gilles s previous pull request. My intention for now is get an exposure to development on Scikit-learn, so that I can contribute later with others. Thought this bagging would be a suitable point to start. I'm passably experienced with git but what I don't get is testing process.

Re: [Scikit-learn-general] Testing small code peices

2013-08-29 Thread Vlad Niculae
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, dela

[Scikit-learn-general] Testing small code peices

2013-08-29 Thread Maheshakya Wijewardena
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 tha