-
Notifications
You must be signed in to change notification settings - Fork 45.5k
Add End-to-end tests for wide deep, and fix "wide" and "deep" configurations. #3798
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
Conversation
@karmel Ready for review. |
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.
A few comments, nothing major.
official/wide_deep/wide_deep_test.py
Outdated
|
||
# Used for end-to-end tests. | ||
shutil.copyfile(self.input_csv, os.path.join(self.temp_dir, 'adult.data')) | ||
shutil.copyfile(self.input_csv, os.path.join(self.temp_dir, 'adult.test')) |
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.
Seems unusual to write one file and then copy it twice; why not just create the two CSVs above with the desired names, rather than reaching out to shutil?
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.
I realized I wasn't even using the full test csv. Also, changed to just write rather than shutil.
official/wide_deep/wide_deep.py
Outdated
def eval_input_fn(): | ||
return input_fn(test_file, 1, False, flags.batch_size) | ||
|
||
loss_prefix = {'wide': 'linear/', 'deep': 'dnn/'}.get(flags.model_type, '') |
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.
Maybe make the name dict a module-var, for greater visibility?
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.
Done.
…rations. (tensorflow#3798) * add end-to-end tests for wide_deep delint * address PR comments
There is already static test data for wide-deep, so I simply used that rather than adding synthetic data.