Hi Frédéric,
This is not a good way to run the tests. Please, use nose to run the tests,
or type "make test" in the root folder of scikit-learn.
Thanks,
N
On 8 August 2013 17:36, Frédéric Bastien <no...@nouiz.org> wrote:
> Hi,
>
> I just installed it and I have many tests errors. I also had the same sort
> of error with the 0.13 version. Here is a few example of the common error I
> got:
>
> ======================================================================
> ERROR: Doctest: sklearn.tree.tree.DecisionTreeClassifier
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/opt/lisa/os/epd-7.1.2/lib/python2.7/site-packages/nose/plugins/doctests.py",
> line 395, in tearDown
> delattr(__builtin__, self._result_var)
> AttributeError: _
>
> and
>
> ======================================================================
> FAIL: Doctest: sklearn.cross_validation.KFold
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/opt/lisa/os/epd-7.1.2/lib/python2.7/doctest.py", line 2166, in
> runTest
> raise self.failureException(self.format_failure(new.getvalue()))
> AssertionError: Failed doctest test for sklearn.cross_validation.KFold
> File
> "/u/lisa/local/export.soft.lisa.master/linux-x86_64-fc14.x86_64/sklearn0.13/lib/python2.7/site-packages/sklearn/cross_validation.py",
> line 202, in KFold
>
> ----------------------------------------------------------------------
> File
> "/u/lisa/local/export.soft.lisa.master/linux-x86_64-fc14.x86_64/sklearn0.13/lib/python2.7/site-packages/sklearn/cross_validation.py",
> line 240, in sklearn.cross_validation.KFold
> Failed example:
> for train_index, test_index in kf:
> print("TRAIN:", train_index, "TEST:", test_index)
> X_train, X_test = X[train_index], X[test_index]
> y_train, y_test = y[train_index], y[test_index]
> Expected:
> TRAIN: [2 3] TEST: [0 1]
> TRAIN: [0 1] TEST: [2 3]
> Got:
> ('TRAIN:', array([2, 3]), 'TEST:', array([0, 1]))
> ('TRAIN:', array([0, 1]), 'TEST:', array([2, 3]))
>
>
> The way I run the tests is to start python, import sklearn, then execute
> sklearn.test().
>
> Is that the good way to start it? Why the second case fail? The value are
> the right one, the problem seam to be different container.
>
> thanks
>
> Frédéric
>
>
> On Thu, Aug 8, 2013 at 8:35 AM, Andreas Mueller
> <amuel...@ais.uni-bonn.de>wrote:
>
>> Hey everybody.
>>
>> Thanks a lot and congratulations to everybody who worked on this :)
>>
>> Cheers,
>> Andy
>>
>>
>> On 08/08/2013 01:18 AM, Gael Varoquaux wrote:
>> > Hi Scikiters,
>> >
>> > I have tagged and pushed release 0.14.
>> >
>> > Vlad will build the Windows binaries tomorrow. In the mean time, the
>> 0.14
>> > tarball is on pypi, but I have not hidden the old files for the 0.13.
>> >
>> > The new website is live! Congratulations everybody who worked on it.
>> >
>> > The master branch and the dev websites have been kept in sync with the
>> > 0.14 release, and I have bump the development version number to
>> 0.15-git.
>> >
>> > Happy coding, and let us know if they are glitches with this release,
>> >
>> > Gaël
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> > It's a free troubleshooting tool designed for production.
>> > Get down to code-level detail for bottlenecks, with <2% overhead.
>> > Download for free and get started troubleshooting in minutes.
>> >
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> > _______________________________________________
>> > Scikit-learn-general mailing list
>> > Scikit-learn-general@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> It's a free troubleshooting tool designed for production.
>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> Download for free and get started troubleshooting in minutes.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Scikit-learn-general mailing list
>> Scikit-learn-general@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>>
>
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general