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

BokehVisualizer throwing type error after 1st training epoch #106

Open
ghost opened this issue Dec 12, 2015 · 0 comments
Open

BokehVisualizer throwing type error after 1st training epoch #106

ghost opened this issue Dec 12, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 12, 2015

While training a network with more than 1 training epoch, after the first training epoch completes, the following error occurs (here I was using just 3 epochs):

"An error occurred while calling the 'BokehVisualizer' hook:
TypeError: range(0, 2) is not JSON serializable

I am running Python 3.4 and using Bokeh version 0.9.0, on a Windows 10 machine (and my Bokeh setup works as I am able to run it successfully with other packages).

Additional information:
When debugging, the error is originating from the anaconda3\lib\json\encoder.py file:

In this file, there is a method called "default" containing a try-except that handles arbitrary iterators that was commented out. After I uncommented it out, the BokehVisualizer's type error no longer occurs. However, what happens now is that after the first training epoch, instead of throwing the type error, ALL plot information (axes, title, and legend) disappears and all that is left is a blank plot that does not display any information.

At line 815 of brainstorm\hooks.py there is a range() being passed in to the json\encoder file. Would this behave differently between Python2 and Python3?

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

0 participants