I'm also having trouble with Nearest neighbor, although not sure if its
related. I'm doing a regression, and everytime I see that particular
warning, one or more of my predicted values ends up with a value of 'nan'.
I checked my inputs and none of them are nan.If I can create a small sample
that shows this I'll send it.
Cheers !

On Mon, Jan 23, 2012 at 3:54 PM, Jacob VanderPlas <
vanderp...@astro.washington.edu> wrote:

> I played around with this a bit: it appears to be related to a memory
> error.
> https://gist.github.com/1666570
> This fails after a few iterations.  If the print statement is
> uncommented, then it no longer fails.
>
> The ball tree code uses a lot of raw memory views for speed... I'll have
> a look through it to try to figure out where the problem is.
>   Jake
>
> Andreas wrote:
> > On 01/23/2012 10:38 PM, Andreas wrote:
> >
> >> Hi everybody.
> >> I created a gist to illustrate the behavior:
> >> https://gist.github.com/1665623
> >> This reproduces a warning that is quite weird.
> >>
> >> After trying it out for some time, I found
> >> the following fun fact:
> >> It behaves only like it does when the manifold
> >> module is imported.
> >> So if you remove the manifold import from the gist,
> >> it runs fine.
> >>
> >> Any ideas?
> >>
> >>
> >>
> > Small update:
> > The error actually depends on
> > ``from sklearn.utils import graph_shortest_path``
> > Which is a cython module.
> >
> > Could it be that the DTYPE variable there overwrite a DTYPE variable
> defined
> > somewhere in the kneigbors module or something like that?
> >
> > btw, my doctests don't work any more.
> > Any one else experiencing that?
> >
> > Cheers,
> > Andy
> >
> >
> ------------------------------------------------------------------------------
> > Try before you buy = See our experts in action!
> > The most comprehensive online learning library for Microsoft developers
> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> > Metro Style Apps, more. Free future releases when you subscribe now!
> > http://p.sf.net/sfu/learndevnow-dev2
> > _______________________________________________
> > Scikit-learn-general mailing list
> > Scikit-learn-general@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
> >
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to