jaberg/hyperopt — pull request #57 by gwtaylor (2011-11-23 18:33:49+00:00)
Title: Small bugfix to get tutorial examples to run

To get the tutorial examples to work, I had to make the following small two tweaks:

1. The numpy.RandomSeed -> numpy.random.RandomSeed is trivial, I think.

2. I removed the import line at the end of theano_bandit_algos.py:
from theano_gm import GM_BanditAlgo, AdaptiveParzenGM

I'm not sure why it's there. Basically if it's there and I try to unpickle 'experiments.pkl' I get a complaint about not being able to import GM_BanditAlgo.

I think it's a circular dependency issue. In ipython, running %run theano_gm.py first then %theano_bandit_algos.py second works fine. But not vice-versa.

Note that theano_gm.py does a: "from theano_bandit_algos import TheanoBanditAlgo" on line 32
but theano_bandit_algos imports from theano_gm.py on its last line.