Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local variable 'epoch_logs' referenced before assignment #29

Open
urumo opened this issue Mar 4, 2017 · 1 comment
Open

local variable 'epoch_logs' referenced before assignment #29

urumo opened this issue Mar 4, 2017 · 1 comment

Comments

@urumo
Copy link

urumo commented Mar 4, 2017

While using train.py I get

WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
Loading training data
Finished loading training data
Starting training!
Iteration: 0
Epoch 0
Traceback (most recent call last):
File "train.py", line 48, in
history = model.fit(X_train, y_train, batch_size=batch_size, nb_epoch=epochs_per_iter, verbose=1, validation_split=0.0)
File "build\bdist.win-amd64\egg\keras\models.py", line 204, in fit
UnboundLocalError: local variable 'epoch_logs' referenced before assignment

anyone encountered with this? and how can this be solved?
Using keras 0.1.0 on windows 10 if that makes difference with Python 2.7.13 :: Anaconda 4.3.0 (64-bit)

@joeyearsley
Copy link

When I've had that it is from the data not being loaded properly, check your inputs.

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

No branches or pull requests

2 participants