I fixed the issue by checking if x.size > 2 before the calculation. An error should never need to be raised at that point. The build passes now and the results appear to be correct.
On Thu, Jan 21, 2016 at 2:17 AM, Jaime Fernández del Río <jaime.f...@gmail.com> wrote: > The tests are not passing, seems like you are taking the sqrt of a negative > number, may want to check the inputs and raise a more informative error (and > add a test for it). > > Jaime > > On Thu, Jan 21, 2016 at 7:51 AM, Joseph Fox-Rabinovitz > <jfoxrabinov...@gmail.com> wrote: >> >> Please let me know if there is anything wrong or missing. I have added >> a couple of estimators that I find useful sometimes. >> >> -Joe >> _______________________________________________ >> NumPy-Discussion mailing list >> NumPy-Discussion@scipy.org >> https://mail.scipy.org/mailman/listinfo/numpy-discussion > > > > > -- > (\__/) > ( O.o) > ( > <) Este es Conejo. Copia a Conejo en tu firma y ayúdale en sus planes de > dominación mundial. > > _______________________________________________ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > https://mail.scipy.org/mailman/listinfo/numpy-discussion > _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion