Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Exception when running language model example #156

Closed
savkov opened this issue Mar 28, 2016 · 7 comments
Closed

Exception when running language model example #156

savkov opened this issue Mar 28, 2016 · 7 comments

Comments

@savkov
Copy link

savkov commented Mar 28, 2016

Hi,

Thanks for making this tool. It will definitely make things easier for NN newcomers.

I just tried running your language model example and got the following exception:

Traceback (most recent call last):
  File "test.py", line 84, in <module>
    estimator.fit(X, y)
  File "/Users/aleksandar/tensorflow/lib/python3.5/site-packages/skflow/estimators/base.py", line 243, in fit
    feed_params_fn=self._data_feeder.get_feed_params)
  File "/Users/aleksandar/tensorflow/lib/python3.5/site-packages/skflow/trainer.py", line 114, in train
    feed_dict = feed_dict_fn()
  File "/Users/aleksandar/tensorflow/lib/python3.5/site-packages/skflow/io/data_feeder.py", line 307, in _feed_dict_fn
    inp[i, :] = six.next(self.X)
StopIteration

I made sure that my python distribution has the correct version of six. I tried running it both in a virtual environment and in a normal Python 3 distro. Any ideas what might be causing this?

@GameOfThrow
Copy link

could be a tensorflow/skflow version issue, can you specify the version/check for updates?

@mmarklar
Copy link

mmarklar commented Apr 5, 2016

I'm also getting the same exception on Tensorflow 0.7.1 and Skflow 0.1.0

Also tried with nightly of TF using the contrib.skflow, same result. Let me know if anything else would be useful.

@mdasadul
Copy link

mdasadul commented Apr 7, 2016

I am also getting same error as well

@ilblackdragon
Copy link
Contributor

Hi,

Sorry for slow response.

Can you try doing print(six.next(X)) in language_model.py before ### Model section? To just see what happen with data.
On Python2 seems to work, I'll double check on Python3.

@rasmushaglund
Copy link

rasmushaglund commented Jun 14, 2016

I'm getting the same error in both 0.8 and 0.9rc1. @ilblackdragon when running the above command before the model section it works fine, but then fails on the last line.
I'm running Python 2.7

@rasmushaglund
Copy link

I tried finding the source, and this is what I found: tensorflow/tensorflow@30573c2#commitcomment-17868872

@ilblackdragon
Copy link
Contributor

This may be fixed now with refactoring to use MonitoredSession.

If not, please re-file bug at tensorflow repository - this one is inactive. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants