Re: [scikit-learn] [Scikit-learn-general] How to run scikit-learn test individually.
you can call nosetests with a script name or even a function name e.g. nosetests test_init.py:test_import_skl will test the test_import_skl function inside test_init.py nosetests test_init.py would run all the tests in that file. On Fri, Jul 22, 2016 at 1:59 PM, Kyle Kastner <kastnerkyle@gmail.com> wrote:
you can call nosetests with a script name or even a function name e.g.
nosetests test_init.py:test_import_skl
will test the test_import_skl function inside test_init.py
nosetests test_init.py
would run all the tests in that file.
On Fri, Jul 22, 2016 at 11:33 AM, Boxiang Sun <daetalusun@gmail.com> wrote:
Hi all.
I posted this question in IRC once, but maybe due to time zone or other reason. I didn't got answer yet(maybe I missed).
I am trying to let scikit-learn can work in Pyston. I already finished NumPy, SciPy support in Pyston.
When I try to run scikit-learn test suite by `python -c "import nose; nose.main()" -v sklearn`. Most of were fine. But I encountered one segfault, the back trace said it is in `sklearn/metrics/tests/test_pairwise.py`.
But if I try to run that script individually by `python scikit-learn/sklearn/metrics/tests/test_pairwise.py`, like what I did when try to support NumPy and SciPy. That command didn't output anything, no segfault, no output. Try to use this way to run other test files will get same empty output.
So how to run the sk-learn test individually and reproduce errors? Not by run the whole test suite.
Regards, Sun
------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev _______________________________________________ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
participants (1)
-
Kyle Kastner