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

Attempt at adapting example to be usable without Bokeh. Fixes #174 #570

Merged
merged 6 commits into from
Apr 1, 2015
Merged

Attempt at adapting example to be usable without Bokeh. Fixes #174 #570

merged 6 commits into from
Apr 1, 2015

Conversation

vikkamath
Copy link
Contributor

No description provided.

@@ -24,7 +24,7 @@
from blocks.main_loop import MainLoop


def main(save_to, num_epochs):
def main(save_to, num_epochs, no_bokeh):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should probably give a default, no_bokeh=True here as well, but make sure that the tests use no_bokeh=True so that it still gets tested on Travis.

@bartvm
Copy link
Member

bartvm commented Apr 1, 2015

The errors are ocurring because you've changed the signature of main, but the tests still call main with 2 instead of 3 arguments, you'll have to update those.

@@ -24,7 +24,15 @@ def test_sqrt():
def test_mnist():
skip_if_not_available(modules=['bokeh'])
with tempfile.NamedTemporaryFile() as f:
mnist_test(f.name, 1)
mnist_test(f.name, 1, True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably just run this test once with Bokeh, it'll just slow down the test suite to run it twice, and we don't really gain much from it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. Changes made, submitted PR

bartvm added a commit that referenced this pull request Apr 1, 2015
Attempt at adapting example to be usable without Bokeh. Fixes #174
@bartvm bartvm merged commit 901cda8 into mila-iqia:master Apr 1, 2015
@vikkamath vikkamath deleted the MNIST-without-Bokeh branch April 1, 2015 16:35
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

Successfully merging this pull request may close these issues.

2 participants