Skip to content

Implementing test unit for learning rates#1460

Closed
XavierAudier wants to merge 1 commit into
lisa-lab:masterfrom
XavierAudier:patch-2
Closed

Implementing test unit for learning rates#1460
XavierAudier wants to merge 1 commit into
lisa-lab:masterfrom
XavierAudier:patch-2

Conversation

@XavierAudier

Copy link
Copy Markdown
Contributor

Implementing a test for commit #1456

@lamblin

lamblin commented Mar 27, 2015

Copy link
Copy Markdown
Member

A unit test should check things automatically (and raise an Exception if there is a problem), not simply print things for manual inspection.
If you expect all values to be equal to 1./100, you could for instance call assert_allclose(..., 1e-2) on the values, instead of printing them.
Also, you can add the unit test in a different commit of the same pull request, it can make things easier to review.

@XavierAudier

Copy link
Copy Markdown
Contributor Author

Hi,
Sorry I'll fix that. It's my first time contributing to a repository I'm still not used to it.
Thank you for your patience.

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