-
Notifications
You must be signed in to change notification settings - Fork 103
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
[test] Adapt Tensorflow tests for PE 18.07 #409
Conversation
* Use the new regression test syntax. * Modify the command line options to be in sync with tensorflow 1.7.
Codecov Report
@@ Coverage Diff @@
## master #409 +/- ##
======================================
Coverage 91.2% 91.2%
======================================
Files 70 70
Lines 8582 8582
======================================
Hits 7827 7827
Misses 755 755 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, but I need a small clarification.
|
||
self.sanity_patterns = sn.all([ | ||
sn.assert_found(r'INFO:tensorflow:Finished evaluation at', | ||
self.stderr), | ||
sn.assert_gt(sn.extractsingle( | ||
r"Evaluation results:\s+\{.*'accuracy':\s+(?P<accuracy>\S+)" | ||
r"(?:,|\})", self.stdout, 'accuracy', float), 0.99) | ||
r"(?:,|\})", self.stdout, 'accuracy', float, -1), 0.99) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the difference between the first accuracy and the last accuracy value. I mean which one is more correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now I need to take the final value because there are many accuracy numbers printed throughout the calculation.
Use the new regression test syntax.
Modify the command line options to be in sync with tensorflow 1.7.
Closes #373