Otherwise maybe you can try to make a new branch on your scikit and copy
this repo on it...
Nicolas
On 8 May 2015 9:34 am, "Artem" <barmaley....@gmail.com> wrote:
> Looks like you have a circular import, and Python doesn't like them.
> Sorry, I don't have a quick hack solution to this, all I can propose is to
> look at import chain, understand, which import breaks it all, and get rid
> of it. For example, you can move some imports into functions, so they're
> not called at the module initialization time.
>
>
>
> On Fri, May 8, 2015 at 7:15 PM, Luca Puggini <lucapug...@gmail.com> wrote:
>
>> Hi,
>> due to my need for a good isolation forest algorithm I have downloaded
>> the sklearn branch containing it. (
>> https://github.com/ngoix/scikit-learn/tree/iforest)
>>
>> I have extracted the file in a local folder and I have built it with the
>> command:
>> python3 setup.py build_ext --inplace
>>
>> Everything seems to be fine but I encounter an error when I try to import
>> Isolation Forest in my code.
>>
>> if I use:
>> import sys
>> sys.path.insert(0, '/python_externals_function/')
>> import iforest_sklearn.sklearn.ensemble.bagging
>>
>> i receive the error:
>>
>> .....
>> from . import _tree
>> ImportError: cannot import name '_tree'
>>
>> I am so wondering if I am making something wrong and how can I use this
>> function without to touch my working version of sklearn?
>>
>> thanks a lot!
>>
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Scikit-learn-general mailing list
>> Scikit-learn-general@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>>
>>
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general