lmjohns3 / theanets

Neural network toolkit for Python
http://theanets.rtfd.org
MIT License
328 stars 74 forks source link

'SGD' object has no attribute 'iterate' #113

Closed pannous closed 8 years ago

pannous commented 8 years ago

Looks like theanets==0.8.0rc0 is losing backwards compatibility:

theanets/trainer.py", line 65, in itertrain monitor_gradients=kwargs.get('monitor_gradients', False), AttributeError: 'SGD' object has no attribute 'iterate'

File "build/bdist.macosx-10.10-x86_64/egg/theanets/graph.py", line 333, in create_dataset TypeError: init() got an unexpected keyword argument 'rng'

lmjohns3 commented 8 years ago

I'm confused, it looks like there are two different tracebacks here. Could you include more of the code that produces these errors?

Also can you include the output of:

>>> import theanets, downhill
>>> print(theanets.__version__, downhill.__version__)
pannous commented 8 years ago

Thanks for the hint, reinstalling downhill helped somehow!