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

Print replaced by logging in optimization and packaged_dependencies folders #756

Merged
merged 3 commits into from Mar 28, 2014

Conversation

Menerve
Copy link
Contributor

@Menerve Menerve commented Mar 26, 2014

Continuation of the pull request #718 for issue #41.

I didn't replace prints in the file packaged_dependencies/theano_linear/unshared_conv/unshared_conv.py as there kind of comments.

@@ -148,7 +152,7 @@ def __init__(self, objective, params, inputs = None,
self.param_to_grad_shared = param_to_grad_shared

if self.verbose:
Copy link
Member

Choose a reason for hiding this comment

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

On line 127 let's change logger level to debug if self.verbose == True

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And remove all "if verbose" statements?

Copy link
Member

Choose a reason for hiding this comment

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

Let's leave the if statement to be there for now to not break anything.
Write a TODO note somewhere maybe in the file docstring to remove the verbose later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. There is multiple levels of verbosity too (3: 0, 1 and >1) but I'll just set the level to DEBUG if verbose is True (== 1), or maybe >0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If > 0 seems what we want to do.

Copy link
Member

Choose a reason for hiding this comment

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

SGTM

memimo added a commit that referenced this pull request Mar 28, 2014
Print replaced by logging in optimization and packaged_dependencies folders
@memimo memimo merged commit 9ed5871 into lisa-lab:master Mar 28, 2014
@Menerve Menerve deleted the logging_optimization_packaged_dep branch April 2, 2014 19:18
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.

None yet

2 participants