partofthething / ace

Python package for performing the Alternating Conditional Expectation (ACE) regression
MIT License
68 stars 20 forks source link

wang04 random seed to big #8

Closed paulperry closed 8 years ago

paulperry commented 8 years ago
from ace import ace
import numpy as np
np.__version__

'1.10.2'

from ace.samples import wang04
x, y = wang04.build_sample_ace_problem_wang04(N=200)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-4-448739fc9080> in <module>()
----> 1 from ace.samples import wang04
      2 x, y = wang04.build_sample_ace_problem_wang04(N=200)

/Users/paulperry/anaconda/lib/python2.7/site-packages/ace/samples/wang04.py in <module>()
      7 from ace import ace
      8 
----> 9 numpy.random.seed(9287349087)
     10 
     11 def build_sample_ace_problem_wang04(N=100):

mtrand.pyx in mtrand.RandomState.seed (numpy/random/mtrand/mtrand.c:7781)()

ValueError: Seed must be between 0 and 4294967295
partofthething commented 8 years ago

This was fixed in develop by during #4. I just merged this fix into master and released 0.3 on PyPI. Thanks.