On Mon, Dec 2, 2013 at 11:29 AM, Joel Nothman <[email protected]>wrote:
> I think it's great that scikit-learn keeps its objects to modular
> namespaces, and doesn't litter one space as does numpy, pyplot, etc. Yet,
> when writing quick scripts it can be frustrating to have to import from
> pipeline, grid_search, linear_model and feature_extraction before I can
> mock something up.
>
> On github, there's been a little discussion of shortcuts for interactive
> use.
>
> Are others interested in being able to do something like 'from sklearn.all
> import *' to import all names from all sklearn.*.__all__ into the current
> namespace?
>
> I've implemented this at https://gist.github.com/jnothman/7748113,
> including a warning that fires whenever the module is imported from
> somewhere other than __main__.
>
>
FWIW, in statsmodels we have
import statsmodels.api as sm
where we 'pollute' the sm namespace with common tools, etc. That way we
keep all __init__.py clean (each subpackage has an api.py) for keeping
default imports to a minimum, but still provide a way to import the kitchen
sink into one single namespace.
Skipper
> - Joel
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general