a bit off-topic, but
> tests ... but @seed'ing every test is somewhat a burden (probably a
> wise solution would be to come with with a nose plugin or smth to seed
> RNG before running every test)
I am surprised nose does not offer that. py.test has it built-in,
you just need to define globally the hook pytest_configure. This is
how it looks like in MDP:
def pytest_configure(config):
seed = config.getvalue("seed")
# if seed was not set by the user, we set one now
if seed is None or seed == ('NO', 'DEFAULT'):
config.option.seed = int(mdp.numx_rand.randint(2**31-1))
this does the job without touching or decorating any test, just add
this in a conftest.py file somewhere.
tizian
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general